db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r398739 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/Platform.java
Date Mon, 01 May 2006 23:47:03 GMT
Author: arminw
Date: Mon May  1 16:47:01 2006
New Revision: 398739

URL: http://svn.apache.org/viewcvs?rev=398739&view=rev
Log:
add new methods (statement handling + lob specific)

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/Platform.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/Platform.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/Platform.java?rev=398739&r1=398738&r2=398739&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/Platform.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/Platform.java
Mon May  1 16:47:01 2006
@@ -108,6 +108,19 @@
             throws SQLException;
 
     /**
+     * Called to let the Platform implementation perform any JDBC type-specific operations
+     * needed by the driver when binding positional parameters for a PreparedStatement.
+     * <br/>
+     * Note: This method may be called only if the JDBC-type is unknown.
+     *
+     * @param ps The {@link java.sql.PreparedStatement} to use.
+     * @param index The column index.
+     * @param value The value to insert - none null or NULL allowed.
+     */
+    void setObjectForStatement(PreparedStatement ps, int index, Object value)
+            throws SQLException;
+
+    /**
      * Get join syntax type for this RDBMS - one of the constants from JoinSyntaxTypes interface.
      * @see org.apache.ojb.broker.accesslayer.JoinSyntaxTypes#SQL92_JOIN_SYNTAX
      * @see org.apache.ojb.broker.accesslayer.JoinSyntaxTypes#SQL92_NOPAREN_JOIN_SYNTAX
@@ -271,4 +284,11 @@
      */
     public String quoteName(String aString);
 
+    /**
+     * Method specify how OJB have to handle LOB objects. Returns
+     * <em>true</em> if the implementation updates a copy of the LOB
+     * and <em>false</em> if updates are made directly to the LOB (more
+     * details see JDBC-spec. 16.3).
+     */
+    public boolean locatorsUpdateCopy(Connection con);
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message