public interface PersistenceHandler
| 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.
|
StrolchTransaction openTx(StrolchRealm realm, Certificate certificate, String action)
StrolchTransaction on the given StrolchRealm. The transaction is the main object to be
used when accessing and modifying the elements of a realm.realm - 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 auditingStrolchTransactionOrderDao getOrderDao(StrolchTransaction tx)
ResourceDao getResourceDao(StrolchTransaction tx)
ResourceDao 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 transactiontx - the transaction for which the ResourceDao is to be returnedResourceDaoActivityDao getActivityDao(StrolchTransaction tx)
ActivityDao 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 transactiontx - the transaction for which the ActivityDao is to be returnedActivityDaoAuditDao getAuditDao(StrolchTransaction tx)
AuditDao 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
transactionvoid performDbInitialization()
Copyright © 2011–2016 Strolch. All rights reserved.