--- /dev/null
+/*\r
+\r
+ Derby - Class org.apache.derby.shared.common.reference.JDBC30Translation\r
+\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to you under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+\r
+ */\r
+\r
+package org.apache.derby.shared.common.reference;\r
+import java.sql.DatabaseMetaData;\r
+import java.sql.ParameterMetaData;\r
+import java.sql.ResultSet;\r
+import java.sql.Statement;\r
+import java.sql.Types;\r
+/**\r
+ This class contains public statics that map directly\r
+ to the new public statics in the jdbc 3.0 classes.\r
+ By providing an intermediary class, we can use the\r
+ same statics without having to import the jdbc 3.0 classes\r
+ into other classes.\r
+\r
+\r
+ <P>\r
+ This class should not be shipped with the product.\r
+\r
+ <P>\r
+ This class has no methods, all it contains are constants\r
+ are public, static and final since they are declared in an interface.\r
+*/\r
+\r
+public interface JDBC30Translation {\r
+ /*\r
+ ** public statics from 3.0 version of java.sql.DatabaseMetaData\r
+ */\r
+ public static final int SQL_STATE_XOPEN = DatabaseMetaData.sqlStateXOpen;\r
+ public static final int SQL_STATE_SQL99 = DatabaseMetaData.sqlStateSQL99;\r
+\r
+ /*\r
+ ** public statics from 3.0 version of java.sql.ParameterMetaData\r
+ */\r
+ public static final int PARAMETER_NO_NULLS = ParameterMetaData.parameterNoNulls;\r
+ public static final int PARAMETER_NULLABLE = ParameterMetaData.parameterNullable;\r
+ public static final int PARAMETER_NULLABLE_UNKNOWN = ParameterMetaData.parameterNullableUnknown;\r
+ public static final int PARAMETER_MODE_UNKNOWN = ParameterMetaData.parameterModeUnknown;\r
+ public static final int PARAMETER_MODE_IN = ParameterMetaData.parameterModeIn;\r
+ public static final int PARAMETER_MODE_IN_OUT = ParameterMetaData.parameterModeInOut;\r
+ public static final int PARAMETER_MODE_OUT = ParameterMetaData.parameterModeOut;\r
+\r
+ /*\r
+ ** public statics from 3.0 version of java.sql.ResultSet\r
+ */\r
+ public static final int HOLD_CURSORS_OVER_COMMIT = ResultSet.HOLD_CURSORS_OVER_COMMIT;\r
+ public static final int CLOSE_CURSORS_AT_COMMIT = ResultSet.CLOSE_CURSORS_AT_COMMIT;\r
+\r
+ /*\r
+ ** public statics from 3.0 version of java.sql.Statement\r
+ */\r
+ public static final int CLOSE_CURRENT_RESULT = Statement.CLOSE_CURRENT_RESULT;\r
+ public static final int KEEP_CURRENT_RESULT = Statement.KEEP_CURRENT_RESULT;\r
+ public static final int CLOSE_ALL_RESULTS = Statement.CLOSE_ALL_RESULTS;\r
+ public static final int SUCCESS_NO_INFO = Statement.SUCCESS_NO_INFO;\r
+ public static final int EXECUTE_FAILED = Statement.EXECUTE_FAILED;\r
+ public static final int RETURN_GENERATED_KEYS = Statement.RETURN_GENERATED_KEYS;\r
+ public static final int NO_GENERATED_KEYS = Statement.NO_GENERATED_KEYS;\r
+\r
+ /*\r
+ ** public statics from 3.0 version of java.sql.Types\r
+ */\r
+ public static final int DATALINK = Types.DATALINK;\r
+ public static final int BOOLEAN = Types.BOOLEAN;\r
+\r
+ /*\r
+ ** New types in JDBC 3.0\r
+ */\r
+ public static final int SQL_TYPES_BOOLEAN = Types.BOOLEAN;\r
+}\r