public class FunctionFilterOption extends Object implements ParameterOption
| 修飾子とタイプ | クラスと説明 |
|---|---|
protected static interface |
FunctionFilterOption.ProcessCallback |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Map<String,Object> |
_bindMap |
protected List<FunctionFilterOption.ProcessCallback> |
_callbackList |
protected boolean |
_databaseDB2 |
protected boolean |
_databaseDerby |
protected boolean |
_databaseH2 |
protected boolean |
_databaseMySQL |
protected boolean |
_databaseOracle |
protected boolean |
_databasePostgreSQL |
protected boolean |
_databaseSQLServer |
protected boolean |
_mayNullRevived |
protected Object |
_mysticBindingSnapshot |
protected String |
_parameterKey |
protected String |
_parameterMapPath |
protected boolean |
_removeCalcAlias |
protected ColumnInfo |
_targetColumnInfo |
protected TimeZone |
_timeZone
The time-zone for filtering.
|
protected Object |
_tmpTrunc |
protected static String |
DATE_TRUNC_DAY |
protected static String |
DATE_TRUNC_MONTH |
protected static String |
DATE_TRUNC_TIME |
| コンストラクタと説明 |
|---|
FunctionFilterOption() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
acceptParameterKey(String parameterKey,
String parameterMapPath) |
protected void |
addProcessCallback(String functionKey,
FunctionFilterOption.ProcessCallback callback) |
protected void |
assertCalculationColumnNumber(SpecifiedColumn specifiedColumn) |
protected void |
assertObjectNotNull(String variableName,
Object value)
Assert that the object is not null.
|
protected void |
assertOptionValueNotNull(String keyword,
Object value) |
protected void |
assertSpecifiedDreamCruiseTicket(SpecifiedColumn column) |
protected String |
buildAddedBindParameter(int index,
Object addedValue,
String propertyName) |
protected String |
buildAddedEmbeddedValueExp(Object addedValue) |
protected String |
buildBindParameter(Object bindKey) |
protected String |
buildDateAddExpType(String propertyName,
String prefix,
boolean plural) |
protected String |
buildDreamCruiseTicketStatement(Object value) |
QueryDerivedReferrer |
createQueryDerivedReferrer(SubQueryPath subQueryPath,
ColumnRealNameProvider localRealNameProvider,
ColumnSqlNameProvider subQuerySqlNameProvider,
int subQueryLevel,
SqlClause subQueryClause,
String subQueryIdentity,
DBMeta subQueryDBMeta,
GearedCipherManager cipherManager,
String mainSubQueryIdentity,
String operand,
Object value,
String parameterPath) |
SpecifyDerivedReferrer |
createSpecifyDerivedReferrer(SubQueryPath subQueryPath,
ColumnRealNameProvider localRealNameProvider,
ColumnSqlNameProvider subQuerySqlNameProvider,
int subQueryLevel,
SqlClause subQueryClause,
String subQueryIdentity,
DBMeta subQueryDBMeta,
GearedCipherManager cipherManager,
String mainSubQueryIdentity,
String aliasName) |
protected void |
doAddDay(Object addedDay) |
protected void |
doAddDay(Object addedDay,
boolean minus) |
protected void |
doAddHour(Object addedHour) |
protected void |
doAddHour(Object addedHour,
boolean minus) |
protected void |
doAddMinute(Object addedMinute) |
protected void |
doAddMinute(Object addedMinute,
boolean minus) |
protected void |
doAddMonth(Object addedMonth) |
protected void |
doAddMonth(Object addedMonth,
boolean minus) |
protected void |
doAddSecond(Object addedSecond) |
protected void |
doAddSecond(Object addedSecond,
boolean minus) |
protected void |
doAddYear(Object addedYear) |
protected void |
doAddYear(Object addedYear,
boolean minus) |
protected void |
doCoalesce(Object coalesce) |
protected String |
doProcessDateAdd(String functionExp,
int index,
Object addedValue,
String propertyName,
boolean minus) |
protected String |
doProcessDateAddDB2(String functionExp,
int index,
Object addedValue,
String propertyName,
boolean minus) |
protected String |
doProcessDateAddMySQL(String functionExp,
int index,
Object addedValue,
String propertyName,
boolean minus) |
protected String |
doProcessDateAddOracle(String functionExp,
int index,
Object addedValue,
String propertyName,
boolean minus) |
protected String |
doProcessDateAddPostgreSQL(String functionExp,
int index,
Object addedValue,
String propertyName,
boolean minus) |
protected String |
doProcessDateAddSQLServer(String functionExp,
int index,
Object addedValue,
String propertyName,
boolean minus) |
protected String |
doProcessTruncPurposeDateType(String functionExp) |
protected String |
doProcessTruncPurposeDateTypeDB2(String functionExp) |
protected String |
doProcessTruncPurposeDateTypeDefault(String functionExp) |
protected String |
doProcessTruncPurposeDateTypeMySQL(String functionExp) |
protected String |
doProcessTruncPurposeDateTypeOracle(String functionExp) |
protected String |
doProcessTruncPurposeDateTypePostgreSQL(String functionExp) |
protected String |
doProcessTruncPurposeDateTypeSQLServer(String functionExp) |
protected String |
doProcessTruncSimpleCase(String functionExp,
int index,
Object trunc) |
protected void |
doRound(Object round) |
protected void |
doTrunc(Object trunc) |
protected void |
doTruncDay() |
protected void |
doTruncMonth() |
protected void |
doTruncTime() |
String |
filterFunction(String functionExp)
Filter the expression of function part.
|
Map<String,Object> |
getBindMap() |
protected TimeZone |
getDBFluteSystemFinalTimeZone() |
TimeZone |
getTimeZone()
Get the time-zone in this option basically for filtering.
|
Object |
getTrunc() |
protected boolean |
hasMysticBinding() |
protected boolean |
hasSubQueryEndOnLastLine(String functionExp) |
protected boolean |
hasTargetColumnInfo() |
protected boolean |
isDatabaseDB2() |
protected boolean |
isDatabaseDerby() |
protected boolean |
isDatabaseH2() |
protected boolean |
isDatabaseMySQL() |
protected boolean |
isDatabaseOracle() |
protected boolean |
isDatabasePostgreSQL() |
protected boolean |
isDatabaseSQLServer() |
protected boolean |
isDateTruncDay() |
protected boolean |
isDateTruncMonth() |
protected boolean |
isDateTruncTime() |
protected boolean |
isDateTypeColumn() |
protected boolean |
isDreamCruiseTicket(Object value) |
protected boolean |
isJustDateTypeColumn() |
protected boolean |
isJustTimestampTypeColumn() |
protected boolean |
isJustTimeTypeColumn() |
protected boolean |
isOptionValueNullIgnored() |
protected boolean |
isPropertyAddDay(String propertyName) |
protected boolean |
isPropertyAddHour(String propertyName) |
protected boolean |
isPropertyAddMinute(String propertyName) |
protected boolean |
isPropertyAddMonth(String propertyName) |
protected boolean |
isPropertyAddSecond(String propertyName) |
protected boolean |
isPropertyAddYear(String propertyName) |
protected boolean |
isTruncNamedTruncate() |
protected String |
ln() |
boolean |
mayNullRevived() |
protected String |
processAddDay(String functionExp,
int index,
Object addedDay,
boolean minus) |
protected String |
processAddHour(String functionExp,
int index,
Object addedHour,
boolean minus) |
protected String |
processAddMinute(String functionExp,
int index,
Object addedMinute,
boolean minus) |
protected String |
processAddMonth(String functionExp,
int index,
Object addedMonth,
boolean minus) |
protected String |
processAddSecond(String functionExp,
int index,
Object addedSecond,
boolean minus) |
protected String |
processAddYear(String functionExp,
int index,
Object addedYear,
boolean minus) |
protected String |
processCalculation(String functionExp)
Process calculation filters defined by sub-class.
|
protected String |
processCoalesce(String functionExp,
int index,
Object coalesce) |
protected String |
processRound(String functionExp,
int index,
Object round) |
protected String |
processSimpleFunction(String functionExp,
String functionName,
String thirdArg,
boolean leftArg,
Object bindKey) |
protected String |
processTrunc(String functionExp,
int index,
Object trunc) |
protected String |
processVarious(String functionExp)
Process various filters defined by user.
|
protected Object |
registerBindParameter(int index,
Object parameter) |
protected void |
setDatabaseDB2(boolean databaseDB2) |
protected void |
setDatabaseDerby(boolean databaseDerby) |
protected void |
setDatabaseH2(boolean databaseH2) |
protected void |
setDatabaseMySQL(boolean databaseMySQL) |
protected void |
setDatabaseOracle(boolean databaseOracle) |
protected void |
setDatabasePostgreSQL(boolean databasePostgreSQL) |
protected void |
setDatabaseSQLServer(boolean databaseSQLServer) |
String |
toString() |
Object |
xgetMysticBindingSnapshot() |
ColumnInfo |
xgetTargetColumnInfo() |
void |
xjudgeDatabase(SqlClause sqlClause) |
void |
xremoveCalcAlias() |
void |
xsetMysticBindingSnapshot(Object mysticBindingSnapshot) |
void |
xsetTargetColumnInfo(ColumnInfo targetColumnInfo) |
FunctionFilterOption |
zone(TimeZone timeZone)
Set time-zone, basically for LocalDate conversion.
|
protected List<FunctionFilterOption.ProcessCallback> _callbackList
protected String _parameterKey
protected String _parameterMapPath
protected ColumnInfo _targetColumnInfo
protected Object _mysticBindingSnapshot
protected Object _tmpTrunc
protected boolean _mayNullRevived
protected boolean _removeCalcAlias
protected boolean _databaseMySQL
protected boolean _databasePostgreSQL
protected boolean _databaseOracle
protected boolean _databaseDB2
protected boolean _databaseSQLServer
protected boolean _databaseH2
protected boolean _databaseDerby
protected TimeZone _timeZone
protected void doCoalesce(Object coalesce)
protected void doRound(Object round)
protected void doTrunc(Object trunc)
protected void doTruncMonth()
protected void doTruncDay()
protected void doTruncTime()
protected void doAddYear(Object addedYear)
protected void doAddYear(Object addedYear, boolean minus)
protected void doAddMonth(Object addedMonth)
protected void doAddMonth(Object addedMonth, boolean minus)
protected void doAddDay(Object addedDay)
protected void doAddDay(Object addedDay, boolean minus)
protected void doAddHour(Object addedHour)
protected void doAddHour(Object addedHour, boolean minus)
protected void doAddMinute(Object addedMinute)
protected void doAddMinute(Object addedMinute, boolean minus)
protected void doAddSecond(Object addedSecond)
protected void doAddSecond(Object addedSecond, boolean minus)
public String filterFunction(String functionExp)
functionExp - The expression of function part that is not filtered. (NotNull)protected void addProcessCallback(String functionKey, FunctionFilterOption.ProcessCallback callback)
protected String doProcessTruncPurposeDateTypeMySQL(String functionExp)
protected String doProcessTruncPurposeDateTypePostgreSQL(String functionExp)
protected String doProcessTruncPurposeDateTypeOracle(String functionExp)
protected String doProcessTruncPurposeDateTypeDB2(String functionExp)
protected String doProcessTruncPurposeDateTypeSQLServer(String functionExp)
protected String doProcessTruncPurposeDateTypeDefault(String functionExp)
protected boolean isDateTruncMonth()
protected boolean isDateTruncDay()
protected boolean isDateTruncTime()
protected String doProcessTruncSimpleCase(String functionExp, int index, Object trunc)
protected boolean isTruncNamedTruncate()
protected String processAddYear(String functionExp, int index, Object addedYear, boolean minus)
protected String processAddMonth(String functionExp, int index, Object addedMonth, boolean minus)
protected String processAddDay(String functionExp, int index, Object addedDay, boolean minus)
protected String processAddHour(String functionExp, int index, Object addedHour, boolean minus)
protected String processAddMinute(String functionExp, int index, Object addedMinute, boolean minus)
protected String processAddSecond(String functionExp, int index, Object addedSecond, boolean minus)
protected String doProcessDateAdd(String functionExp, int index, Object addedValue, String propertyName, boolean minus)
protected String doProcessDateAddMySQL(String functionExp, int index, Object addedValue, String propertyName, boolean minus)
protected String doProcessDateAddPostgreSQL(String functionExp, int index, Object addedValue, String propertyName, boolean minus)
protected String doProcessDateAddOracle(String functionExp, int index, Object addedValue, String propertyName, boolean minus)
protected String doProcessDateAddDB2(String functionExp, int index, Object addedValue, String propertyName, boolean minus)
protected String doProcessDateAddSQLServer(String functionExp, int index, Object addedValue, String propertyName, boolean minus)
protected String buildDateAddExpType(String propertyName, String prefix, boolean plural)
protected boolean isPropertyAddYear(String propertyName)
protected boolean isPropertyAddMonth(String propertyName)
protected boolean isPropertyAddDay(String propertyName)
protected boolean isPropertyAddHour(String propertyName)
protected boolean isPropertyAddMinute(String propertyName)
protected boolean isPropertyAddSecond(String propertyName)
protected String buildAddedBindParameter(int index, Object addedValue, String propertyName)
protected String processCalculation(String functionExp)
functionExp - The expression of derived function. (NotNull)protected String processVarious(String functionExp)
functionExp - The expression of derived function. (NotNull)public void acceptParameterKey(String parameterKey, String parameterMapPath)
acceptParameterKey インタフェース内 ParameterOptionpublic SpecifyDerivedReferrer createSpecifyDerivedReferrer(SubQueryPath subQueryPath, ColumnRealNameProvider localRealNameProvider, ColumnSqlNameProvider subQuerySqlNameProvider, int subQueryLevel, SqlClause subQueryClause, String subQueryIdentity, DBMeta subQueryDBMeta, GearedCipherManager cipherManager, String mainSubQueryIdentity, String aliasName)
public QueryDerivedReferrer createQueryDerivedReferrer(SubQueryPath subQueryPath, ColumnRealNameProvider localRealNameProvider, ColumnSqlNameProvider subQuerySqlNameProvider, int subQueryLevel, SqlClause subQueryClause, String subQueryIdentity, DBMeta subQueryDBMeta, GearedCipherManager cipherManager, String mainSubQueryIdentity, String operand, Object value, String parameterPath)
public boolean mayNullRevived()
public FunctionFilterOption zone(TimeZone timeZone)
timeZone - The time-zone for filtering. (NullAllowed: if null, default zone)public TimeZone getTimeZone()
protected TimeZone getDBFluteSystemFinalTimeZone()
protected String processSimpleFunction(String functionExp, String functionName, String thirdArg, boolean leftArg, Object bindKey)
protected boolean hasSubQueryEndOnLastLine(String functionExp)
protected boolean hasTargetColumnInfo()
protected boolean hasMysticBinding()
protected boolean isDateTypeColumn()
protected boolean isJustDateTypeColumn()
protected boolean isJustTimestampTypeColumn()
protected boolean isJustTimeTypeColumn()
protected boolean isDreamCruiseTicket(Object value)
protected void assertObjectNotNull(String variableName, Object value)
variableName - The check name of variable for message. (NotNull)value - The checked value. (NotNull)IllegalArgumentException - When the argument is null.protected void assertCalculationColumnNumber(SpecifiedColumn specifiedColumn)
protected void assertSpecifiedDreamCruiseTicket(SpecifiedColumn column)
protected boolean isOptionValueNullIgnored()
protected final String ln()
public ColumnInfo xgetTargetColumnInfo()
public void xsetTargetColumnInfo(ColumnInfo targetColumnInfo)
public Object xgetMysticBindingSnapshot()
public void xsetMysticBindingSnapshot(Object mysticBindingSnapshot)
public Object getTrunc()
public void xremoveCalcAlias()
public void xjudgeDatabase(SqlClause sqlClause)
protected boolean isDatabaseMySQL()
protected void setDatabaseMySQL(boolean databaseMySQL)
protected boolean isDatabasePostgreSQL()
protected void setDatabasePostgreSQL(boolean databasePostgreSQL)
protected boolean isDatabaseOracle()
protected void setDatabaseOracle(boolean databaseOracle)
protected boolean isDatabaseDB2()
protected void setDatabaseDB2(boolean databaseDB2)
protected boolean isDatabaseSQLServer()
protected void setDatabaseSQLServer(boolean databaseSQLServer)
protected boolean isDatabaseH2()
protected void setDatabaseH2(boolean databaseH2)
protected boolean isDatabaseDerby()
protected void setDatabaseDerby(boolean databaseDerby)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.