public interface JooqDomainHandler
| Modifier and Type | Method and Description |
|---|---|
void |
createTables(org.jooq.DSLContext context)
This method is called each time the connection is created.
|
int |
delete(org.jooq.DSLContext context,
UUID uuid,
Object locker,
String... primaryKeys)
This method is called each time a C2KLocalObject is deleted.
|
int |
put(org.jooq.DSLContext context,
UUID uuid,
org.cristalise.kernel.entity.C2KLocalObject obj,
Object locker)
This method is called each time a C2KLocalObject is stored.
|
void createTables(org.jooq.DSLContext context)
throws org.cristalise.kernel.common.PersistencyException
context.createTableIfNotExists(TABLE) to initialise database tables gracefully.context - The configured DSLContext of jooqorg.cristalise.kernel.common.PersistencyException - throw this exception in case of any error that requires to abort a transactionint put(org.jooq.DSLContext context,
UUID uuid,
org.cristalise.kernel.entity.C2KLocalObject obj,
Object locker)
throws org.cristalise.kernel.common.PersistencyException
context - The configured DSLContext of jooquuid - the Item's UUIDobj - Object that is being storedlocker - transaction keyorg.cristalise.kernel.common.PersistencyException - throw this exception in case of any error that requires to abort a transactionint delete(org.jooq.DSLContext context,
UUID uuid,
Object locker,
String... primaryKeys)
throws org.cristalise.kernel.common.PersistencyException
context - The configured DSLContext of jooquuid - the Item's UUIDlocker - transaction keyprimaryKeys - the identifiers of the Outcome withing the Itemorg.cristalise.kernel.common.PersistencyException - throw this exception in case of any error that requires to abort a transactionCopyright © 2019 CRISTAL-iSE. All rights reserved.