Package io.nflow.engine.config.db
Class SqlServerDatabaseConfiguration.SQLServerVariants
java.lang.Object
io.nflow.engine.config.db.SqlServerDatabaseConfiguration.SQLServerVariants
- All Implemented Interfaces:
SQLVariants
- Enclosing class:
SqlServerDatabaseConfiguration
public static class SqlServerDatabaseConfiguration.SQLServerVariants
extends Object
implements SQLVariants
SQL variants optimized for SQL Server.
-
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.dateLtEqDiff(String date1, String date2) SQL Server supports withUpdateSkipLocked instead.org.joda.time.DateTimegetDateTime(ResultSet rs, String columnName) getTimestamp(ResultSet rs, String columnName) booleanReturns false as SQL Server 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.voidsetDateTime(PreparedStatement ps, int columnNumber, org.joda.time.DateTime timestamp) toTimestampObject(org.joda.time.DateTime timestamp) booleanReturns true as SQL Server suppports batch updates.SQL Server supports withUpdateSkipLocked.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, clobToComparable, hasUpdateReturning, tuneTimestampForDb
-
Constructor Details
-
SQLServerVariants
public SQLServerVariants()
-
-
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 SQL Server does not support updateable CTEs.- Specified by:
hasUpdateableCTEin interfaceSQLVariants
-
forUpdateSkipLocked
SQL Server supports withUpdateSkipLocked instead.- Specified by:
forUpdateSkipLockedin interfaceSQLVariants
-
withUpdateSkipLocked
SQL Server supports withUpdateSkipLocked.- Specified by:
withUpdateSkipLockedin interfaceSQLVariants
-
dateLtEqDiff
- Specified by:
dateLtEqDiffin interfaceSQLVariants
-
getTimestamp
- Specified by:
getTimestampin interfaceSQLVariants- Throws:
SQLException
-
getDateTime
- Specified by:
getDateTimein interfaceSQLVariants- Throws:
SQLException
-
setDateTime
public void setDateTime(PreparedStatement ps, int columnNumber, org.joda.time.DateTime timestamp) throws SQLException - Specified by:
setDateTimein interfaceSQLVariants- Throws:
SQLException
-
toTimestampObject
- Specified by:
toTimestampObjectin 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 string for casting value to text.- 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 as SQL Server suppports batch updates.- Specified by:
useBatchUpdatein interfaceSQLVariants
-