KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > impl > tools > ij > xaAbstractHelper


1 /*
2
3    Derby - Class org.apache.derby.impl.tools.ij.xaAbstractHelper
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to You under the Apache License, Version 2.0
9    (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
25 import java.sql.SQLException JavaDoc;
26 import java.sql.Connection JavaDoc;
27
28 /*
29     An interface for running xa tests.
30     The real implementation is only loaded if the requisite javax classes are
31     in the classpath.
32  */

33 interface xaAbstractHelper
34 {
35
36     void XADataSourceStatement(ij parser, Token dbname, Token shut, String JavaDoc create) throws SQLException JavaDoc;
37     void XAConnectStatement(ij parser, Token user, Token pass, String JavaDoc id) throws SQLException JavaDoc;
38     void XADisconnectStatement(ij parser, String JavaDoc n) throws SQLException JavaDoc;
39     Connection JavaDoc XAGetConnectionStatement(ij parser, String JavaDoc n) throws SQLException JavaDoc;
40     void CommitStatement(ij parser, Token onePhase, Token twoPhase, int xid) throws SQLException JavaDoc;
41     void EndStatement(ij parser, int flag, int xid) throws SQLException JavaDoc;
42     void ForgetStatement(ij parser, int xid) throws SQLException JavaDoc;
43     void PrepareStatement(ij parser, int xid) throws SQLException JavaDoc;
44     ijResult RecoverStatement(ij parser, int flag) throws SQLException JavaDoc;
45     void RollbackStatement(ij parser, int xid) throws SQLException JavaDoc;
46     void StartStatement(ij parser, int flag, int xid) throws SQLException JavaDoc;
47     Connection JavaDoc DataSourceStatement(ij parser, Token dbname, Token protocol,
48                                    Token userT, Token passT, String JavaDoc id) throws SQLException JavaDoc;
49     void CPDataSourceStatement(ij parser, Token dbname, Token protocol) throws SQLException JavaDoc;
50     void CPConnectStatement(ij parser, Token userT, Token passT, String JavaDoc n) throws SQLException JavaDoc;
51     Connection JavaDoc CPGetConnectionStatement(ij parser, String JavaDoc n) throws SQLException JavaDoc;
52     void CPDisconnectStatement(ij parser, String JavaDoc n) throws SQLException JavaDoc;
53     void setFramework(String JavaDoc framework);
54
55 }
56
Popular Tags