Class DerbySqlStyle
- All Implemented Interfaces:
Serializable
,ISqlStyle
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.scout.rt.server.jdbc.style.AbstractSqlStyle
AbstractSqlStyle.DecimalConversion
-
Field Summary
Fields inherited from interface org.eclipse.scout.rt.server.jdbc.style.ISqlStyle
MAX_LIST_SIZE, MAX_SQL_STRING_LENGTH, PLAIN_BIND_MARKER_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDateIsInDays
(String attribute, String bindName) P.NAME dateIsInDays :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsInGEDays
(String attribute, String bindName) P.NAME dateIsInGEDays :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsInGEMonths
(String attribute, String bindName) P.NAME dateIsInGEMonths :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsInGEWeeks
(String attribute, String bindName) P.NAME dateIsInGEWeeks :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsInLastDays
(String attribute, String bindName) P.NAME dateIsInLastDays :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsInLastMonths
(String attribute, String bindName) P.NAME dateIsInLastMonths :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsInLEDays
(String attribute, String bindName) P.NAME dateIsInLEDays :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsInLEMonths
(String attribute, String bindName) P.NAME dateIsInLEMonths :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsInLEWeeks
(String attribute, String bindName) P.NAME dateIsInLEWeeks :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsInMonths
(String attribute, String bindName) P.NAME dateIsInMonths :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsInNextDays
(String attribute, String bindName) P.NAME dateIsInNextDays :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsInNextMonths
(String attribute, String bindName) P.NAME dateIsInNextMonths :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsInWeeks
(String attribute, String bindName) P.NAME dateIsInWeeks :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateIsNotToday
(String attribute) P.NAME dateIsNotToday
createDateIsToday
(String attribute) P.NAME dateIsToday
createDateTimeIsInGEHours
(String attribute, String bindName) P.NAME dateTimeIsInGEHours :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateTimeIsInGEMinutes
(String attribute, String bindName) P.NAME dateTimeIsInGEMinutes :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateTimeIsInLEHours
(String attribute, String bindName) P.NAME dateTimeIsInLEHours :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateTimeIsInLEMinutes
(String attribute, String bindName) P.NAME dateTimeIsInLEMinutes :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createDateTimeIsNotNow
(String attribute) P.NAME dateTimeIsNotNow
createDateTimeIsNow
(String attribute) P.NAME dateTimeIsNow
createTimeIsInGEHours
(String attribute, String bindName) P.NAME timeIsInGEHours :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createTimeIsInGEMinutes
(String attribute, String bindName) P.NAME timeIsInGEMinutes :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createTimeIsInHours
(String attribute, String bindName) P.NAME timeIsInHours :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createTimeIsInLEHours
(String attribute, String bindName) P.NAME timeIsInLEHours :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createTimeIsInLEMinutes
(String attribute, String bindName) P.NAME timeIsInLEMinutes :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createTimeIsInMinutes
(String attribute, String bindName) P.NAME timeIsInMinutes :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)createTimeIsNotNow
(String attribute) P.NAME timeIsNow
createTimeIsNow
(String attribute) P.NAME timeIsNow
protected int
boolean
flag signaling whetherBLOB
orLONG RAW
should be used forbyte[]
bindsboolean
boolean
void
testConnection
(Connection conn) test a connection before use
Note: this method is called before *every* sql connection pool transaction
Note: this method is not called when an rmi connection pool is usedMethods inherited from class org.eclipse.scout.rt.server.jdbc.style.AbstractSqlStyle
adaptBindName, adaptBindNameTimeDateOp, buildBindFor, commit, createBetween, createBindFor, createContains, createDateBetween, createDateEQ, createDateGE, createDateGT, createDateLE, createDateLT, createDateNEQ, createDateTimeBetween, createDateTimeEQ, createDateTimeGE, createDateTimeGT, createDateTimeLE, createDateTimeLT, createDateTimeNEQ, createEndsWith, createEQ, createGE, createGT, createIn, createInList, createInList, createLE, createLike, createLT, createNEQ, createNotContains, createNotEndsWith, createNotIn, createNotInList, createNotInList, createNotLike, createNotNull, createNotStartsWith, createNull, createNumberNotNull, createNumberNull, createStartsWith, createTextNotNull, createTextNull, createYearToDate, getConcatOp, getConfiguredDecimalConversionStrategy, getJdbcType, getLikeWildcard, getLowerToken, getNvlToken, getSysdateToken, getTrimToken, getUpperToken, isCreatingInListGeneratingBind, readBind, registerOutput, rollback, toAggregationAvg, toAggregationCount, toAggregationMax, toAggregationMedian, toAggregationMin, toAggregationSum, toArray, toLikePattern, toPlainText, writeBind
-
Constructor Details
-
DerbySqlStyle
public DerbySqlStyle()
-
-
Method Details
-
getMaxListSize
protected int getMaxListSize()- Specified by:
getMaxListSize
in classAbstractSqlStyle
-
isLargeString
- Returns:
true
to handle string asCLOB
resp.LONG VARCHAR
orfalse
to handle string as simpleString
seeISqlStyle.isClobEnabled()
-
isBlobEnabled
public boolean isBlobEnabled()Description copied from interface:ISqlStyle
flag signaling whetherBLOB
orLONG RAW
should be used forbyte[]
binds -
isClobEnabled
public boolean isClobEnabled()Description copied from interface:ISqlStyle
-
testConnection
Description copied from interface:ISqlStyle
test a connection before use
Note: this method is called before *every* sql connection pool transaction
Note: this method is not called when an rmi connection pool is used- Throws:
SQLException
-
createDateIsToday
Description copied from interface:ISqlStyle
P.NAME dateIsToday
In an Oracle implementation this could be represented as
attribute >= TRUNC(SYSDATE) AND attribute < TRUNC(SYSDATE+1)
- Specified by:
createDateIsToday
in interfaceISqlStyle
- Overrides:
createDateIsToday
in classAbstractSqlStyle
-
createDateIsInLastDays
Description copied from interface:ISqlStyle
P.NAME dateIsInLastDays :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >= TRUNC(SYSDATE-( :firstBind )) AND attribute < TRUNC(SYSDATE+1)
- Specified by:
createDateIsInLastDays
in interfaceISqlStyle
- Overrides:
createDateIsInLastDays
in classAbstractSqlStyle
-
createDateIsInNextDays
Description copied from interface:ISqlStyle
P.NAME dateIsInNextDays :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >= TRUNC(SYSDATE) AND attribute < TRUNC(SYSDATE+ :firstBind +1)
- Specified by:
createDateIsInNextDays
in interfaceISqlStyle
- Overrides:
createDateIsInNextDays
in classAbstractSqlStyle
-
createDateIsInDays
Description copied from interface:ISqlStyle
P.NAME dateIsInDays :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >= TRUNC(SYSDATE+ :firstBind ) AND attribute < TRUNC(SYSDATE+ :firstBind +1)
- Specified by:
createDateIsInDays
in interfaceISqlStyle
- Overrides:
createDateIsInDays
in classAbstractSqlStyle
-
createDateIsInWeeks
Description copied from interface:ISqlStyle
P.NAME dateIsInWeeks :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >= TRUNC(SYSDATE+ (( :firstBind ) *7) ) AND attribute < TRUNC(SYSDATE+(( :firstBind ) *7)+1)
- Specified by:
createDateIsInWeeks
in interfaceISqlStyle
- Overrides:
createDateIsInWeeks
in classAbstractSqlStyle
-
createDateIsInLastMonths
Description copied from interface:ISqlStyle
P.NAME dateIsInLastMonths :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >= TRUNC(ADD_MONTHS(SYSDATE,(-1)*( :firstBind ))) AND attribute < TRUNC(SYSDATE+1)
- Specified by:
createDateIsInLastMonths
in interfaceISqlStyle
- Overrides:
createDateIsInLastMonths
in classAbstractSqlStyle
-
createDateIsInNextMonths
Description copied from interface:ISqlStyle
P.NAME dateIsInNextMonths :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >= TRUNC(SYSDATE) AND attribute < TRUNC(ADD_MONTHS(SYSDATE, :firstBind )+1)
- Specified by:
createDateIsInNextMonths
in interfaceISqlStyle
- Overrides:
createDateIsInNextMonths
in classAbstractSqlStyle
-
createDateIsInMonths
Description copied from interface:ISqlStyle
P.NAME dateIsInMonths :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >= TRUNC(ADD_MONTHS(SYSDATE, :firstBind )) AND attribute < TRUNC(ADD_MONTHS(SYSDATE, :firstBind )+1)
- Specified by:
createDateIsInMonths
in interfaceISqlStyle
- Overrides:
createDateIsInMonths
in classAbstractSqlStyle
-
createDateIsInLEDays
Description copied from interface:ISqlStyle
P.NAME dateIsInLEDays :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute < TRUNC(SYSDATE + :firstBind +1)
- Specified by:
createDateIsInLEDays
in interfaceISqlStyle
- Overrides:
createDateIsInLEDays
in classAbstractSqlStyle
-
createDateIsInLEWeeks
Description copied from interface:ISqlStyle
P.NAME dateIsInLEWeeks :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute < TRUNC(SYSDATE+(( :firstBind )*7)+1)
- Specified by:
createDateIsInLEWeeks
in interfaceISqlStyle
- Overrides:
createDateIsInLEWeeks
in classAbstractSqlStyle
-
createDateIsInLEMonths
Description copied from interface:ISqlStyle
P.NAME dateIsInLEMonths :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute < TRUNC(ADD_MONTHS(SYSDATE, :firstBind )+1)
- Specified by:
createDateIsInLEMonths
in interfaceISqlStyle
- Overrides:
createDateIsInLEMonths
in classAbstractSqlStyle
-
createDateIsInGEDays
Description copied from interface:ISqlStyle
P.NAME dateIsInGEDays :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >= TRUNC(SYSDATE + :firstBind )
- Specified by:
createDateIsInGEDays
in interfaceISqlStyle
- Overrides:
createDateIsInGEDays
in classAbstractSqlStyle
-
createDateIsInGEWeeks
Description copied from interface:ISqlStyle
P.NAME dateIsInGEWeeks :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >= TRUNC(SYSDATE+(( :firstBind )*7))
- Specified by:
createDateIsInGEWeeks
in interfaceISqlStyle
- Overrides:
createDateIsInGEWeeks
in classAbstractSqlStyle
-
createDateIsInGEMonths
Description copied from interface:ISqlStyle
P.NAME dateIsInGEMonths :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >=TRUNC(ADD_MONTHS(SYSDATE, :firstBind ))
- Specified by:
createDateIsInGEMonths
in interfaceISqlStyle
- Overrides:
createDateIsInGEMonths
in classAbstractSqlStyle
-
createDateIsNotToday
Description copied from interface:ISqlStyle
P.NAME dateIsNotToday
In an Oracle implementation this could be represented as
( attribute <TRUNC(SYSDATE) OR attribute >=TRUNC(SYSDATE+1))
- Specified by:
createDateIsNotToday
in interfaceISqlStyle
- Overrides:
createDateIsNotToday
in classAbstractSqlStyle
-
createDateTimeIsNow
Description copied from interface:ISqlStyle
P.NAME dateTimeIsNow
In an Oracle implementation this could be represented as
( attribute >= TRUNC(SYSDATE, 'MI') AND attribute < (TRUNC(SYSDATE, 'MI')+(1/24/60)))
- Specified by:
createDateTimeIsNow
in interfaceISqlStyle
- Overrides:
createDateTimeIsNow
in classAbstractSqlStyle
-
createDateTimeIsInLEMinutes
Description copied from interface:ISqlStyle
P.NAME dateTimeIsInLEMinutes :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute < (TRUNC(SYSDATE, 'MI')+(( :firstBind +1)/24/60))
- Specified by:
createDateTimeIsInLEMinutes
in interfaceISqlStyle
- Overrides:
createDateTimeIsInLEMinutes
in classAbstractSqlStyle
-
createDateTimeIsInLEHours
Description copied from interface:ISqlStyle
P.NAME dateTimeIsInLEHours :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute <(TRUNC(SYSDATE, 'MI')+((1/24/60)+( :firstBind /24)))
- Specified by:
createDateTimeIsInLEHours
in interfaceISqlStyle
- Overrides:
createDateTimeIsInLEHours
in classAbstractSqlStyle
-
createDateTimeIsInGEMinutes
Description copied from interface:ISqlStyle
P.NAME dateTimeIsInGEMinutes :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >=(TRUNC(SYSDATE, 'MI')+( :firstBind /24/60))
- Specified by:
createDateTimeIsInGEMinutes
in interfaceISqlStyle
- Overrides:
createDateTimeIsInGEMinutes
in classAbstractSqlStyle
-
createDateTimeIsInGEHours
Description copied from interface:ISqlStyle
P.NAME dateTimeIsInGEHours :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >= (TRUNC(SYSDATE, 'MI')+( :firstBind /24))
- Specified by:
createDateTimeIsInGEHours
in interfaceISqlStyle
- Overrides:
createDateTimeIsInGEHours
in classAbstractSqlStyle
-
createDateTimeIsNotNow
Description copied from interface:ISqlStyle
P.NAME dateTimeIsNotNow
In an Oracle implementation this could be represented as
( attribute <TRUNC(SYSDATE, 'MI') OR attribute >=(TRUNC(SYSDATE, 'MI')+(1/24/60)))
- Specified by:
createDateTimeIsNotNow
in interfaceISqlStyle
- Overrides:
createDateTimeIsNotNow
in classAbstractSqlStyle
-
createTimeIsNow
Description copied from interface:ISqlStyle
P.NAME timeIsNow
In an Oracle implementation this could be represented as
attribute >= ((TO_CHAR(SYSDATE,'HH24')*60) + TO_CHAR(SYSDATE,'MI'))/24/60
AND attribute < ((TO_CHAR(SYSDATE,'HH24')*60) + TO_CHAR(SYSDATE,'MI')+(1/24/60))/24/60- Specified by:
createTimeIsNow
in interfaceISqlStyle
- Overrides:
createTimeIsNow
in classAbstractSqlStyle
-
createTimeIsNotNow
Description copied from interface:ISqlStyle
P.NAME timeIsNow
In an Oracle implementation this could be represented as
attribute < ((TO_CHAR(SYSDATE,'HH24')*60) + TO_CHAR(SYSDATE,'MI'))/24/60
OR attribute > ((TO_CHAR(SYSDATE,'HH24')*60)+TO_CHAR(SYSDATE,'MI')+(1/24/60))/24/60- Specified by:
createTimeIsNotNow
in interfaceISqlStyle
- Overrides:
createTimeIsNotNow
in classAbstractSqlStyle
-
createTimeIsInMinutes
Description copied from interface:ISqlStyle
P.NAME timeIsInMinutes :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >=((TO_CHAR(SYSDATE,'HH24')*60) + TO_CHAR(SYSDATE,'MI')+( :firstBind /24/60))/24/60 AND attribute <((TO_CHAR(SYSDATE,'HH24')*60)+TO_CHAR(SYSDATE,'MI')+(( :firstBind +1)/24/60))/24/60
- Specified by:
createTimeIsInMinutes
in interfaceISqlStyle
- Overrides:
createTimeIsInMinutes
in classAbstractSqlStyle
-
createTimeIsInHours
Description copied from interface:ISqlStyle
P.NAME timeIsInHours :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >=((TO_CHAR(SYSDATE,'HH24')*60) + TO_CHAR(SYSDATE,'MI')+( :firstBind /24))/24/60 AND attribute <((TO_CHAR(SYSDATE,'HH24')*60)+TO_CHAR(SYSDATE,'MI')+( :firstBind /24)+(1/24/60))/24/60
- Specified by:
createTimeIsInHours
in interfaceISqlStyle
- Overrides:
createTimeIsInHours
in classAbstractSqlStyle
-
createTimeIsInLEMinutes
Description copied from interface:ISqlStyle
P.NAME timeIsInLEMinutes :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute <((TO_CHAR(SYSDATE,'HH24')*60) + TO_CHAR(SYSDATE,'MI')+(( :firstBind +1)/24/60))/24/60
- Specified by:
createTimeIsInLEMinutes
in interfaceISqlStyle
- Overrides:
createTimeIsInLEMinutes
in classAbstractSqlStyle
-
createTimeIsInLEHours
Description copied from interface:ISqlStyle
P.NAME timeIsInLEHours :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute <((TO_CHAR(SYSDATE,'HH24')*60) + TO_CHAR(SYSDATE,'MI')+( :firstBind /24)+(1/24/60))/24/60
- Specified by:
createTimeIsInLEHours
in interfaceISqlStyle
- Overrides:
createTimeIsInLEHours
in classAbstractSqlStyle
-
createTimeIsInGEMinutes
Description copied from interface:ISqlStyle
P.NAME timeIsInGEMinutes :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >=((TO_CHAR(SYSDATE,'HH24')*60) + TO_CHAR(SYSDATE,'MI')+( :firstBind /24/60))/24/60
- Specified by:
createTimeIsInGEMinutes
in interfaceISqlStyle
- Overrides:
createTimeIsInGEMinutes
in classAbstractSqlStyle
-
createTimeIsInGEHours
Description copied from interface:ISqlStyle
P.NAME timeIsInGEHours :bindName
(or "&text
" for non-binds, see alsoISqlStyle.PLAIN_BIND_MARKER_PREFIX
)In an Oracle implementation this could be represented as
attribute >=((TO_CHAR(SYSDATE,'HH24')*60) + TO_CHAR(SYSDATE,'MI')+( :firstBind /24))/24/60
- Specified by:
createTimeIsInGEHours
in interfaceISqlStyle
- Overrides:
createTimeIsInGEHours
in classAbstractSqlStyle
-