Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > 532588815bbfc2938945bd9bafbec2d4 > files > 4

castor0-0.9.9.1-2.mga2.src.rpm

Index: src/main/org/exolab/castor/jdo/engine/ClobImpl.java
===================================================================
--- src/main/org/exolab/castor/jdo/engine/ClobImpl.java
+++ src/main/org/exolab/castor/jdo/engine/ClobImpl.java	2011-01-22 02:07:59.164662384 +0100
@@ -150,23 +150,19 @@
 
     /**
      * Not implemented.   Added to make ClobImpl complient with
-     * JDBC 3.0, which is apart of JDK1.4 <p>
+     * JDBC 3.0, which is apart of JDK1.4
      * @author <a href="mailto:adam_e@swbell.net">Adam Esterline</a>
      */
-    public OutputStream setAsciiStream(long pos)
-                                throws SQLException
-    {
+    public OutputStream setAsciiStream(long pos) throws SQLException {
         return null;
     }
 
     /**
      * Not implemented.   Added to make ClobImpl complient with
-     * JDBC 3.0, which is apart of JDK1.4 <p>
+     * JDBC 3.0, which is apart of JDK1.4
      * @author <a href="mailto:adam_e@swbell.net">Adam Esterline</a>
      */
-    public Writer setCharacterStream(long pos)
-                              throws SQLException
-    {
+    public Writer setCharacterStream(long pos) throws SQLException {
         return null;
     }
 
@@ -175,9 +171,8 @@
      * JDBC 3.0, which is apart of JDK1.4 <p>
      * @author <a href="mailto:adam_e@swbell.net">Adam Esterline</a>
      */
-    public int setString(long pos, String str) throws SQLException
-    {
-        return -1;
+    public int setString(long pos, String str) throws SQLException {    
+	    return -1;
     }
 
     /**
@@ -185,19 +180,31 @@
      * JDBC 3.0, which is apart of JDK1.4 <p>
      * @author <a href="mailto:adam_e@swbell.net">Adam Esterline</a>
      */
-    public int setString(long pos, String str, int offset,
-             int len) throws SQLException
-    {
+    public int setString(long pos, String str, int offset, int len) throws SQLException {
         return -1;
     }
 
     /**
-     * Not implemented.   Added to make ClobImpl complient with
-     * JDBC 3.0, which is apart of JDK1.4 <p>
-     * @author <a href="mailto:adam_e@swbell.net">Adam Esterline</a>
+     * Not implemented.   Aded to make ClobImpl compliant with
+     * JDBC 3.0, which is a part of JDK1.4.
      */
-    public void truncate(long len) throws SQLException
-    {
+    public void truncate(long len) throws SQLException {
+        // Nothing here
     }
 
+    /**
+     * Not implemented.   Added to make ClobImpl compliant with
+     * JDBC 4.0, which is a part of JDK6.
+     */
+    public Reader getCharacterStream(long pos, long length) throws SQLException {
+        return null;
+   }
+
+    /**
+      * Not implemented.   Added to make ClobImpl compliant with
+      * JDBC 4.0, which is a part of JDK6.
+      */
+    public void free() {
+        // Nothing here
+    }
 }