|
|||||||||
| Home >> All >> org >> enableit >> [ db overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.enableit.db
Class DBFilter

java.lang.Objectorg.enableit.db.DBFilter
- public class DBFilter
- extends java.lang.Object
Provides an encapsulated means to extend a SQL statement's WHERE clause
- Version:
- v1.2
| 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 |
IS_NULL
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
name
private java.lang.String name
- The column to filter on
value
private java.lang.String value
- The value of column to filter on
match
private int match
- The type of match required
EXACT_MATCH
public static final int EXACT_MATCH
- A valid match type
- See Also:
- Constant Field Values
LESS_THAN_MATCH
public static final int LESS_THAN_MATCH
- A valid match type
- See Also:
- Constant Field Values
GREATER_THAN_MATCH
public static final int GREATER_THAN_MATCH
- A valid match type
- See Also:
- Constant Field Values
IS_NULL
public static final int IS_NULL
- A valid match type
- See Also:
- Constant Field Values
about
public static final java.lang.String about
- CVS info about this class and its current version
- See Also:
- Constant Field Values
| Constructor Detail |
DBFilter
public DBFilter()
- Default Constructor
DBFilter
public DBFilter(java.lang.String name, java.lang.String value)
- Convenience Constructor setting name and value as object created
DBFilter
public DBFilter(java.lang.String name, java.lang.String value, int match)
- Convenience constructor setting name, value and match as object created
| Method Detail |
setName
public void setName(java.lang.String name)
- The column to filter on
setValue
public void setValue(java.lang.String value)
- The value of column to filter on
setMatch
public void setMatch(int match)
- The type of match required
getName
public java.lang.String getName()
- Returns the column to filter on
getValue
public java.lang.String getValue()
- Returns the value of column to filter on
getMatchType
public int getMatchType()
- Returns the type of match required as an int
getMatch
public java.lang.String getMatch()
- Return a string representaion of the match
toString
public java.lang.String toString()
- Returns a string representation of the filter
|
|||||||||
| Home >> All >> org >> enableit >> [ db overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.enableit.db.DBFilter