|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.database.sql.SQLComparison
Represents an SQL comparison, such as "PLANETJ.BALANCE <= 100" or "NAME IS NOT NULL"
Constructor Summary | |
SQLComparison(OperatorToken opToken)
SQLComparision constructor |
Method Summary | |
void |
addValueToken(ColumnToken colToken,
ValueToken valToken)
|
ColumnToken |
getColumn(int index)
Gets this comparison's column token. |
IDisplayParameter |
getDisplayParameter()
Gets a display parameter out of this context. |
Field |
getField(int index)
Deprecated. (6/11/2003 8:11:05 AM) This method will not allow setting the Field's default value from a user property. Replaced by getField(int, ExecutingContext) |
Field |
getField(int index,
ExecutingContext ec)
Gets this Field corresponding to one of this comparison's parameters. |
FieldDescriptorRow |
getFieldDescriptor(int valueIndex,
String systemAlias)
Gets the FD for the specified value. |
List |
getFields()
Deprecated. (6/11/2003 8:12:04 AM) This method will not allow setting the Field's default value from a user property. Replaced by getField(ExecutingContext) |
List |
getFields(ExecutingContext ec)
Gets the display fields contained in the parameters of this SQLComparison. |
int |
getNumberOfValueParameters()
Gets this comparison's number of value token. |
int |
getNumberOfValues()
Gets this comparison's number of value token. |
OperatorToken |
getOperator()
Gets this comparison's operator token. |
IParameter |
getParameter(int index)
Gets one of this comparison's parameters, based by index. |
FieldDescriptorRow |
getTargetFieldDescriptor()
Gets the field descriptor for the field this SQLComparison is comparing. |
ValueToken |
getValue(int index)
Gets this comparison's value token. |
boolean |
isContainsDisplayParameters()
Tests if this comparison has a display parameter for one or more of its values |
boolean |
isContainsParameters()
Tests if this comparison has a parameter for one or more of its values |
boolean |
isValueDisplayParameter(int index)
Tests if this comparison has a display parameter for a value. |
boolean |
isValueParameter(int index)
Tests if this comparison has a parameter for a value. |
void |
postAddValueToken(ColumnToken colToken,
ValueToken valToken)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SQLComparison(OperatorToken opToken)
Method Detail |
public void addValueToken(ColumnToken colToken, ValueToken valToken)
public final ColumnToken getColumn(int index)
public IDisplayParameter getDisplayParameter()
public final Field getField(int index) throws CMException
index
- parameter index of display Field to retrieve.
CMException
public final Field getField(int index, ExecutingContext ec) throws CMException
index
- parameter index of display Field to retrieve.ec
- context in which code is executing.
CMException
public FieldDescriptorRow getFieldDescriptor(int valueIndex, String systemAlias) throws CMException
CMException
public List getFields() throws CMException
CMException
public List getFields(ExecutingContext ec) throws CMException
ec
- context in which code is executing.
CMException
public final int getNumberOfValueParameters()
public final int getNumberOfValues()
public final OperatorToken getOperator()
public IParameter getParameter(int index)
public FieldDescriptorRow getTargetFieldDescriptor() throws CMException
getTargetFieldDescriptor
in interface IParameterSource
CMException
public final ValueToken getValue(int index)
public boolean isContainsDisplayParameters()
public boolean isContainsParameters()
public boolean isValueDisplayParameter(int index)
public boolean isValueParameter(int index)
public void postAddValueToken(ColumnToken colToken, ValueToken valToken)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |