01: /*
02:
03: Derby - Class org.apache.derby.iapi.reference.JDBC20Translation
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.iapi.reference;
23:
24: import java.sql.ResultSet;
25: import javax.transaction.xa.XAResource;
26: import java.sql.Types;
27:
28: /**
29: This class contains public statics that map directly
30: to the new public statics in the jdbc 2.0 classes.
31: By providing an intermediary class, we can use the
32: same statics without having to import the jdbc 2.0 classes
33: into other classes.
34:
35:
36: <P>
37: This class should not be shipped with the product.
38:
39: <P>
40: This class has no methods, all it contains are constants
41: are public, static and final since they are declared in an interface.
42: */
43:
44: public interface JDBC20Translation {
45: /*
46: ** public statics from 2.0 version of java.sql.ResultSet
47: */
48:
49: /**
50: * java.sql.ResultSet - result set concurrency
51: */
52: public static final int CONCUR_READ_ONLY = ResultSet.CONCUR_READ_ONLY;
53:
54: public static final int CONCUR_UPDATABLE = ResultSet.CONCUR_UPDATABLE;
55:
56: /**
57: * java.sql.ResultSet - result set type
58: */
59: public static final int TYPE_FORWARD_ONLY = ResultSet.TYPE_FORWARD_ONLY;
60: public static final int TYPE_SCROLL_INSENSITIVE = ResultSet.TYPE_SCROLL_INSENSITIVE;
61: public static final int TYPE_SCROLL_SENSITIVE = ResultSet.TYPE_SCROLL_SENSITIVE;
62:
63: /**
64: * java.sql.ResultSet - fetch direction
65: */
66: public static final int FETCH_FORWARD = ResultSet.FETCH_FORWARD;
67: public static final int FETCH_REVERSE = ResultSet.FETCH_REVERSE;
68: public static final int FETCH_UNKNOWN = ResultSet.FETCH_UNKNOWN;
69:
70: /*
71: ** public statics from javax.transaction.xa.XAResource
72: */
73: public static final int XA_ENDRSCAN = XAResource.TMENDRSCAN;
74: public static final int XA_FAIL = XAResource.TMFAIL;
75: public static final int XA_JOIN = XAResource.TMJOIN;
76: public static final int XA_NOFLAGS = XAResource.TMNOFLAGS;
77: public static final int XA_RESUME = XAResource.TMRESUME;
78: public static final int XA_STARTRSCAN = XAResource.TMSTARTRSCAN;
79: public static final int XA_SUCCESS = XAResource.TMSUCCESS;
80: public static final int XA_SUSPEND = XAResource.TMSUSPEND;
81:
82: /*
83: ** New types in JDBC 2.0
84: */
85: public static final int SQL_TYPES_JAVA_OBJECT = Types.JAVA_OBJECT;
86: public static final int SQL_TYPES_BLOB = Types.BLOB;
87: public static final int SQL_TYPES_CLOB = Types.CLOB;
88: }
|