站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

BatchingBatcher (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.impl
Class BatchingBatcher

java.lang.Object
  extended bynet.sf.hibernate.impl.BatcherImpl
      extended bynet.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

Field Summary
 
Fields inherited from class net.sf.hibernate.impl.BatcherImpl
log, sqlLog
 
Constructor Summary
BatchingBatcher(SessionImplementor session)
           
 
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
 

Constructor Detail

BatchingBatcher

public BatchingBatcher(SessionImplementor session)
Method Detail

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