|
||||||||||
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.ConstraintBetween
Nested Class Summary | |
static class |
ConstraintBetween.Test
Unit test of some simple Between values. |
Field Summary | |
protected java.lang.String |
betweenMax
Description of the Field |
protected java.lang.String |
betweenMin
Description of the Field |
Fields inherited from class com.objectwave.persist.constraints.Constraint |
columnName, defaultObjectFormatter, objectFormatter |
Constructor Summary | |
ConstraintBetween()
|
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. |
java.lang.String |
getBetweenMax()
|
java.lang.String |
getBetweenMin()
|
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) |
void |
setBetweenMax(java.lang.String max)
|
void |
setBetweenMin(java.lang.String min)
|
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, isUsingColumnName, setColumnName, setField, setNot, setObjectFormatter, setPersistence, sqlString, stringToObject, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String betweenMin
protected java.lang.String betweenMax
Constructor Detail |
public ConstraintBetween()
Method Detail |
public static java.util.Vector getFields()
public void setBetweenMax(java.lang.String max)
max
- The new BetweenMax valuepublic void setBetweenMin(java.lang.String min)
min
- The new BetweenMin valuepublic java.lang.String getBetweenMax()
public java.lang.String getBetweenMin()
public java.util.Enumeration getStaticList()
Constraint
getStaticList
in class Constraint
public java.lang.String getType()
Constraint
getType
in class Constraint
public boolean checkConstraint(java.lang.Object fieldObj, java.lang.Object queryObj)
Constraint
checkConstraint
in class Constraint
fieldObj
- 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 Constraint
str
- Description of Parameter
java.text.ParseException
- Description of Exceptionpublic void staticListInsert(java.lang.String field)
Constraint
staticListInsert
in class Constraint
field
- Description of Parameterpublic java.lang.String stringify()
Constraint
stringify
in class Constraint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |