|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BatchProcessor
Threadsafe batch processor. Currently capable of performing
"find", "saveOrUpdate" and "replicate" on a collection of
entities.
This processor is essentially a heavyweight generic DAO for
processing batching inserts or updates to NamedEntities and
for performing finds on DirectoryEntities.
For more information on the implementation details, please
see the javadoc for BatchProcessorImpl.
| Method Summary | ||
|---|---|---|
|
find(long directoryID,
java.util.Collection<java.lang.String> names,
java.lang.Class<E> persistentClass)
Find a set of entities by batching SQL disjunction queries. |
|
|
merge(java.util.Collection<E> objects)
Merge (almost SaveOrUpdate) a set of entities using Hibernate/JDBC batching. |
|
|
replicate(java.util.Collection<E> objects,
org.hibernate.ReplicationMode replicationMode)
Replicate a set of entities using Hibernate/JDBC batching. |
|
|
saveOrUpdate(java.util.Collection<E> objects)
Merge (almost SaveOrUpdate) a set of entities using Hibernate/JDBC batching. |
|
| Method Detail |
|---|
<E extends java.io.Serializable> BatchResult<E> replicate(java.util.Collection<E> objects,
org.hibernate.ReplicationMode replicationMode)
objects - entities to replicate.replicationMode - how to perform the replication, eg. ReplicationMode.OVERWRITE.
<E extends java.io.Serializable> BatchResult<E> merge(java.util.Collection<E> objects)
objects - entities to save or update.
These objects can be wrapped in TransactionGroups
to ensure that a group of objects are added inserted together.
<E extends java.io.Serializable> BatchResult<E> saveOrUpdate(java.util.Collection<E> objects)
objects - entities to save or update.
These objects can be wrapped in TransactionGroups
to ensure that a group of objects are added inserted together.
<E extends DirectoryEntity> java.util.Collection<E> find(long directoryID,
java.util.Collection<java.lang.String> names,
java.lang.Class<E> persistentClass)
directoryID - directory ID of the entities to return.names - collection of entity names. This, along with the directoryID
should form the primary key of the entity.persistentClass - the persistent class to lookup. This must
be a Hibernate-mapped DirectoryEntity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||