Package de.hybris.platform.core.system
Interface InitializationLockDao
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultInitLockDao
Database specific logic for
InitializationLockHandler.-
Method Summary
Modifier and TypeMethodDescriptionvoidOptionally creates table.longIdentifier specific for running platform.booleanOptionally inserts lock row.booleanLocks row using cluster node ID from given tenant.Reads current locking information.booleanreleaseRow(Tenant forTenant) Releases existing lock.
-
Method Details
-
readLockInfo
InitializationLockInfo readLockInfo()Reads current locking information.- Returns:
nullif no lock row or table exists, the info object otherwise
-
releaseRow
Releases existing lock. Tenant must have cluster node ID that matches the one inside the lock! -
lockRow
Locks row using cluster node ID from given tenant. Requires lock not being taken before (no matter by which cluster node!). -
insertRow
boolean insertRow()Optionally inserts lock row.- Returns:
trueif row could be inserted or row already exists,falseon other errors (e.g. table not existing)
-
createTable
void createTable()Optionally creates table. If table already exists it does nothing. -
getUniqueInstanceIdentifier
long getUniqueInstanceIdentifier()Identifier specific for running platform. Every platform startup standalone or other should have own unique identifier.
-