db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/util WrappedConnection.java
Date Fri, 06 Dec 2002 18:31:46 GMT
thma        2002/12/06 10:31:46

  Modified:    src/java/org/apache/ojb/broker/util WrappedConnection.java
  Log:
  did not compile under jdk 1.4
  
  Revision  Changes    Path
  1.2       +76 -76    jakarta-ojb/src/java/org/apache/ojb/broker/util/WrappedConnection.java
  
  Index: WrappedConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/util/WrappedConnection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WrappedConnection.java	3 Dec 2002 23:51:14 -0000	1.1
  +++ WrappedConnection.java	6 Dec 2002 18:31:46 -0000	1.2
  @@ -323,82 +323,82 @@
   
   //#ifdef JDBC30
   
  -//    public int getHoldability() throws SQLException {
  -//        checkOpen();
  -//        return _conn.getHoldability();
  -//    }
  -//
  -//    public void setHoldability(int holdability) throws SQLException {
  -//        checkOpen();
  -//        _conn.setHoldability(holdability);
  -//    }
  -//
  -//    public java.sql.Savepoint setSavepoint() throws SQLException {
  -//        checkOpen();
  -//        return _conn.setSavepoint();
  -//    }
  -//
  -//    public java.sql.Savepoint setSavepoint(String name) throws SQLException {
  -//        checkOpen();
  -//        return _conn.setSavepoint(name);
  -//    }
  -//
  -//    public void rollback(java.sql.Savepoint savepoint) throws SQLException {
  -//        checkOpen();
  -//        _conn.rollback(savepoint);
  -//    }
  -//
  -//    public void releaseSavepoint(java.sql.Savepoint savepoint) throws SQLException {
  -//        checkOpen();
  -//        _conn.releaseSavepoint(savepoint);
  -//    }
  -//
  -//    public Statement createStatement(int resultSetType,
  -//                                     int resultSetConcurrency,
  -//                                     int resultSetHoldability)
  -//        throws SQLException {
  -//        checkOpen();
  -//        return _conn.createStatement(resultSetType, resultSetConcurrency,
  -//                                     resultSetHoldability);
  -//    }
  -//
  -//    public PreparedStatement prepareStatement(String sql, int resultSetType,
  -//                                              int resultSetConcurrency,
  -//                                              int resultSetHoldability)
  -//        throws SQLException {
  -//        checkOpen();
  -//        return _conn.prepareStatement(sql, resultSetType,
  -//                                      resultSetConcurrency,
  -//                                      resultSetHoldability);
  -//    }
  -//
  -//    public CallableStatement prepareCall(String sql, int resultSetType,
  -//                                         int resultSetConcurrency,
  -//                                         int resultSetHoldability)
  -//        throws SQLException {
  -//        checkOpen();
  -//        return _conn.prepareCall(sql, resultSetType,
  -//                                 resultSetConcurrency,
  -//                                 resultSetHoldability);
  -//    }
  -//
  -//    public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
  -//        throws SQLException {
  -//        checkOpen();
  -//        return _conn.prepareStatement(sql, autoGeneratedKeys);
  -//    }
  -//
  -//    public PreparedStatement prepareStatement(String sql, int columnIndexes[])
  -//        throws SQLException {
  -//        checkOpen();
  -//        return _conn.prepareStatement(sql, columnIndexes);
  -//    }
  -//
  -//    public PreparedStatement prepareStatement(String sql, String columnNames[])
  -//        throws SQLException {
  -//        checkOpen();
  -//        return _conn.prepareStatement(sql, columnNames);
  -//    }
  +    public int getHoldability() throws SQLException {
  +        checkOpen();
  +        return _conn.getHoldability();
  +    }
  +
  +    public void setHoldability(int holdability) throws SQLException {
  +        checkOpen();
  +        _conn.setHoldability(holdability);
  +    }
  +
  +    public java.sql.Savepoint setSavepoint() throws SQLException {
  +        checkOpen();
  +        return _conn.setSavepoint();
  +    }
  +
  +    public java.sql.Savepoint setSavepoint(String name) throws SQLException {
  +        checkOpen();
  +        return _conn.setSavepoint(name);
  +    }
  +
  +    public void rollback(java.sql.Savepoint savepoint) throws SQLException {
  +        checkOpen();
  +        _conn.rollback(savepoint);
  +    }
  +
  +    public void releaseSavepoint(java.sql.Savepoint savepoint) throws SQLException {
  +        checkOpen();
  +        _conn.releaseSavepoint(savepoint);
  +    }
  +
  +    public Statement createStatement(int resultSetType,
  +                                     int resultSetConcurrency,
  +                                     int resultSetHoldability)
  +        throws SQLException {
  +        checkOpen();
  +        return _conn.createStatement(resultSetType, resultSetConcurrency,
  +                                     resultSetHoldability);
  +    }
  +
  +    public PreparedStatement prepareStatement(String sql, int resultSetType,
  +                                              int resultSetConcurrency,
  +                                              int resultSetHoldability)
  +        throws SQLException {
  +        checkOpen();
  +        return _conn.prepareStatement(sql, resultSetType,
  +                                      resultSetConcurrency,
  +                                      resultSetHoldability);
  +    }
  +
  +    public CallableStatement prepareCall(String sql, int resultSetType,
  +                                         int resultSetConcurrency,
  +                                         int resultSetHoldability)
  +        throws SQLException {
  +        checkOpen();
  +        return _conn.prepareCall(sql, resultSetType,
  +                                 resultSetConcurrency,
  +                                 resultSetHoldability);
  +    }
  +
  +    public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
  +        throws SQLException {
  +        checkOpen();
  +        return _conn.prepareStatement(sql, autoGeneratedKeys);
  +    }
  +
  +    public PreparedStatement prepareStatement(String sql, int columnIndexes[])
  +        throws SQLException {
  +        checkOpen();
  +        return _conn.prepareStatement(sql, columnIndexes);
  +    }
  +
  +    public PreparedStatement prepareStatement(String sql, String columnNames[])
  +        throws SQLException {
  +        checkOpen();
  +        return _conn.prepareStatement(sql, columnNames);
  +      }
   
   //#endif
   }
  
  
  

Mime
View raw message