|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.objectwave.persist.constraints.Constraint
|
+--com.objectwave.persist.constraints.ConstraintBoolean
Use this to create multiple constraints on a single field.
| Nested Class Summary | |
static class |
ConstraintBoolean.Test
Unit test of some simple Between values. |
| Field Summary |
| Fields inherited from class com.objectwave.persist.constraints.Constraint |
columnName, defaultObjectFormatter, objectFormatter |
| Constructor Summary | |
ConstraintBoolean(boolean and,
Constraint first,
Constraint second)
|
|
| Method Summary | |
boolean |
checkConstraint(java.lang.Object fieldObj,
java.lang.Object queryObj)
Check to see if a given object passes this constraint. |
java.lang.String |
constructQueryString()
Return the string which will appear in the query string. |
void |
fromString(java.lang.String str)
Parse the string. |
static java.util.Vector |
getFields()
|
java.util.Enumeration |
getStaticList()
Gets the StaticList attribute of the Constraint object |
java.lang.String |
getType()
This is a unique, readable string identifying the constraint type (ex, anyof, null) |
boolean |
isUsingColumnName()
|
void |
staticListInsert(java.lang.String field)
Each type of constraint will have a specific set of fields associated with it. |
java.lang.String |
stringify()
Stringify the object. |
| Methods inherited from class com.objectwave.persist.constraints.Constraint |
checkConstraint, classOfField, clone, equals, findField, formatString, getColumnName, getField, getNot, getObjectFormatter, getPersistence, isComparisonValueFromPersistentObject, setColumnName, setField, setNot, setObjectFormatter, setPersistence, sqlString, stringToObject, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ConstraintBoolean(boolean and,
Constraint first,
Constraint second)
and - true if this is an and and false if this is an or| Method Detail |
public boolean checkConstraint(java.lang.Object fieldObj,
java.lang.Object queryObj)
Constraint
checkConstraint in class ConstraintfieldObj - java.lang.ObjectqueryObj - java.lang.Object
public java.lang.String constructQueryString()
Constraint
constructQueryString in class Constraint
public void fromString(java.lang.String str)
throws java.text.ParseException
Constraint
fromString in class Constraintstr -
java.text.ParseExceptionpublic static java.util.Vector getFields()
public java.util.Enumeration getStaticList()
Constraint
getStaticList in class Constraintpublic java.lang.String getType()
Constraint
getType in class Constraintpublic void staticListInsert(java.lang.String field)
Constraint
staticListInsert in class Constraintfield - public java.lang.String stringify()
Constraint
stringify in class Constraintpublic boolean isUsingColumnName()
isUsingColumnName in class Constraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||