public class InMemoryPersistence extends Object implements PersistenceHandler
| Constructor and Description |
|---|
InMemoryPersistence(PrivilegeHandler privilegeHandler,
boolean versioningEnabled) |
| Modifier and Type | Method and Description |
|---|---|
ActivityDao |
getActivityDao(StrolchTransaction tx)
Returns the
ActivityDao for the given transaction. |
AuditDao |
getAuditDao(StrolchTransaction tx)
Returns the
AuditDao for the given transaction. |
OrderDao |
getOrderDao(StrolchTransaction tx)
Returns the
OrderDao for the given transaction. |
ResourceDao |
getResourceDao(StrolchTransaction tx)
Returns the
ResourceDao for the given transaction. |
StrolchTransaction |
openTx(StrolchRealm realm,
Certificate certificate,
String action)
Opens a
StrolchTransaction on the given StrolchRealm. |
void |
performDbInitialization()
Performs a database specific initialization of the underlying database for each realm.
|
public InMemoryPersistence(PrivilegeHandler privilegeHandler, boolean versioningEnabled)
public StrolchTransaction openTx(StrolchRealm realm, Certificate certificate, String action)
PersistenceHandlerStrolchTransaction on the given StrolchRealm. The transaction is the main object to be
used when accessing and modifying the elements of a realm.openTx in interface PersistenceHandlerrealm - the realm for which the transaction is to be openedcertificate - the certificate which has access to the realmaction - the name of the transaction used for auditingStrolchTransactionpublic OrderDao getOrderDao(StrolchTransaction tx)
PersistenceHandlerOrderDao for the given transaction. Use this only if you want to bypass certain transaction
features. Accessing Orders should be done through the OrderMap accessed from the
transactiongetOrderDao in interface PersistenceHandlertx - the transaction for which the OrderDao is to be returnedOrderDaopublic ResourceDao getResourceDao(StrolchTransaction tx)
PersistenceHandlerResourceDao for the given transaction. Use this only if you want to bypass certain
transaction features. Accessing Resources should be done through the ResourceMap
accessed from the transactiongetResourceDao in interface PersistenceHandlertx - the transaction for which the ResourceDao is to be returnedResourceDaopublic ActivityDao getActivityDao(StrolchTransaction tx)
PersistenceHandlerActivityDao for the given transaction. Use this only if you want to bypass certain
transaction features. Accessing Activities should be done through the ActivityMap
accessed from the transactiongetActivityDao in interface PersistenceHandlertx - the transaction for which the ActivityDao is to be returnedActivityDaopublic AuditDao getAuditDao(StrolchTransaction tx)
PersistenceHandlerAuditDao for the given transaction. Use this only if you want to bypass certain transaction
features. Accessing Audits should be done through the AuditTrail accessed from the
transactiongetAuditDao in interface PersistenceHandlertx - the transaction for which the AuditDao is to be returnedAuditDaopublic void performDbInitialization()
PersistenceHandlerperformDbInitialization in interface PersistenceHandlerCopyright © 2011–2016 Strolch. All rights reserved.