hammant     02/01/26 00:40:22

  Modified:    apps/db/src/java/org/apache/avalon/db/driver
                        AvalonDBDatabaseMetaData.java
               apps/db/src/java/org/apache/avalon/db/driver/jdbc30
                        JDBC30CallableStatement.java
  Log:
  more JDK 1.4 methods in driver. Changes from beta3 to rc1
  
  Revision  Changes    Path
  1.4       +12 -1     
jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/driver/AvalonDBDatabaseMetaData.java
  
  Index: AvalonDBDatabaseMetaData.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/driver/AvalonDBDatabaseMetaData.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AvalonDBDatabaseMetaData.java     26 Nov 2001 09:28:29 -0000      1.3
  +++ AvalonDBDatabaseMetaData.java     26 Jan 2002 08:40:21 -0000      1.4
  @@ -21,7 +21,7 @@
    *
    *
    * @author Paul Hammant <a href="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    */
   public class AvalonDBDatabaseMetaData extends AbstractDriver implements 
DatabaseMetaData {
   
  @@ -3130,4 +3130,15 @@
           return false;
       }
   
  +    /**
  +     * Retrieves weather this database supports statement pooling.
  +     *
  +     * @return <code>true</code> is so;
  +     <code>false</code> otherwise
  +     * @throws SQLExcpetion if a database access error occurs
  +     * @since 1.4
  +     */
  +    public boolean supportsStatementPooling() throws SQLException {
  +        return false;
  +    }
   }
  
  
  
  1.2       +33 -0     
jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/driver/jdbc30/JDBC30CallableStatement.java
  
  Index: JDBC30CallableStatement.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/driver/jdbc30/JDBC30CallableStatement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JDBC30CallableStatement.java      26 Nov 2001 09:28:30 -0000      1.1
  +++ JDBC30CallableStatement.java      26 Jan 2002 08:40:22 -0000      1.2
  @@ -269,4 +269,37 @@
           debug();
           return null;
       }
  +
  +    /**
  +     * Sets the designated parameter to SQL <code>NULL</code>.
  +     * This version of the method <code>setNull</code> should
  +     * be used for user-defined types and REF type parameters.  Examples
  +     * of user-defined types include: STRUCT, DISTINCT, JAVA_OBJECT, and
  +     * named array types.
  +     *
  +     * <P><B>Note:</B> To be portable, applications must give the
  +     * SQL type code and the fully-qualified SQL type name when specifying
  +     * a NULL user-defined or REF parameter.  In the case of a user-defined 
type
  +     * the name is the type name of the parameter itself.  For a REF
  +     * parameter, the name is the type name of the referenced type.  If
  +     * a JDBC driver does not need the type code or type name information,
  +     * it may ignore it.
  +     *
  +     * Although it is intended for user-defined and Ref parameters,
  +     * this method may be used to set a null parameter of any JDBC type.
  +     * If the parameter does not have a user-defined or REF type, the given
  +     * typeName is ignored.
  +     *
  +     *
  +     * @param paramName the name of the parameter
  +     * @param sqlType a value from <code>java.sql.Types</code>
  +     * @param typeName the fully-qualified name of an SQL user-defined type;
  +     *        ignored if the parameter is not a user-defined type or
  +     *        SQL <code>REF</code> value
  +     * @exception SQLException if a database access error occurs
  +     * @since 1.4
  +     */
  +    public void setNull(String parameterName, int sqlType, String typeName)
  +            throws SQLException {
  +    }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to