当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
BatchingBatcher (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.impl
Class BatchingBatcher
java.lang.Object
net.sf.hibernate.impl.BatcherImpl
net.sf.hibernate.impl.BatchingBatcher
- All Implemented Interfaces:
- Batcher
- public class BatchingBatcher
- extends BatcherImpl
An implementation of the Batcher interface that
actually uses batching
- Author:
- Gavin King
Method Summary |
void |
addToBatch(int expectedRowCount)
Add an insert / delete / update to the current batch (might be called multiple times
for single prepareBatchStatement()) |
protected void |
doExecuteBatch(PreparedStatement ps)
|
Methods inherited from class net.sf.hibernate.impl.BatcherImpl |
abortBatch, cancelLastQuery, closeConnection, closeQueryStatement, closeStatement, closeStatements, convert, executeBatch, getFactory, getResultSet, getSession, getStatement, openConnection, prepareBatchStatement, prepareQueryStatement, prepareStatement, prepareStatement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchingBatcher
public BatchingBatcher(SessionImplementor session)
addToBatch
public void addToBatch(int expectedRowCount)
throws SQLException,
HibernateException
- Description copied from interface:
Batcher
- Add an insert / delete / update to the current batch (might be called multiple times
for single prepareBatchStatement())
- Throws:
SQLException
HibernateException
doExecuteBatch
protected void doExecuteBatch(PreparedStatement ps)
throws SQLException,
HibernateException
- Specified by:
doExecuteBatch
in class BatcherImpl
- Throws:
SQLException
HibernateException