public static class SqlServerDatabaseConfiguration.SQLServerVariants extends Object implements SQLVariants
| Constructor and Description |
|---|
SQLServerVariants() |
| Modifier and Type | Method and Description |
|---|---|
String |
actionType()
Returns SQL representing the action type parameter.
|
String |
castToText()
Returns string for casting value to text.
|
String |
currentTimePlusSeconds(int seconds)
Returns SQL representing the current database time plus given amount of seconds.
|
String |
dateLtEqDiff(String next_activation,
String current_timestamp) |
String |
forUpdateInnerSelect() |
org.joda.time.DateTime |
getDateTime(ResultSet rs,
String columnName) |
Object |
getTimestamp(ResultSet rs,
String columnName) |
boolean |
hasUpdateableCTE()
Returns false as SQL Server does not support updateable CTEs.
|
boolean |
hasUpdateReturning()
Returns false as SQL Server does not support update returning clause.
|
String |
limit(String query,
long limit)
Returns SQL for a query with a limit of results.
|
int |
longTextType()
Returns the SQL type for long text.
|
String |
nextActivationUpdate()
Returns SQL representing the next activation time of the workflow instance.
|
void |
setDateTime(PreparedStatement ps,
int columnNumber,
org.joda.time.DateTime timestamp) |
Object |
toTimestampObject(org.joda.time.DateTime timestamp) |
boolean |
useBatchUpdate()
Returns true as SQL Server suppports batch updates.
|
String |
workflowStatus()
Returns SQL representing the workflow instance status parameter.
|
String |
workflowStatus(WorkflowInstance.WorkflowInstanceStatus status)
Returns the SQL representation for given workflow instance status.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittuneTimestampForDbpublic String currentTimePlusSeconds(int seconds)
currentTimePlusSeconds in interface SQLVariantspublic boolean hasUpdateReturning()
hasUpdateReturning in interface SQLVariantspublic boolean hasUpdateableCTE()
hasUpdateableCTE in interface SQLVariantspublic String forUpdateInnerSelect()
forUpdateInnerSelect in interface SQLVariantspublic String dateLtEqDiff(String next_activation, String current_timestamp)
dateLtEqDiff in interface SQLVariantspublic Object getTimestamp(ResultSet rs, String columnName) throws SQLException
getTimestamp in interface SQLVariantsSQLExceptionpublic org.joda.time.DateTime getDateTime(ResultSet rs, String columnName) throws SQLException
getDateTime in interface SQLVariantsSQLExceptionpublic void setDateTime(PreparedStatement ps, int columnNumber, org.joda.time.DateTime timestamp) throws SQLException
setDateTime in interface SQLVariantsSQLExceptionpublic Object toTimestampObject(org.joda.time.DateTime timestamp)
toTimestampObject in interface SQLVariantspublic String nextActivationUpdate()
nextActivationUpdate in interface SQLVariantspublic String workflowStatus(WorkflowInstance.WorkflowInstanceStatus status)
workflowStatus in interface SQLVariantspublic String workflowStatus()
workflowStatus in interface SQLVariantspublic String actionType()
actionType in interface SQLVariantspublic String castToText()
castToText in interface SQLVariantspublic String limit(String query, long limit)
limit in interface SQLVariantspublic int longTextType()
longTextType in interface SQLVariantspublic boolean useBatchUpdate()
useBatchUpdate in interface SQLVariantsCopyright © 2014–2020 Nitor Creations. All rights reserved.