1 22 23 package org.xquark.mapper.dbms; 24 25 import java.sql.*; 26 27 import org.xquark.jdbc.typing.DBMSInfo; 28 29 35 public class JDBC2Connection extends DefaultConnectionImpl 36 { 37 private static final String RCSRevision = "$Revision: 1.2 $"; 38 private static final String RCSName = "$Name: $"; 39 40 public JDBC2Connection(Connection connection, short dbms) 41 throws SQLException 42 { 43 super(connection, dbms); 44 } 45 46 protected JDBC2Connection(Connection connection, short dbms, DBMSInfo dbmsInfo) 47 throws SQLException 48 { 49 super(connection, dbms, dbmsInfo); 50 } 51 52 58 public void addBatch(PreparedStatement stmt) throws SQLException 59 { 60 stmt.addBatch(); 61 } 62 63 67 public void addBatch(Statement stmt, String SQLStatement) throws SQLException 68 { 69 stmt.addBatch(SQLStatement); 70 } 71 77 public int[] executeBatch(Statement stmt) throws SQLException 78 { 79 int[] ret = stmt.executeBatch(); 80 stmt.clearBatch(); 81 return ret; 82 } 83 84 89 public void setFetchSize(Statement stmt,int rows) throws SQLException 90 { 91 stmt.setFetchSize(rows); 92 } 93 } 94 | Popular Tags |