public class ReplicationServiceBean extends GenericLocalServiceBean
collectReplications, connected, replication, replicationServicesentityManagerNAMEDQUERY_ALL, NAMEDQUERY_BETWEEN, NAMEDQUERY_DELETE, NAMEDQUERY_ID, NAMEDQUERY_INSERT, NAMEDQUERY_UPDATE| Constructor and Description |
|---|
ReplicationServiceBean()
constructor
|
ReplicationServiceBean(javax.persistence.EntityManager entityManager)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
<T> Collection<T> |
persistCollection(Collection<T> beans,
Class... lazyRelations)
this extension tries to persist new data from source db to this replication db. the method
#addReplicationEntities(de.tsl2.nano.service.util.IGenericBaseService, java.util.List, java.util.List)
inserts all unpersisted relations - but in an undefined order. so we have to try to persist the collection for
several times. if no element was persisted in one loop, the trial and error job stops. |
<T> T |
persistNoTransaction(T bean,
boolean refreshBean,
boolean flush,
Class... lazyRelations) |
protected <T> T |
persistRep(T bean)
persistRep
|
createEntityManager, executeQuery, persist, remove, setEntityManageraddReplicationEntities, addReplicationEntities, checkConnection, checkConnection, connection, createStandardReplication, doForReplication, findByQuery, getAvailableReplication, switchToConnectioncreateQuery, fillTree, find, findAll, findAll, findBatch, findBetween, findBetween, findByExample, findByExample, findByExample, findByExampleLike, findById, findByQuery, findByQuery, findHolders, findItemByQuery, findMembers, findValueByQuery, getUser, instantiateLazyRelationship, instantiateLazyRelationship, instantiateLazyRelationship, instantiateLazyRelationship, instantiateLazyRelationship, persist, persistAll, refresh, removeCollectionfindByNamedQuery, getNamedQueryByArguments, getNamedQueryPrefix, isNamedQuery, isVirtualEntity, persistByNamedQuery, removeByNamedQuerycheckContextSecurity, formatQuery, getEntityTypes, getLazyRelationType, getMaxRecursionLevel, getMaxResult, getServerInfo, initServerSideFactories, isLazyLoadingOnlyOnOneToMany, logTrace, setParameterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitServerSideFactoriesinitServerSideFactoriesgetServerInfofindByNamedQuerypublic ReplicationServiceBean()
public ReplicationServiceBean(javax.persistence.EntityManager entityManager)
entityManager - public <T> Collection<T> persistCollection(Collection<T> beans, Class... lazyRelations)
#addReplicationEntities(de.tsl2.nano.service.util.IGenericBaseService, java.util.List, java.util.List)
inserts all unpersisted relations - but in an undefined order. so we have to try to persist the collection for
several times. if no element was persisted in one loop, the trial and error job stops.persistCollection in interface IGenericBaseServicepersistCollection in class GenericLocalServiceBeande.tsl2.nano.service.util.GenericServiceBean#persist(java.util.Collection)protected <T> T persistRep(T bean)
bean - public <T> T persistNoTransaction(T bean,
boolean refreshBean,
boolean flush,
Class... lazyRelations)
persistNoTransaction in interface IGenericBaseServicepersistNoTransaction in class GenericReplicatingServiceBeanCopyright © 2012–2018. All rights reserved.