public abstract class ConditionKey extends Object implements Serializable
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
ConditionKey.BindClauseResult |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected String |
_conditionKey
The key name of the condition.
|
protected String |
_operand
The string of operand, used in SQL.
|
static ConditionKey |
CK_EQUAL
The condition key of equal.
|
static ConditionKey |
CK_GREATER_EQUAL
The condition key of greaterEqual.
|
static ConditionKey |
CK_GREATER_EQUAL_OR_IS_NULL
The condition key of greaterEqual with orIsNull.
|
static ConditionKey |
CK_GREATER_THAN
The condition key of greaterThan.
|
static ConditionKey |
CK_GREATER_THAN_OR_IS_NULL
The condition key of greaterThan with orIsNull.
|
static ConditionKey |
CK_IN_SCOPE
The condition key of inScope.
|
static ConditionKey |
CK_IS_NOT_NULL
The condition key of isNotNull.
|
static ConditionKey |
CK_IS_NULL
The condition key of isNull.
|
static ConditionKey |
CK_IS_NULL_OR_EMPTY
The condition key of isNullOrEmpty.
|
static ConditionKey |
CK_LESS_EQUAL
The condition key of lessEqual.
|
static ConditionKey |
CK_LESS_EQUAL_OR_IS_NULL
The condition key of lessEqual with orIsNull.
|
static ConditionKey |
CK_LESS_THAN
The condition key of lessThan.
|
static ConditionKey |
CK_LESS_THAN_OR_IS_NULL
The condition key of lessThan with orIsNull.
|
static ConditionKey |
CK_LIKE_SEARCH
The condition key of likeSearch.
|
static ConditionKey |
CK_NOT_EQUAL_STANDARD
The condition key of notEqual as standard.
|
static ConditionKey |
CK_NOT_EQUAL_TRADITION
The condition key of notEqual as tradition.
|
static ConditionKey |
CK_NOT_IN_SCOPE
The condition key of notInScope.
|
static ConditionKey |
CK_NOT_LIKE_SEARCH
The condition key of notLikeSearch.
|
protected static Object |
DUMMY_OBJECT
Dummy-object for IsNull and IsNotNull and so on...
|
protected static ConditionKeyPrepareResult |
RESULT_DUPLICATE_QUERY |
protected static ConditionKeyPrepareResult |
RESULT_INVALID_QUERY |
protected static ConditionKeyPrepareResult |
RESULT_NEW_QUERY |
protected static ConditionKeyPrepareResult |
RESULT_OVERRIDING_QUERY |
| コンストラクタと説明 |
|---|
ConditionKey() |
public static final ConditionKey CK_EQUAL
public static final ConditionKey CK_NOT_EQUAL_STANDARD
public static final ConditionKey CK_NOT_EQUAL_TRADITION
public static final ConditionKey CK_GREATER_THAN
public static final ConditionKey CK_GREATER_THAN_OR_IS_NULL
public static final ConditionKey CK_LESS_THAN
public static final ConditionKey CK_LESS_THAN_OR_IS_NULL
public static final ConditionKey CK_GREATER_EQUAL
public static final ConditionKey CK_GREATER_EQUAL_OR_IS_NULL
public static final ConditionKey CK_LESS_EQUAL
public static final ConditionKey CK_LESS_EQUAL_OR_IS_NULL
public static final ConditionKey CK_IN_SCOPE
public static final ConditionKey CK_NOT_IN_SCOPE
public static final ConditionKey CK_LIKE_SEARCH
public static final ConditionKey CK_NOT_LIKE_SEARCH
public static final ConditionKey CK_IS_NULL
public static final ConditionKey CK_IS_NULL_OR_EMPTY
public static final ConditionKey CK_IS_NOT_NULL
protected static final Object DUMMY_OBJECT
protected static final ConditionKeyPrepareResult RESULT_NEW_QUERY
protected static final ConditionKeyPrepareResult RESULT_INVALID_QUERY
protected static final ConditionKeyPrepareResult RESULT_OVERRIDING_QUERY
protected static final ConditionKeyPrepareResult RESULT_DUPLICATE_QUERY
protected String _conditionKey
protected String _operand
public ConditionKeyPrepareResult prepareQuery(ConditionValue.QueryModeProvider provider, ConditionValue cvalue, Object value)
provider - The provider of query mode. (NotNull)cvalue - The object of condition value. (NotNull)value - The value of the condition. (NotNull)protected abstract ConditionKeyPrepareResult doPrepareQuery(ConditionValue cvalue, Object value)
protected ConditionKeyPrepareResult chooseResultAlreadyExists(boolean equalValue)
protected ConditionKeyPrepareResult chooseResultNonValue(ConditionValue cvalue)
protected ConditionKeyPrepareResult chooseResultNonFixedQuery(Object value)
protected boolean isInvalidNonFixedQuery(Object value)
protected ConditionKeyPrepareResult chooseResultListQuery(Object value)
protected boolean isInvalidListQuery(Object value)
protected abstract boolean needsOverrideValue(ConditionValue cvalue)
cvalue - The object of condition value. (NotNull)public void addWhereClause(ConditionValue.QueryModeProvider provider, List<QueryClause> conditionList, ColumnRealName columnRealName, ConditionValue cvalue, ColumnFunctionCipher cipher, ConditionOption option)
provider - The provider of query mode. (NotNull)conditionList - The list of condition. (NotNull)columnRealName - The real name of column. (NotNull)cvalue - The object of condition value. (NotNull)cipher - The cipher of column by function. (NullAllowed)option - The option of condition. (NullAllowed)protected abstract void doAddWhereClause(List<QueryClause> conditionList, ColumnRealName columnRealName, ConditionValue cvalue, ColumnFunctionCipher cipher, ConditionOption option)
conditionList - The list of condition. (NotNull)columnRealName - The real name of column. (NotNull)cvalue - The object of condition value. (NotNull)cipher - The cipher of column by function. (NullAllowed)option - The option of condition. (NullAllowed)public void setupConditionValue(ConditionValue.QueryModeProvider provider, ConditionValue cvalue, Object value, String location, ConditionOption option)
provider - The provider of query mode. (NotNull)cvalue - The object of condition value. (NotNull)value - The native value of condition. (NullAllowed)location - The location on parameter comment. (NotNull)option - Condition option. (NullAllowed)protected abstract void doSetupConditionValue(ConditionValue cvalue, Object value, String location, ConditionOption option)
cvalue - The object of condition value. (NotNull)value - The native value of condition. (NullAllowed)location - The location on parameter comment. (NotNull)option - The option of condition. (NullAllowed)protected QueryClause buildBindClause(ColumnRealName columnRealName, String location, ColumnFunctionCipher cipher, ConditionOption option)
columnRealName - The real name of column. (NotNull)location - The location on parameter comment. (NotNull)cipher - The cipher of column by function. (NullAllowed)option - The option of condition. (NullAllowed)protected QueryClause buildBindClauseOrIsNull(ColumnRealName columnRealName, String location, ColumnFunctionCipher cipher, ConditionOption option)
columnRealName - The real name of column. (NotNull)location - The location on parameter comment. (NotNull)cipher - The cipher of column by function. (NullAllowed)option - The option of condition. (NullAllowed)protected String doBuildBindClause(ColumnRealName columnRealName, String location, ColumnFunctionCipher cipher, ConditionOption option)
protected QueryClause buildClauseWithoutValue(ColumnRealName columnRealName)
columnRealName - The real name of column. (NotNull)protected ConditionKey.BindClauseResult resolveBindClause(ColumnRealName columnRealName, String location, ColumnFunctionCipher cipher, ConditionOption option)
protected boolean isBindEncryptAllowed(ColumnRealName columnRealName, ConditionOption option, boolean nonInvertible)
protected String buildBindVariableExp(String location, ConditionOption option)
protected String getBindVariableDummyValue()
protected boolean isOutOfBindEncryptConditionKey()
protected boolean isPossibleBindEncryptConditionKey()
protected ColumnRealName toColumnRealName(String columnSqlName)
protected ConditionKey.BindClauseResult createBindClauseResult(ColumnRealName columnExp, String bindExp, ConditionOption option)
protected String resolveOperand(ConditionOption option)
protected String extractExtOperand(ConditionOption option)
protected String resolveRearOption(ConditionOption option)
protected QueryClauseArranger resolveWhereClauseArranger(ConditionOption option)
protected ColumnRealName resolveOptionalColumn(ColumnRealName columnExp, ConditionOption option)
protected boolean hasColumnCollaboration(ColumnRealName columnRealName, ConditionOption option)
protected boolean hasCalculationColumn(ColumnRealName columnRealName, ConditionOption option)
protected ColumnRealName resolveCalculationColumn(ColumnRealName columnRealName, ConditionOption option)
protected boolean hasCompoundColumn(ColumnRealName columnRealName, ConditionOption option)
protected ColumnRealName resolveCompoundColumn(ColumnRealName baseRealName, ConditionOption option)
protected ColumnRealName doResolveCompoundColumn(ConditionOption option, SpecifiedColumn specifiedColumn)
public abstract boolean isNullaleKey()
public String toString()
public String getConditionKey()
public String getOperand()
Copyright © 2014–2015 The DBFlute Project. All rights reserved.