public abstract class Clause extends Object implements StringConstants
Modifier and Type | Field and Description |
---|---|
protected static String |
ALIAS
Alias property
|
protected Map<String,String> |
properties |
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 |
---|---|
|
Clause(LogicalOperator operator) |
protected |
Clause(Repository.UnitOfWork uow,
KomodoObject whereClause) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendLogicalOperator(int position,
StringBuffer buffer) |
protected void |
appendStringValues(StringBuffer buffer,
Iterator<String> valuesIter) |
protected String |
checkWhereAlias(String alias) |
abstract String |
clauseString(int index) |
boolean |
equals(Object obj) |
String |
getAlias() |
ObjectSearcher |
getParent() |
LogicalOperator |
getPreClauseOperator() |
int |
hashCode() |
protected void |
setAlias(String alias) |
protected void |
setParent(ObjectSearcher parent) |
protected void |
setPreClauseOperator(LogicalOperator clauseOperator) |
protected void |
setProperty(String key,
String value) |
protected void |
writeProperties(Repository.UnitOfWork uow,
KomodoObject whereObject) |
protected static final String ALIAS
public Clause(LogicalOperator operator)
operator
- the logical operator preceding this clause (can be null if this is the only clause)protected Clause(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 ObjectSearcher getParent()
protected void setParent(ObjectSearcher parent)
parent
- the parent to setpublic LogicalOperator getPreClauseOperator()
protected void setPreClauseOperator(LogicalOperator clauseOperator)
public String getAlias()
protected void setAlias(String alias)
alias
- the alias to setprotected void appendStringValues(StringBuffer buffer, Iterator<String> valuesIter)
protected void appendLogicalOperator(int position, StringBuffer buffer)
public abstract String clauseString(int index)
index
- the index of this clauseprotected void writeProperties(Repository.UnitOfWork uow, KomodoObject whereObject) throws KException
KException
Copyright © 2013–2019. All rights reserved.