01: /*
02:
03: Derby - Class org.apache.derby.impl.tools.ij.xaAbstractHelper
04:
05: Licensed to the Apache Software Foundation (ASF) under one or more
06: contributor license agreements. See the NOTICE file distributed with
07: this work for additional information regarding copyright ownership.
08: The ASF licenses this file to You under the Apache License, Version 2.0
09: (the "License"); you may not use this file except in compliance with
10: the License. You may obtain a copy of the License at
11:
12: http://www.apache.org/licenses/LICENSE-2.0
13:
14: Unless required by applicable law or agreed to in writing, software
15: distributed under the License is distributed on an "AS IS" BASIS,
16: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: See the License for the specific language governing permissions and
18: limitations under the License.
19:
20: */
21:
22: package org.apache.derby.impl.tools.ij;
23:
24: import java.sql.SQLException;
25: import java.sql.Connection;
26:
27: /*
28: An interface for running xa tests.
29: The real implementation is only loaded if the requisite javax classes are
30: in the classpath.
31: */
32: interface xaAbstractHelper {
33:
34: void XADataSourceStatement(ij parser, Token dbname, Token shut,
35: String create) throws SQLException;
36:
37: void XAConnectStatement(ij parser, Token user, Token pass, String id)
38: throws SQLException;
39:
40: void XADisconnectStatement(ij parser, String n) throws SQLException;
41:
42: Connection XAGetConnectionStatement(ij parser, String n)
43: throws SQLException;
44:
45: void CommitStatement(ij parser, Token onePhase, Token twoPhase,
46: int xid) throws SQLException;
47:
48: void EndStatement(ij parser, int flag, int xid) throws SQLException;
49:
50: void ForgetStatement(ij parser, int xid) throws SQLException;
51:
52: void PrepareStatement(ij parser, int xid) throws SQLException;
53:
54: ijResult RecoverStatement(ij parser, int flag) throws SQLException;
55:
56: void RollbackStatement(ij parser, int xid) throws SQLException;
57:
58: void StartStatement(ij parser, int flag, int xid)
59: throws SQLException;
60:
61: Connection DataSourceStatement(ij parser, Token dbname,
62: Token protocol, Token userT, Token passT, String id)
63: throws SQLException;
64:
65: void CPDataSourceStatement(ij parser, Token dbname, Token protocol)
66: throws SQLException;
67:
68: void CPConnectStatement(ij parser, Token userT, Token passT,
69: String n) throws SQLException;
70:
71: Connection CPGetConnectionStatement(ij parser, String n)
72: throws SQLException;
73:
74: void CPDisconnectStatement(ij parser, String n) throws SQLException;
75:
76: void setFramework(String framework);
77:
78: }
|