public interface TopiaPersistenceContext extends TopiaReplicationSupport, TopiaReplicationDestination, TopiaDaoSupplier, TopiaTransaction, Closeable
It extends contracts such as :
TopiaTransaction - to deal with transaction lifecycleTopiaDaoSupplier - to let user get any Dao instanceTopiaReplicationSupport - to use context to context replication
facilityTopiaReplicationDestination - can receive replicated entitiesIn addition to these contracts, there is some other methods :
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the PersistenceContext.
|
void |
delete(TopiaEntity entity)
Delete into this TopiaContext an entity created by another TopiaContext
|
<E extends TopiaEntity> |
deleteAll(Iterable<E> entities)
Delete into this TopiaContext an entities created by another TopiaContext
|
<E extends TopiaEntity> |
findByTopiaId(String topiaId)
Retrieve
TopiaEntity using its unique topiaId. |
TopiaFiresSupport |
getTopiaFiresSupport()
Get the currently configured
TopiaFiresSupport. |
TopiaIdFactory |
getTopiaIdFactory()
Get the currently configured
TopiaIdFactory. |
boolean |
isClosed()
Tells if the context is closed
|
void |
update(TopiaEntity entity)
Add into this TopiaContext an entity created by another TopiaContext
|
replicate, replicateEntities, replicateEntityreplicategetDao, getDaocommit, rollback<E extends TopiaEntity> E findByTopiaId(String topiaId)
TopiaEntity using its unique topiaId.topiaId - unique identifier of the entity in all the application.void update(TopiaEntity entity)
entity - the entity to addvoid delete(TopiaEntity entity)
entity - the entity to delete<E extends TopiaEntity> void deleteAll(Iterable<E> entities)
entities - the entities to deleteTopiaIdFactory getTopiaIdFactory()
TopiaIdFactory.TopiaIdFactory in useTopiaIdFactoryboolean isClosed()
true if the context is closed, false otherwisevoid close()
close in interface AutoCloseableclose in interface CloseableTopiaFiresSupport getTopiaFiresSupport()
TopiaFiresSupport.TopiaFiresSupport in useTopiaFiresSupportCopyright © 2004–2015 CodeLutin. All rights reserved.