01: /*
02:
03: Derby - Class org.apache.derby.shared.common.reference.JDBC30Translation
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.shared.common.reference;
23:
24: import java.sql.DatabaseMetaData;
25: import java.sql.ParameterMetaData;
26: import java.sql.ResultSet;
27: import java.sql.Statement;
28: import java.sql.Types;
29:
30: /**
31: This class contains public statics that map directly
32: to the new public statics in the jdbc 3.0 classes.
33: By providing an intermediary class, we can use the
34: same statics without having to import the jdbc 3.0 classes
35: into other classes.
36:
37:
38: <P>
39: This class should not be shipped with the product.
40:
41: <P>
42: This class has no methods, all it contains are constants
43: are public, static and final since they are declared in an interface.
44: */
45:
46: public interface JDBC30Translation {
47: /*
48: ** public statics from 3.0 version of java.sql.DatabaseMetaData
49: */
50: public static final int SQL_STATE_XOPEN = DatabaseMetaData.sqlStateXOpen;
51: public static final int SQL_STATE_SQL99 = DatabaseMetaData.sqlStateSQL99;
52:
53: /*
54: ** public statics from 3.0 version of java.sql.ParameterMetaData
55: */
56: public static final int PARAMETER_NO_NULLS = ParameterMetaData.parameterNoNulls;
57: public static final int PARAMETER_NULLABLE = ParameterMetaData.parameterNullable;
58: public static final int PARAMETER_NULLABLE_UNKNOWN = ParameterMetaData.parameterNullableUnknown;
59: public static final int PARAMETER_MODE_UNKNOWN = ParameterMetaData.parameterModeUnknown;
60: public static final int PARAMETER_MODE_IN = ParameterMetaData.parameterModeIn;
61: public static final int PARAMETER_MODE_IN_OUT = ParameterMetaData.parameterModeInOut;
62: public static final int PARAMETER_MODE_OUT = ParameterMetaData.parameterModeOut;
63:
64: /*
65: ** public statics from 3.0 version of java.sql.ResultSet
66: */
67: public static final int HOLD_CURSORS_OVER_COMMIT = ResultSet.HOLD_CURSORS_OVER_COMMIT;
68: public static final int CLOSE_CURSORS_AT_COMMIT = ResultSet.CLOSE_CURSORS_AT_COMMIT;
69:
70: /*
71: ** public statics from 3.0 version of java.sql.Statement
72: */
73: public static final int CLOSE_CURRENT_RESULT = Statement.CLOSE_CURRENT_RESULT;
74: public static final int KEEP_CURRENT_RESULT = Statement.KEEP_CURRENT_RESULT;
75: public static final int CLOSE_ALL_RESULTS = Statement.CLOSE_ALL_RESULTS;
76: public static final int SUCCESS_NO_INFO = Statement.SUCCESS_NO_INFO;
77: public static final int EXECUTE_FAILED = Statement.EXECUTE_FAILED;
78: public static final int RETURN_GENERATED_KEYS = Statement.RETURN_GENERATED_KEYS;
79: public static final int NO_GENERATED_KEYS = Statement.NO_GENERATED_KEYS;
80:
81: /*
82: ** public statics from 3.0 version of java.sql.Types
83: */
84: public static final int DATALINK = Types.DATALINK;
85: public static final int BOOLEAN = Types.BOOLEAN;
86:
87: /*
88: ** New types in JDBC 3.0
89: */
90: public static final int SQL_TYPES_BOOLEAN = Types.BOOLEAN;
91: }
|