public static class Db2DatabaseConfiguration.Db2SQLVariants extends Object implements SQLVariants
| Constructor and Description |
|---|
Db2SQLVariants(String dbTimeZoneIdStr) |
| 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 |
forUpdateInnerSelect() |
org.joda.time.DateTime |
getDateTime(ResultSet rs,
String columnName) |
Object |
getTimestamp(ResultSet rs,
String columnName) |
boolean |
hasUpdateableCTE()
Returns false as DB2 does not support updateable CTEs.
|
boolean |
hasUpdateReturning()
Returns false as DB2 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() |
void |
setDateTime(PreparedStatement ps,
int columnNumber,
org.joda.time.DateTime timestamp) |
Object |
toTimestampObject(org.joda.time.DateTime timestamp) |
Object |
tuneTimestampForDb(Object timestamp) |
boolean |
useBatchUpdate()
Returns true as DB2 Express-C supports 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, waitdateLtEqDiffpublic Db2SQLVariants(String dbTimeZoneIdStr)
public String currentTimePlusSeconds(int seconds)
currentTimePlusSeconds in interface SQLVariantspublic boolean hasUpdateReturning()
hasUpdateReturning in interface SQLVariantspublic boolean hasUpdateableCTE()
hasUpdateableCTE 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 forUpdateInnerSelect()
forUpdateInnerSelect in interface SQLVariantspublic String limit(String query, long limit)
limit in interface SQLVariantspublic int longTextType()
longTextType in interface SQLVariantspublic boolean useBatchUpdate()
useBatchUpdate 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 Object tuneTimestampForDb(Object timestamp)
tuneTimestampForDb in interface SQLVariantsCopyright © 2014–2020 Nitor Creations. All rights reserved.