Class PgDatabaseConfiguration.PostgreSQLVariants
java.lang.Object
io.nflow.engine.config.db.PgDatabaseConfiguration.PostgreSQLVariants
- All Implemented Interfaces:
io.nflow.engine.internal.storage.db.SQLVariants
- Enclosing class:
PgDatabaseConfiguration
public static class PgDatabaseConfiguration.PostgreSQLVariants
extends Object
implements io.nflow.engine.internal.storage.db.SQLVariants
SQL variants optimized for PostgreSQL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns SQL representing the action type parameter.Returns string for casting value to text.currentTimePlusSeconds(int seconds) Returns SQL representing the current database time plus given amount of seconds.PostgreSQL suppports for update skip locked.booleanReturns true as PostgreSQL supports updateable CTEs.booleanReturns true as PostgreSQL supports update returning clause.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 as PostgreSQL suppports batch updates.Returns SQL representing the workflow instance status parameter.Returns the SQL representation for given workflow instance status.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.nflow.engine.internal.storage.db.SQLVariants
caseSensitiveLike, clobToComparable, dateLtEqDiff, getDateTime, getTimestamp, setDateTime, toTimestampObject, tuneTimestampForDb, withUpdateSkipLocked
-
Constructor Details
-
PostgreSQLVariants
public PostgreSQLVariants()
-
-
Method Details
-
currentTimePlusSeconds
Returns SQL representing the current database time plus given amount of seconds.- Specified by:
currentTimePlusSecondsin interfaceio.nflow.engine.internal.storage.db.SQLVariants
-
hasUpdateReturning
public boolean hasUpdateReturning()Returns true as PostgreSQL supports update returning clause.- Specified by:
hasUpdateReturningin interfaceio.nflow.engine.internal.storage.db.SQLVariants
-
hasUpdateableCTE
public boolean hasUpdateableCTE()Returns true as PostgreSQL supports updateable CTEs.- Specified by:
hasUpdateableCTEin interfaceio.nflow.engine.internal.storage.db.SQLVariants
-
nextActivationUpdate
Returns SQL representing the next activation time of the workflow instance.- Specified by:
nextActivationUpdatein interfaceio.nflow.engine.internal.storage.db.SQLVariants
-
workflowStatus
Returns the SQL representation for given workflow instance status.- Specified by:
workflowStatusin interfaceio.nflow.engine.internal.storage.db.SQLVariants
-
workflowStatus
Returns SQL representing the workflow instance status parameter.- Specified by:
workflowStatusin interfaceio.nflow.engine.internal.storage.db.SQLVariants
-
actionType
Returns SQL representing the action type parameter.- Specified by:
actionTypein interfaceio.nflow.engine.internal.storage.db.SQLVariants
-
castToText
Returns string for casting value to text.- Specified by:
castToTextin interfaceio.nflow.engine.internal.storage.db.SQLVariants
-
limit
-
longTextType
public int longTextType()Returns the SQL type for long text.- Specified by:
longTextTypein interfaceio.nflow.engine.internal.storage.db.SQLVariants
-
useBatchUpdate
public boolean useBatchUpdate()Returns true as PostgreSQL suppports batch updates.- Specified by:
useBatchUpdatein interfaceio.nflow.engine.internal.storage.db.SQLVariants
-
forUpdateSkipLocked
PostgreSQL suppports for update skip locked.- Specified by:
forUpdateSkipLockedin interfaceio.nflow.engine.internal.storage.db.SQLVariants
-