org.hibernate.persister.collection.CollectionPersister#getBatchSize ( )源码实例Demo

下面列出了org.hibernate.persister.collection.CollectionPersister#getBatchSize ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: lams   文件: StatefulPersistenceContext.java
@Override
public void addUninitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id) {
	final CollectionEntry ce = new CollectionEntry( collection, persister, id, flushing );
	addCollection( collection, ce, id );
	if ( persister.getBatchSize() > 1 ) {
		getBatchFetchQueue().addBatchLoadableCollection( collection, ce );
	}
}
 
源代码2 项目: lams   文件: StatefulPersistenceContext.java
@Override
public void addUninitializedDetachedCollection(CollectionPersister persister, PersistentCollection collection) {
	final CollectionEntry ce = new CollectionEntry( persister, collection.getKey() );
	addCollection( collection, ce, collection.getKey() );
	if ( persister.getBatchSize() > 1 ) {
		getBatchFetchQueue().addBatchLoadableCollection( collection, ce );
	}
}