Package io.nflow.engine.config.db
Class OracleDatabaseConfiguration.OracleSqlVariants
java.lang.Object
io.nflow.engine.config.db.OracleDatabaseConfiguration.OracleSqlVariants
- All Implemented Interfaces:
SQLVariants
- Enclosing class:
OracleDatabaseConfiguration
public static class OracleDatabaseConfiguration.OracleSqlVariants
extends Object
implements SQLVariants
SQL variants optimized for Oracle.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns SQL representing the action type parameter.Returns empty string as casting to text is not needed in Oracle.clobToComparable(String column) currentTimePlusSeconds(int seconds) Returns SQL representing the current database time plus given amount of seconds.booleanReturns false as Oracle does not support updateable CTEs.Returns SQL for a query with a limit of results.intReturns the SQL type for long text.Returns SQL representing the next activation time of the workflow instance.booleanReturns true for database versions 12.1 or newer.Returns SQL representing the workflow instance status parameter.Returns the SQL representation for given workflow instance status.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.nflow.engine.internal.storage.db.SQLVariants
caseSensitiveLike, dateLtEqDiff, getDateTime, getTimestamp, hasUpdateReturning, setDateTime, toTimestampObject, tuneTimestampForDb, withUpdateSkipLocked
-
Constructor Details
-
OracleSqlVariants
public OracleSqlVariants(boolean useBatchUpdate) Create a new instance.- Parameters:
useBatchUpdate- True for database versions 12.1 or newer.
-
-
Method Details
-
currentTimePlusSeconds
Returns SQL representing the current database time plus given amount of seconds.- Specified by:
currentTimePlusSecondsin interfaceSQLVariants
-
hasUpdateableCTE
public boolean hasUpdateableCTE()Returns false as Oracle does not support updateable CTEs.- Specified by:
hasUpdateableCTEin interfaceSQLVariants
-
nextActivationUpdate
Returns SQL representing the next activation time of the workflow instance.- Specified by:
nextActivationUpdatein interfaceSQLVariants
-
workflowStatus
Returns the SQL representation for given workflow instance status.- Specified by:
workflowStatusin interfaceSQLVariants
-
workflowStatus
Returns SQL representing the workflow instance status parameter.- Specified by:
workflowStatusin interfaceSQLVariants
-
actionType
Returns SQL representing the action type parameter.- Specified by:
actionTypein interfaceSQLVariants
-
castToText
Returns empty string as casting to text is not needed in Oracle.- Specified by:
castToTextin interfaceSQLVariants
-
limit
Returns SQL for a query with a limit of results.- Specified by:
limitin interfaceSQLVariants
-
longTextType
public int longTextType()Returns the SQL type for long text.- Specified by:
longTextTypein interfaceSQLVariants
-
useBatchUpdate
public boolean useBatchUpdate()Returns true for database versions 12.1 or newer.- Specified by:
useBatchUpdatein interfaceSQLVariants
-
clobToComparable
- Specified by:
clobToComparablein interfaceSQLVariants
-
forUpdateSkipLocked
- Specified by:
forUpdateSkipLockedin interfaceSQLVariants
-