|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.persistence.TestCriteria
com.sybase.persistence.AttributeTest
public class AttributeTest
AttributeTest class specifies the attribute condition to be met for a Query. It is recommended to use the static methods to create instances of this class object.
Field Summary | |
---|---|
static int |
CONTAINS
|
static int |
DOES_NOT_CONTAIN
|
static int |
DOES_NOT_END_WITH
|
static int |
DOES_NOT_START_WITH
|
static int |
ENDS_WITH
|
static int |
EQUAL
|
static int |
GREATER_EQUAL
|
static int |
GREATER_THAN
|
static int |
IS_NULL
|
static int |
LESS_EQUAL
|
static int |
LESS_THAN
|
static int |
LIKE
|
static int |
MATCH
|
static int |
NOT_EQUAL
|
static int |
NOT_LIKE
|
static int |
NOT_MATCH
|
static int |
NOT_NULL
|
static int |
STARTS_WITH
|
Constructor Summary | |
---|---|
AttributeTest()
Creates an instance of AttributeTest |
|
AttributeTest(java.lang.String _attributeName,
java.lang.String _testValue,
int _operator)
Creates an instance of AttributeTest |
Method Summary | |
---|---|
protected void |
_init()
|
static AttributeTest |
equal(java.lang.String a,
java.lang.String v)
Creates an instance of AttributeTest which filter attribute equals the value |
java.lang.String |
getAttribute()
Gets the attribute name to use for filter. |
java.lang.String |
getColumnName()
Deprecated. |
int |
getOperator()
Gets the operator to use for filter. |
int |
getTestType()
Deprecated. |
java.lang.String |
getTestValue()
Gets the test value to use for filter |
static AttributeTest |
greaterEqual(java.lang.String a,
java.lang.String v)
Creates an instance of AttributeTest which attribute is greater than or equal to the value. |
static AttributeTest |
greaterThan(java.lang.String a,
java.lang.String v)
Creates an instance of AttributeTest which attribute is greater than the value. |
AttributeTest |
initAttribute(java.lang.String _attribute)
Sybase internal use only. |
AttributeTest |
initOperator(int _operator)
Sybase internal use only. |
AttributeTest |
initTestValue(java.lang.String _testValue)
Sybase internal use only. |
static AttributeTest |
isNull(java.lang.String a)
Creates an instance of AttributeTest which filter attribute is NULL |
static AttributeTest |
lessEqual(java.lang.String a,
java.lang.String v)
Creates an instance of AttributeTest which attribute is less than or equal to the value. |
static AttributeTest |
lessThan(java.lang.String a,
java.lang.String v)
Creates an instance of AttributeTest which attribute is less than the value. |
static AttributeTest |
like(java.lang.String a,
java.lang.String v)
Creates an instance of AttributeTest which filter attribute like the value given. |
static AttributeTest |
match(java.lang.String a,
java.lang.String v)
Sybase internal use only. |
static AttributeTest |
notEqual(java.lang.String a,
java.lang.String v)
Creates an instance of AttributeTest which filter attribute does not equal the value |
static AttributeTest |
notLike(java.lang.String a,
java.lang.String v)
Creates an instance of AttributeTest which filter attribute does not like the value given. |
static AttributeTest |
notMatch(java.lang.String a,
java.lang.String v)
Sybase internal use only. |
static AttributeTest |
notNull(java.lang.String a)
Creates an instance of AttributeTest which filter attribute is not NULL |
void |
setAttribute(java.lang.String _attribute)
Sets the attribute name to use for filter. |
void |
setColumnName(java.lang.String columnName)
Deprecated. |
void |
setOperator(int _operator)
Sets the operator to use for filter. |
void |
setTestType(int testType)
Deprecated. |
void |
setTestValue(java.lang.String _testValue)
Sets the test value to use for filter |
Methods inherited from class com.sybase.persistence.TestCriteria |
---|
and, not, or |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int IS_NULL
public static final int NOT_NULL
public static final int EQUAL
public static final int NOT_EQUAL
public static final int LIKE
public static final int NOT_LIKE
public static final int MATCH
public static final int NOT_MATCH
public static final int LESS_THAN
public static final int LESS_EQUAL
public static final int GREATER_THAN
public static final int GREATER_EQUAL
public static final int CONTAINS
public static final int STARTS_WITH
public static final int ENDS_WITH
public static final int DOES_NOT_START_WITH
public static final int DOES_NOT_END_WITH
public static final int DOES_NOT_CONTAIN
Constructor Detail |
---|
public AttributeTest()
public AttributeTest(java.lang.String _attributeName, java.lang.String _testValue, int _operator)
_attributeName
- The attribute name to filter._testValue
- The value to use as the criteria for filter._operator
- The filter type like EQUAL, NOT_EQUAL, DOES_NOT_CONTAIN ... .Method Detail |
---|
public AttributeTest initAttribute(java.lang.String _attribute)
public java.lang.String getAttribute()
public void setAttribute(java.lang.String _attribute)
_attribute
- attribute namepublic AttributeTest initOperator(int _operator)
public int getOperator()
public void setOperator(int _operator)
_operator
- the operatorpublic AttributeTest initTestValue(java.lang.String _testValue)
public java.lang.String getTestValue()
public void setTestValue(java.lang.String _testValue)
_testValue
- the test valuepublic java.lang.String getColumnName()
public void setColumnName(java.lang.String columnName)
public int getTestType()
public void setTestType(int testType)
testType
- the filter typepublic static AttributeTest isNull(java.lang.String a)
a
- The attribute name to filter.public static AttributeTest notNull(java.lang.String a)
a
- The attribute name to filter.public static AttributeTest equal(java.lang.String a, java.lang.String v)
a
- The attribute name to filter.v
- The value to used as criteria to filter.public static AttributeTest notEqual(java.lang.String a, java.lang.String v)
a
- The attribute name to filter.v
- The value to used as criteria to filter.public static AttributeTest like(java.lang.String a, java.lang.String v)
a
- The attribute name to filter.v
- The value to used as criteria to filter.public static AttributeTest notLike(java.lang.String a, java.lang.String v)
a
- The attribute name to filter.v
- The value to used as criteria to filter.public static AttributeTest match(java.lang.String a, java.lang.String v)
public static AttributeTest notMatch(java.lang.String a, java.lang.String v)
public static AttributeTest lessThan(java.lang.String a, java.lang.String v)
a
- The attribute name to filter.v
- The value to used as criteria to filter.public static AttributeTest lessEqual(java.lang.String a, java.lang.String v)
a
- The attribute name to filter.v
- The value to used as criteria to filter.public static AttributeTest greaterThan(java.lang.String a, java.lang.String v)
a
- The attribute name to filter.v
- The value to used as criteria to filter.public static AttributeTest greaterEqual(java.lang.String a, java.lang.String v)
a
- The attribute name to filter.v
- The value to used as criteria to filter.protected void _init()
_init
in class TestCriteria
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |