KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > shared > common > reference > JDBC30Translation


1 /*
2
3    Derby - Class org.apache.derby.shared.common.reference.JDBC30Translation
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.shared.common.reference;
23 import java.sql.DatabaseMetaData JavaDoc;
24 import java.sql.ParameterMetaData JavaDoc;
25 import java.sql.ResultSet JavaDoc;
26 import java.sql.Statement JavaDoc;
27 import java.sql.Types JavaDoc;
28 /**
29         This class contains public statics that map directly
30         to the new public statics in the jdbc 3.0 classes.
31         By providing an intermediary class, we can use the
32         same statics without having to import the jdbc 3.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 JDBC30Translation {
45         /*
46         ** public statics from 3.0 version of java.sql.DatabaseMetaData
47         */

48         public static final int SQL_STATE_XOPEN = DatabaseMetaData.sqlStateXOpen;
49         public static final int SQL_STATE_SQL99 = DatabaseMetaData.sqlStateSQL99;
50
51         /*
52         ** public statics from 3.0 version of java.sql.ParameterMetaData
53         */

54         public static final int PARAMETER_NO_NULLS = ParameterMetaData.parameterNoNulls;
55         public static final int PARAMETER_NULLABLE = ParameterMetaData.parameterNullable;
56         public static final int PARAMETER_NULLABLE_UNKNOWN = ParameterMetaData.parameterNullableUnknown;
57         public static final int PARAMETER_MODE_UNKNOWN = ParameterMetaData.parameterModeUnknown;
58         public static final int PARAMETER_MODE_IN = ParameterMetaData.parameterModeIn;
59         public static final int PARAMETER_MODE_IN_OUT = ParameterMetaData.parameterModeInOut;
60         public static final int PARAMETER_MODE_OUT = ParameterMetaData.parameterModeOut;
61
62         /*
63         ** public statics from 3.0 version of java.sql.ResultSet
64         */

65         public static final int HOLD_CURSORS_OVER_COMMIT = ResultSet.HOLD_CURSORS_OVER_COMMIT;
66         public static final int CLOSE_CURSORS_AT_COMMIT = ResultSet.CLOSE_CURSORS_AT_COMMIT;
67
68         /*
69         ** public statics from 3.0 version of java.sql.Statement
70         */

71         public static final int CLOSE_CURRENT_RESULT = Statement.CLOSE_CURRENT_RESULT;
72         public static final int KEEP_CURRENT_RESULT = Statement.KEEP_CURRENT_RESULT;
73         public static final int CLOSE_ALL_RESULTS = Statement.CLOSE_ALL_RESULTS;
74         public static final int SUCCESS_NO_INFO = Statement.SUCCESS_NO_INFO;
75         public static final int EXECUTE_FAILED = Statement.EXECUTE_FAILED;
76         public static final int RETURN_GENERATED_KEYS = Statement.RETURN_GENERATED_KEYS;
77         public static final int NO_GENERATED_KEYS = Statement.NO_GENERATED_KEYS;
78
79         /*
80         ** public statics from 3.0 version of java.sql.Types
81         */

82         public static final int DATALINK = Types.DATALINK;
83         public static final int BOOLEAN = Types.BOOLEAN;
84
85         /*
86         ** New types in JDBC 3.0
87         */

88         public static final int SQL_TYPES_BOOLEAN = Types.BOOLEAN;
89 }
90
Popular Tags