public abstract class JooqHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.jooq.DataType<byte[]> |
ATTACHMENT_TYPE |
static org.jooq.DataType<Integer> |
ID_TYPE |
static org.jooq.DataType<String> |
IOR_TYPE |
static String |
JOOQ_AUTOCOMMIT
Defines the key (value:"JOOQ.autoCommit") to retrieve a boolean value to set the JDBC connection
with autocommit or not.
|
static String |
JOOQ_DIALECT
Defines the key (value:"JOOQ.dialect") to retrieve the database dialect.
|
static String |
JOOQ_DISABLE_DOMAIN_CREATE
Defines the key (value:"JOOQ.disableDomainCreateTables") to retrieve the boolean value to disable the invocation of
JooqDomainHandler.createTables(DSLContext). |
static String |
JOOQ_DOMAIN_HANDLERS
Defines the key (value:"JOOQ.domainHandlers") to retrieve the string value of the comma separated list of
fully qualified class names implementing the
JooqDomainHandler interface. |
static String |
JOOQ_NAME_TYPE_LENGHT
Defines the key (value:"JOOQ.NameType.length") to retrieve the integer value for VARCHAR size of NAME_TYPE type declaration
JooqDomainHandler.createTables(DSLContext). |
static String |
JOOQ_PASSWORD
Defines the key (value:"JOOQ.password") to retrieve a string value to set the password
|
static String |
JOOQ_PASSWORD_TYPE_LENGHT
Defines the key (value:"JOOQ.PasswordType.length") to retrieve the integer value for VARCHAR size of PASSWORD_TYPE type declaration
JooqDomainHandler.createTables(DSLContext). |
static String |
JOOQ_STRING_TYPE_LENGHT
Defines the key (value:"JOOQ.StringType.length") to retrieve the integer value for VARCHAR size of STRING_TYPE type declaration
JooqDomainHandler.createTables(DSLContext). |
static String |
JOOQ_TEXT_TYPE_LENGHT
Defines the key (value:"JOOQ.TextType.length") to retrieve the integer value for VARCHAR size of TEXT_TYPE type declaration
JooqDomainHandler.createTables(DSLContext). |
static String |
JOOQ_URI
Defines the key (value:"JOOQ.URI") to retrieve a string value to set JDBC URI
|
static String |
JOOQ_USER
Defines the key (value:"JOOQ.user") to retrieve a string value to set the user
|
static org.jooq.DataType<String> |
NAME_TYPE |
static org.jooq.DataType<String> |
PASSWORD_TYPE |
static org.jooq.DataType<String> |
STRING_TYPE |
static org.jooq.DataType<String> |
TEXT_TYPE |
static org.jooq.DataType<Timestamp> |
TIMESTAMP_TYPE |
static org.jooq.DataType<UUID> |
UUID_TYPE |
static org.jooq.DataType<Integer> |
VERSION_TYPE |
static org.jooq.DataType<String> |
XML_TYPE |
static org.jooq.DataType<String> |
XML_TYPE_MYSQL |
| Constructor and Description |
|---|
JooqHandler() |
| Modifier and Type | Method and Description |
|---|---|
static org.jooq.DSLContext |
connect() |
abstract void |
createTables(org.jooq.DSLContext context) |
int |
delete(org.jooq.DSLContext context,
UUID uuid,
String... primaryKeys) |
abstract void |
dropTables(org.jooq.DSLContext context) |
boolean |
exists(org.jooq.DSLContext context,
UUID uuid) |
boolean |
exists(org.jooq.DSLContext context,
UUID uuid,
C2KLocalObject obj) |
abstract C2KLocalObject |
fetch(org.jooq.DSLContext context,
UUID uuid,
String... primaryKeys) |
protected org.jooq.Result<?> |
fetchDistinctResult(org.jooq.DSLContext context,
org.jooq.Field<?> field,
UUID uuid,
String... primaryKeys) |
protected org.jooq.Record |
fetchRecord(org.jooq.DSLContext context,
UUID uuid,
String... primaryKeys) |
protected abstract org.jooq.Field<?> |
getNextPKField(String... primaryKeys) |
String[] |
getNextPrimaryKeys(org.jooq.DSLContext context,
UUID uuid,
String... primaryKeys) |
protected List<org.jooq.Condition> |
getPKConditions(UUID uuid,
C2KLocalObject obj) |
protected abstract List<org.jooq.Condition> |
getPKConditions(UUID uuid,
String... primaryKeys) |
protected abstract org.jooq.Table<?> |
getTable() |
protected UUID |
getUUID(org.jooq.Record record,
org.jooq.Field<UUID> field)
Reads the record from the given field as UUID.
|
protected org.jooq.DataType<String> |
getXMLType(org.jooq.DSLContext context)
Return the good XML type for the given dialect
|
abstract int |
insert(org.jooq.DSLContext context,
UUID uuid,
C2KLocalObject obj) |
static void |
logConnectionCount(String text,
org.jooq.DSLContext context) |
int |
put(org.jooq.DSLContext context,
UUID uuid,
C2KLocalObject obj) |
abstract int |
update(org.jooq.DSLContext context,
UUID uuid,
C2KLocalObject obj) |
public static final String JOOQ_URI
public static final String JOOQ_USER
public static final String JOOQ_PASSWORD
public static final String JOOQ_DIALECT
public static final String JOOQ_AUTOCOMMIT
public static final String JOOQ_DOMAIN_HANDLERS
JooqDomainHandler interface.public static final String JOOQ_DISABLE_DOMAIN_CREATE
JooqDomainHandler.createTables(DSLContext). Default is 'false'public static final String JOOQ_NAME_TYPE_LENGHT
JooqDomainHandler.createTables(DSLContext). Default is '64'
It is used for these columns:
- COLLECTION.NAME - EVENT.AGENT_ROLE - EVENT.SCHEMA_NAME - EVENT.STATEMACHINE_NAME - EVENT.STEP_NAME - EVENT.STEP_TYPE - EVENT.VIEW_NAME - ITEM_PROPERTY.NAME - JOB.STEP_NAME - JOB.STEP_TYPE - JOB.ORIGIN_STATE_NAME - JOB.TARGET_STATE_NAME - JOB.AGENT_ROLE - LIFECYCLE.NAME - OUTCOME.SCHEMA_NAME - OUTCOME_ATTACHMENT.SCHEMA_NAME - VIEWPOINT.SCHEMA_NAME
public static final String JOOQ_PASSWORD_TYPE_LENGHT
JooqDomainHandler.createTables(DSLContext). Default is '800'
It is used for these columns:
- ITEM.PASSWORD
public static final String JOOQ_STRING_TYPE_LENGHT
JooqDomainHandler.createTables(DSLContext). Default is '800'
It is used for these columns:
- EVENT.STEP_PATH - JOB.STEP_PATH - DOMAIN_PATH.PATH - ROLE_PATH.PATH - ROLE_PERMISSION.ROLE_PATH
public static final String JOOQ_TEXT_TYPE_LENGHT
JooqDomainHandler.createTables(DSLContext). Default is '800'
It is used for these columns:
- ITEM_PROPERTY.VALUE - ROLE_PERMISSION.PERMISSION
public static final org.jooq.DataType<UUID> UUID_TYPE
public static final org.jooq.DataType<String> NAME_TYPE
public static final org.jooq.DataType<Integer> VERSION_TYPE
public static final org.jooq.DataType<String> PASSWORD_TYPE
public static final org.jooq.DataType<String> STRING_TYPE
public static final org.jooq.DataType<String> TEXT_TYPE
public static final org.jooq.DataType<String> IOR_TYPE
public static final org.jooq.DataType<Integer> ID_TYPE
public static final org.jooq.DataType<Timestamp> TIMESTAMP_TYPE
public static final org.jooq.DataType<String> XML_TYPE
public static final org.jooq.DataType<String> XML_TYPE_MYSQL
public static final org.jooq.DataType<byte[]> ATTACHMENT_TYPE
public static org.jooq.DSLContext connect()
throws PersistencyException
PersistencyExceptionprotected abstract org.jooq.Table<?> getTable()
protected abstract org.jooq.Field<?> getNextPKField(String... primaryKeys) throws PersistencyException
PersistencyExceptionprotected abstract List<org.jooq.Condition> getPKConditions(UUID uuid, String... primaryKeys) throws PersistencyException
PersistencyExceptionprotected org.jooq.Record fetchRecord(org.jooq.DSLContext context,
UUID uuid,
String... primaryKeys)
throws PersistencyException
PersistencyExceptionprotected org.jooq.Result<?> fetchDistinctResult(org.jooq.DSLContext context,
org.jooq.Field<?> field,
UUID uuid,
String... primaryKeys)
throws PersistencyException
PersistencyExceptionprotected List<org.jooq.Condition> getPKConditions(UUID uuid, C2KLocalObject obj) throws PersistencyException
PersistencyExceptionpublic int put(org.jooq.DSLContext context,
UUID uuid,
C2KLocalObject obj)
throws PersistencyException
PersistencyExceptionpublic int delete(org.jooq.DSLContext context,
UUID uuid,
String... primaryKeys)
throws PersistencyException
PersistencyExceptionpublic String[] getNextPrimaryKeys(org.jooq.DSLContext context, UUID uuid, String... primaryKeys) throws PersistencyException
PersistencyExceptionpublic boolean exists(org.jooq.DSLContext context,
UUID uuid)
throws PersistencyException
PersistencyExceptionpublic boolean exists(org.jooq.DSLContext context,
UUID uuid,
C2KLocalObject obj)
throws PersistencyException
PersistencyExceptionprotected UUID getUUID(org.jooq.Record record, org.jooq.Field<UUID> field)
record - the record to readfield - the field to be readprotected org.jooq.DataType<String> getXMLType(org.jooq.DSLContext context)
context - the contextpublic abstract void createTables(org.jooq.DSLContext context)
throws PersistencyException
PersistencyExceptionpublic abstract void dropTables(org.jooq.DSLContext context)
throws PersistencyException
PersistencyExceptionpublic abstract int update(org.jooq.DSLContext context,
UUID uuid,
C2KLocalObject obj)
throws PersistencyException
PersistencyExceptionpublic abstract int insert(org.jooq.DSLContext context,
UUID uuid,
C2KLocalObject obj)
throws PersistencyException
PersistencyExceptionpublic abstract C2KLocalObject fetch(org.jooq.DSLContext context, UUID uuid, String... primaryKeys) throws PersistencyException
PersistencyExceptionpublic static void logConnectionCount(String text, org.jooq.DSLContext context)
Copyright © 1997–2020 CRISTAL-iSE. All rights reserved.