public class ContainsClause 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 |
---|---|
|
ContainsClause(LogicalOperator operator,
String alias,
String property,
Repository.KeywordCriteria keywordCriteria,
String... keywords)
Constructor
|
protected |
ContainsClause(Repository.UnitOfWork uow,
KomodoObject whereClause) |
Modifier and Type | Method and Description |
---|---|
void |
addKeyword(String keyword) |
String |
clauseString(int index) |
boolean |
equals(Object obj) |
Repository.KeywordCriteria |
getKeywordCriteria() |
Set<String> |
getKeywords() |
String |
getProperty() |
int |
hashCode() |
protected void |
setKeywordCriteria(Repository.KeywordCriteria keywordCriteria) |
protected void |
setProperty(String propertyValue) |
appendLogicalOperator, appendStringValues, checkWhereAlias, getAlias, getParent, getPreClauseOperator, setAlias, setParent, setPreClauseOperator, setProperty, writeProperties
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAlias
public ContainsClause(LogicalOperator operator, String alias, String property, Repository.KeywordCriteria keywordCriteria, String... keywords)
operator
- the logical operator preceding this clause (can be null if this is the only clause)alias
- the aliasproperty
- the propertykeywordCriteria
- settings for the keywordskeywords
- the valueprotected ContainsClause(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 void addKeyword(String keyword)
keyword
- the keyword to be addedpublic Repository.KeywordCriteria getKeywordCriteria()
protected void setKeywordCriteria(Repository.KeywordCriteria keywordCriteria)
keywordCriteria
- the keywordCriteria to setpublic String clauseString(int index)
clauseString
in class Clause
index
- the index of this clauseCopyright © 2013–2019. All rights reserved.