org.hibernate.cfg.Settings.getBatcherFactory()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(77)

本文整理了Java中org.hibernate.cfg.Settings.getBatcherFactory()方法的一些代码示例,展示了Settings.getBatcherFactory()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Settings.getBatcherFactory()方法的具体详情如下:
包路径:org.hibernate.cfg.Settings
类名称:Settings
方法名:getBatcherFactory

Settings.getBatcherFactory介绍

暂无

代码示例

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

public BatcherFactory getBatcherFactory() {
  return settings.getBatcherFactory();
}

代码示例来源:origin: hibernate/hibernate

public BatcherFactory getBatcherFactory() {
  return settings.getBatcherFactory();
}

代码示例来源:origin: hibernate/hibernate

/**
 * Used during deserialization.
 *
 * @param ois The stream from which we are being read.
 * @throws IOException Indicates an I/O error reading the stream
 * @throws ClassNotFoundException Indicates resource class resolution.
 */
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
  factory = ( SessionFactoryImplementor ) ois.readObject();
  ois.defaultReadObject();
  this.batcher = factory.getSettings().getBatcherFactory().createBatcher( this );
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * Used during deserialization.
 *
 * @param ois The stream from which we are being read.
 * @throws IOException Indicates an I/O error reading the stream
 * @throws ClassNotFoundException Indicates resource class resolution.
 */
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
  factory = (SessionFactoryImplementor) ois.readObject();
  interceptor = (Interceptor) ois.readObject();
  ois.defaultReadObject();
  this.batcher = factory.getSettings().getBatcherFactory().createBatcher( this, interceptor );
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * Private constructor used exclusively from custom serialization
 */
private ConnectionManager(
    SessionFactoryImplementor factory,
    Callback callback,
    ConnectionReleaseMode releaseMode,
    Interceptor interceptor,
    boolean wasConnectionSupplied,
    boolean isClosed) {
  this.factory = factory;
  this.callback = callback;
  this.interceptor = interceptor;
  this.batcher = factory.getSettings().getBatcherFactory().createBatcher( this, interceptor );
  this.wasConnectionSupplied = wasConnectionSupplied;
  this.isClosed = isClosed;
  this.releaseMode = wasConnectionSupplied ? ConnectionReleaseMode.ON_CLOSE : releaseMode;
}

代码示例来源:origin: hibernate/hibernate

/**
 * Constructs a ConnectionManager.
 * <p/>
 * This is the form used internally.
 * 
 * @param factory The SessionFactory.
 * @param callback An observer for internal state change.
 * @param releaseMode The mode by which to release JDBC connections.
 * @param connection An externally supplied connection.
 */ 
public ConnectionManager(
    SessionFactoryImplementor factory,
    Callback callback,
    ConnectionReleaseMode releaseMode,
    Connection connection) {
  this.factory = factory;
  this.callback = callback;
  this.batcher = factory.getSettings().getBatcherFactory().createBatcher( this );
  this.releaseMode = releaseMode;
  this.connection = connection;
  wasConnectionSupplied = ( connection != null );
  shouldObtainConnection = !wasConnectionSupplied;
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * Constructs a ConnectionManager.
 * <p/>
 * This is the form used internally.
 * 
 * @param factory The SessionFactory.
 * @param callback An observer for internal state change.
 * @param releaseMode The mode by which to release JDBC connections.
 * @param connection An externally supplied connection.
 */ 
public ConnectionManager(
    SessionFactoryImplementor factory,
    Callback callback,
    ConnectionReleaseMode releaseMode,
    Connection connection,
    Interceptor interceptor) {
  this.factory = factory;
  this.callback = callback;
  this.interceptor = interceptor;
  this.batcher = factory.getSettings().getBatcherFactory().createBatcher( this, interceptor );
  this.connection = connection;
  wasConnectionSupplied = ( connection != null );
  this.releaseMode = wasConnectionSupplied ? ConnectionReleaseMode.ON_CLOSE : releaseMode;
}

相关文章

Settings类方法