Class MySQLVariants
- java.lang.Object
-
- io.nflow.engine.internal.storage.db.MySQLVariants
-
- All Implemented Interfaces:
SQLVariants
public class MySQLVariants extends Object implements SQLVariants
SQL variants optimized for MySQL.
-
-
Constructor Summary
Constructors Constructor Description MySQLVariants()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringactionType()Returns SQL representing the action type parameter.StringcaseSensitiveLike()Returns "like binary" for case-sensitive comparison.StringcastToText()Returns empty string as casting to text is not needed in MySQL.StringcurrentTimePlusSeconds(int seconds)Returns SQL representing the current database time plus given amount of seconds.booleanhasUpdateableCTE()Returns false as MySQL does not support updateable CTEs.Stringlimit(String query, long limit)Returns SQL for a query with a limit of results.intlongTextType()Returns the SQL type for long text.StringnextActivationUpdate()Returns SQL representing the next activation time of the workflow instance.booleanuseBatchUpdate()Returns true as MySQL supports batch updates.StringworkflowStatus()Returns SQL representing the workflow instance status parameter.StringworkflowStatus(WorkflowInstance.WorkflowInstanceStatus status)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, wait
-
Methods inherited from interface io.nflow.engine.internal.storage.db.SQLVariants
dateLtEqDiff, forUpdateSkipLocked, getDateTime, getTimestamp, hasUpdateReturning, setDateTime, toTimestampObject, tuneTimestampForDb, withUpdateSkipLocked
-
-
-
-
Method Detail
-
currentTimePlusSeconds
public String currentTimePlusSeconds(int seconds)
Returns SQL representing the current database time plus given amount of seconds.- Specified by:
currentTimePlusSecondsin interfaceSQLVariants
-
hasUpdateableCTE
public boolean hasUpdateableCTE()
Returns false as MySQL does not support updateable CTEs.- Specified by:
hasUpdateableCTEin interfaceSQLVariants
-
nextActivationUpdate
public String nextActivationUpdate()
Returns SQL representing the next activation time of the workflow instance.- Specified by:
nextActivationUpdatein interfaceSQLVariants
-
workflowStatus
public String workflowStatus(WorkflowInstance.WorkflowInstanceStatus status)
Returns the SQL representation for given workflow instance status.- Specified by:
workflowStatusin interfaceSQLVariants
-
workflowStatus
public String workflowStatus()
Returns SQL representing the workflow instance status parameter.- Specified by:
workflowStatusin interfaceSQLVariants
-
actionType
public String actionType()
Returns SQL representing the action type parameter.- Specified by:
actionTypein interfaceSQLVariants
-
castToText
public String castToText()
Returns empty string as casting to text is not needed in MySQL.- Specified by:
castToTextin interfaceSQLVariants
-
limit
public String limit(String query, long 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 as MySQL supports batch updates.- Specified by:
useBatchUpdatein interfaceSQLVariants
-
caseSensitiveLike
public String caseSensitiveLike()
Returns "like binary" for case-sensitive comparison.- Specified by:
caseSensitiveLikein interfaceSQLVariants
-
-