db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davi...@apache.org
Subject svn commit: r370864 - in /db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference: JDBC20Translation.java JDBC30Translation.java SQLState.java
Date Fri, 20 Jan 2006 17:09:59 GMT
Author: davidvc
Date: Fri Jan 20 09:09:54 2006
New Revision: 370864

URL: http://svn.apache.org/viewcvs?rev=370864&view=rev
Log:
DERBY-838: Added files missing to original checkin

Apologies for the broken build.

Added:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/JDBC20Translation.java
  (with props)
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/JDBC30Translation.java
  (with props)
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/SQLState.java   (with
props)

Added: db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/JDBC20Translation.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/JDBC20Translation.java?rev=370864&view=auto
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/JDBC20Translation.java
(added)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/JDBC20Translation.java
Fri Jan 20 09:09:54 2006
@@ -0,0 +1,88 @@
+/*
+
+   Derby - Class org.apache.derby.iapi.reference.JDBC20Translation
+
+   Copyright 1999, 2004 The Apache Software Foundation or its licensors, as applicable.
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ */
+
+package org.apache.derby.iapi.reference;
+
+import java.sql.ResultSet;
+import javax.transaction.xa.XAResource;
+import java.sql.Types;
+
+/**
+        This class contains public statics that map directly
+        to the new public statics in the jdbc 2.0 classes.
+        By providing an intermediary class, we can use the
+        same statics without having to import the jdbc 2.0 classes
+        into other classes.
+
+
+        <P>
+        This class should not be shipped with the product.
+
+        <P>
+        This class has no methods, all it contains are constants
+        are public, static and final since they are declared in an interface.
+*/
+
+public interface JDBC20Translation {
+        /*
+        ** public statics from 2.0 version of java.sql.ResultSet
+        */
+
+        /**
+         *      java.sql.ResultSet - result set concurrency
+         */
+        public static final int CONCUR_READ_ONLY = ResultSet.CONCUR_READ_ONLY;
+
+        public static final int CONCUR_UPDATABLE = ResultSet.CONCUR_UPDATABLE;
+
+        /**
+         *      java.sql.ResultSet - result set type
+         */
+        public static final int TYPE_FORWARD_ONLY = ResultSet.TYPE_FORWARD_ONLY;
+        public static final int TYPE_SCROLL_INSENSITIVE = ResultSet.TYPE_SCROLL_INSENSITIVE;
+        public static final int TYPE_SCROLL_SENSITIVE = ResultSet.TYPE_SCROLL_SENSITIVE;
+
+        /**
+         *      java.sql.ResultSet - fetch direction
+         */
+        public static final int FETCH_FORWARD = ResultSet.FETCH_FORWARD;
+        public static final int FETCH_REVERSE = ResultSet.FETCH_REVERSE;
+        public static final int FETCH_UNKNOWN = ResultSet.FETCH_UNKNOWN;
+
+        /*
+        ** public statics from javax.transaction.xa.XAResource
+        */
+        public static final int XA_ENDRSCAN = XAResource.TMENDRSCAN;
+        public static final int XA_FAIL = XAResource.TMFAIL;
+        public static final int XA_JOIN = XAResource.TMJOIN;
+        public static final int XA_NOFLAGS = XAResource.TMNOFLAGS;
+        public static final int XA_RESUME = XAResource.TMRESUME;
+        public static final int XA_STARTRSCAN = XAResource.TMSTARTRSCAN;
+        public static final int XA_SUCCESS = XAResource.TMSUCCESS;
+        public static final int XA_SUSPEND = XAResource.TMSUSPEND;
+
+
+        /*
+        ** New types in JDBC 2.0
+        */
+        public static final int SQL_TYPES_JAVA_OBJECT = Types.JAVA_OBJECT;
+        public static final int SQL_TYPES_BLOB = Types.BLOB;
+        public static final int SQL_TYPES_CLOB = Types.CLOB;
+}

Propchange: db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/JDBC20Translation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/JDBC30Translation.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/JDBC30Translation.java?rev=370864&view=auto
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/JDBC30Translation.java
(added)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/JDBC30Translation.java
Fri Jan 20 09:09:54 2006
@@ -0,0 +1,29 @@
+/*
+
+   Derby - Class org.apache.derby.iapi.reference.JDBC30Translation
+
+   Copyright 2001, 2004 The Apache Software Foundation or its licensors, as applicable.
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ */
+
+package org.apache.derby.iapi.reference;
+
+/**
+ * This class is a refactoring wrapper around the shared JDBC30Translation
+ * class
+*/
+public interface JDBC30Translation extends 
+    org.apache.derby.shared.common.reference.JDBC30Translation {
+}

Propchange: db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/JDBC30Translation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/SQLState.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/SQLState.java?rev=370864&view=auto
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/SQLState.java (added)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/SQLState.java Fri Jan
20 09:09:54 2006
@@ -0,0 +1,32 @@
+/*
+
+   Derby - Class org.apache.derby.iapi.reference.SQLState
+
+   Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ */
+
+package org.apache.derby.iapi.reference;
+
+
+/**
+ * This is a refactoring wrapper around the "real" SQLState.java, which
+ * has been relocated to org.apache.derby.shared.common.reference
+*/
+public interface SQLState extends 
+    org.apache.derby.shared.common.reference.SQLState
+{
+}
+

Propchange: db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/SQLState.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message