public class CompareClause extends Clause implements PropertyClause
ALIAS, properties
PROPERTY
AMPERSAND, AT, BR, CLASS, CLOSE_ANGLE_BRACKET, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PRE_CMT, CLOSE_PRE_TAG, CLOSE_SQUARE_BRACKET, COLON, COMMA, CONNECTION_SUFFIX, CURRENT_FOLDER_SYMBOL, DDL, DEFAULT_LOCAL_WORKSPACE_NAME, DIVIDE, DOLLAR_SIGN, DOT, DOT_CHAR, DOT_DOT, DOT_KOMODO, DOUBLE_BACK_SLASH, DRIVE_SEPARATOR, EMPTY_ARRAY, EMPTY_STRING, ENUM, EQUALS, FILE_EXTENSION_SEPARATOR, FILE_NAME_WILDCARD, FINAL, FORWARD_SLASH, HASH, HYPHEN, INTERFACE, JAR, JAVA, JAVA_IO_TMPDIR, JBOSS_SERVER_TMP_DIR, KOMODO, LINE_SEPARATOR, LINE_SEPARATOR_PROPERTY_NAME, LOG, MINUS, MULTIPLY, NBSP, NEW_LINE, OPEN_ANGLE_BRACKET, OPEN_BRACE, OPEN_BRACKET, OPEN_PRE_CMT, OPEN_PRE_TAG, OPEN_SQUARE_BRACKET, PARENT_FOLDER_SYMBOL, PERCENT, PIPE, PLUS, PREFIX_PATTERN, PRIVATE, PUBLIC, QUESTION_MARK, QUOTE_MARK, SEMI_COLON, SERVICE_VDB_SUFFIX, SERVICE_VDB_VIEW_MODEL, SERVICE_VDB_VIEW_SUFFIX, SOURCES, SPACE, SPEECH_MARK, SRC, STAR, STATIC, TAB, TARGET, UNDERSCORE, UNDERSCORE_CHAR, VDB_DEPLOYMENT_SUFFIX, VDB_PREFIX, XML, XML_SUFFIX, ZIP, ZIP_SUFFIX
Modifier | Constructor and Description |
---|---|
|
CompareClause(LogicalOperator logicalOperator,
String alias,
String property,
ComparisonOperator compareOperator,
String value)
Constructor
|
|
CompareClause(LogicalOperator logicalOperator,
String alias,
String property,
ComparisonOperator compareOperator,
String value,
boolean caseInsensitive)
Constructor
|
protected |
CompareClause(Repository.UnitOfWork uow,
KomodoObject whereClause) |
Modifier and Type | Method and Description |
---|---|
String |
clauseString(int index) |
boolean |
equals(Object obj) |
ComparisonOperator |
getCompareOperator() |
String |
getProperty() |
String |
getValue() |
int |
hashCode() |
boolean |
isCaseInsensitive() |
protected void |
setCaseInsensitive(boolean caseInsensitive) |
protected void |
setCompareOperator(ComparisonOperator compareOperator) |
protected void |
setProperty(String propertyValue) |
protected void |
setValue(String value) |
appendLogicalOperator, appendStringValues, checkWhereAlias, getAlias, getParent, getPreClauseOperator, setAlias, setParent, setPreClauseOperator, setProperty, writeProperties
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAlias
public CompareClause(LogicalOperator logicalOperator, String alias, String property, ComparisonOperator compareOperator, String value, boolean caseInsensitive)
logicalOperator
- the logical operator preceding this clause (can be null if this is the only clause)alias
- the aliasproperty
- the propertycompareOperator
- the comparison operatorvalue
- the value for comparisoncaseInsensitive
- the case insensitive flagpublic CompareClause(LogicalOperator logicalOperator, String alias, String property, ComparisonOperator compareOperator, String value)
logicalOperator
- the logical operator preceding this clause (can be null if this is the only clause)alias
- the aliasproperty
- the propertycompareOperator
- the comparison operatorvalue
- the value for comparisonprotected CompareClause(Repository.UnitOfWork uow, KomodoObject whereClause) throws KException
uow
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)whereClause
- the where clause objectKException
- if error occurspublic String getProperty()
getProperty
in interface PropertyClause
protected void setProperty(String propertyValue)
public ComparisonOperator getCompareOperator()
protected void setCompareOperator(ComparisonOperator compareOperator)
public String getValue()
protected void setValue(String value)
public boolean isCaseInsensitive()
protected void setCaseInsensitive(boolean caseInsensitive)
public String clauseString(int index)
clauseString
in class Clause
index
- the index of this clauseCopyright © 2013–2019. All rights reserved.