From: <one...@us...> - 2002-10-31 16:58:28
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/engine In directory usw-pr-cvs1:/tmp/cvs-serv13818/cirrus/hibernate/engine Modified Files: Batcher.java SessionFactoryImplementor.java Log Message: Batcher hierarchy enforces seperation of concerns Index: Batcher.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/engine/Batcher.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Batcher.java 24 Oct 2002 10:04:28 -0000 1.2 --- Batcher.java 31 Oct 2002 16:58:16 -0000 1.3 *************** *** 54,57 **** --- 54,62 ---- */ public void executeBatch() throws SQLException, HibernateException; + + /** + * Close any query statements that were left lying around + */ + public void closeStatements(); } Index: SessionFactoryImplementor.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/engine/SessionFactoryImplementor.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SessionFactoryImplementor.java 18 Oct 2002 15:50:08 -0000 1.3 --- SessionFactoryImplementor.java 31 Oct 2002 16:58:20 -0000 1.4 *************** *** 3,6 **** --- 3,7 ---- import java.sql.Connection; + import java.sql.PreparedStatement; import java.sql.SQLException; *************** *** 69,71 **** --- 70,92 ---- */ public String[] getImports(); + + /** + * Dispose of a prepared statement + */ + public void closePreparedStatement(PreparedStatement ps) throws SQLException; + + /** + * Obtain a prepared statement + */ + public PreparedStatement getPreparedStatement(final Connection conn, final String sql, boolean scrollable) throws SQLException; + + /** + * Get the JDBC batch size + */ + public int getJdbcBatchSize(); + + /** + * Set the fetch size + */ + public void setFetchSize(PreparedStatement statement) throws SQLException; } |