db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: jakarta-turbine-torque/src/java/org/apache/torque/adapter DBPostgres.java DB.java
Date Thu, 12 Dec 2002 11:28:14 GMT
mpoeschl    2002/12/12 03:28:14

  Modified:    src/java/org/apache/torque/adapter DBPostgres.java DB.java
  Log:
  remove deprecated stuff
  
  Revision  Changes    Path
  1.14      +2 -14     jakarta-turbine-torque/src/java/org/apache/torque/adapter/DBPostgres.java
  
  Index: DBPostgres.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/adapter/DBPostgres.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- DBPostgres.java	19 Sep 2002 07:54:37 -0000	1.13
  +++ DBPostgres.java	12 Dec 2002 11:28:14 -0000	1.14
  @@ -118,18 +118,6 @@
       }
   
       /**
  -     * Returns the last auto-increment key.  Databases like Oracle
  -     * which support this feature will return a result, others will
  -     * return null.
  -     *
  -     * @see org.apache.torque.adapters.DB#getSequenceSql
  -     */
  -    public String getSequenceSql(Object obj)
  -    {
  -        return "SELECT nextval('" + (String) obj + "')";
  -    }
  -
  -    /**
        * Locks the specified table.
        *
        * @param con The JDBC connection to use.
  @@ -187,7 +175,7 @@
   
       /**
        * Override the default behavior to associate b with null?
  -     * 
  +     *
        * @see org.apache.torque.adapters.DB#getBooleanString
        */
       public String getBooleanString(Boolean b)
  
  
  
  1.29      +1 -60     jakarta-turbine-torque/src/java/org/apache/torque/adapter/DB.java
  
  Index: DB.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/adapter/DB.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- DB.java	24 Jun 2002 18:12:19 -0000	1.28
  +++ DB.java	12 Dec 2002 11:28:14 -0000	1.29
  @@ -154,24 +154,6 @@
       public abstract String getIDMethodSQL(Object obj);
   
       /**
  -     * @see #getIDMethodSQL(Object obj)
  -     * @deprecated Use getIDMethodSQL(Object) instead.
  -     */
  -    public String getIdSqlForAutoIncrement(Object obj)
  -    {
  -        return getIDMethodSQL(obj);
  -    }
  -
  -    /**
  -     * @see #getIDMethodSQL(Object obj)
  -     * @deprecated Use getIDMethodSQL(Object) instead.
  -     */
  -    public String getSequenceSql(Object obj)
  -    {
  -        return getIDMethodSQL(obj);
  -    }
  -
  -    /**
        * Locks the specified table.
        *
        * @param con The JDBC connection to use.
  @@ -213,34 +195,6 @@
           return ignoreCase(in);
       }
   
  -    /* *
  -     * Sets the JDBC driver used by this adapter.
  -     *
  -     * @param newDriver The fully-qualified class name of the JDBC
  -     * driver to use.
  -     * /
  -    public void setJDBCDriver(String newDriver)
  -    {
  -        JDBCDriver = newDriver;
  -    }
  -    */
  -
  -    /**
  -     * This method is used to chek whether writing large objects to
  -     * the DB requires a transaction.  Since this is only true for
  -     * Postgres, only the DBPostgres needs to override this method and
  -     * return true.
  -     *
  -     * @return True if writing large objects to the DB requires a transaction.
  -     * @deprecated The hack involving an oid mapping for VARBINARY
  -     * which necessitated use of this method for Postgres has been
  -     * obviated by use of the Postgres bytea data type.
  -     */
  -    public boolean objectDataNeedsTrans()
  -    {
  -        return false;
  -    }
  -
       /**
        * This method is used to chek whether the database natively
        * supports limiting the size of the resultset.
  @@ -288,19 +242,6 @@
       public int getLimitStyle()
       {
           return LIMIT_STYLE_NONE;
  -    }
  -
  -    /**
  -     * This method is used to format any date string.
  -     * Database can use different default date formats.
  -     *
  -     * @param dateString the date string to format
  -     * @return The proper date formated String.
  -     * @deprecated use getDateString(java.util.Date)
  -     */
  -    public String getDateString(String dateString)
  -    {
  -        return getStringDelimiter() + dateString + getStringDelimiter();
       }
   
       /**
  
  
  

Mime
View raw message