|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enableit.db.DBFilter
Provides an encapsulated means to extend a SQL statement's WHERE clause
Field Summary | |
static java.lang.String |
about
CVS info about this class and its current version |
static int |
EXACT_MATCH
A valid match type |
static int |
GREATER_THAN_MATCH
A valid match type |
static int |
LESS_THAN_MATCH
A valid match type |
private int |
match
The type of match required |
private java.lang.String |
name
The column to filter on |
private java.lang.String |
value
The value of column to filter on |
Constructor Summary | |
DBFilter()
Default Constructor |
|
DBFilter(java.lang.String name,
java.lang.String value)
Convenience Constructor setting name and value as object created |
|
DBFilter(java.lang.String name,
java.lang.String value,
int match)
Convenience constructor setting name, value and match as object created |
Method Summary | |
java.lang.String |
getMatch()
Return a string representaion of the match |
int |
getMatchType()
Returns the type of match required as an int |
java.lang.String |
getName()
Returns the column to filter on |
java.lang.String |
getValue()
Returns the value of column to filter on |
void |
setMatch(int match)
The type of match required |
void |
setName(java.lang.String name)
The column to filter on |
void |
setValue(java.lang.String value)
The value of column to filter on |
java.lang.String |
toString()
Returns a string representation of the filter |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String name
private java.lang.String value
private int match
public static final int EXACT_MATCH
public static final int LESS_THAN_MATCH
public static final int GREATER_THAN_MATCH
public static final java.lang.String about
Constructor Detail |
public DBFilter()
public DBFilter(java.lang.String name, java.lang.String value)
public DBFilter(java.lang.String name, java.lang.String value, int match)
Method Detail |
public void setName(java.lang.String name)
public void setValue(java.lang.String value)
public void setMatch(int match)
public java.lang.String getName()
public java.lang.String getValue()
public int getMatchType()
public java.lang.String getMatch()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |