|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.table.db.SQLFilterConverter
public class SQLFilterConverter
SQLFilterConverter is a utility class that converts a TableFilter
into an SQL string.
Field Summary | |
---|---|
protected static String |
holder
a string to use as an SQL placeholder (default is ?) |
Constructor Summary | |
---|---|
SQLFilterConverter()
Constructs an SQLFilterConverter. |
Method Summary | |
---|---|
String |
convert(Filter filter,
boolean place)
Converts the supplied filter into an SQL where clause. |
String |
convert(TableFilter tableFilter,
DatabaseTableDefinition definition)
Converts the supplied table filter into an SQL where clause. |
String |
convert(TableFilter tableFilter,
DatabaseTableDefinition definition,
boolean place)
Converts the supplied table filter into an SQL where clause. |
String |
convertBoolean(BooleanFilter filter,
boolean place)
Converts the supplied boolean filter into an SQL where clause. |
String |
convertComparison(ComparisonFilter filter,
boolean place)
Converts the supplied comparison filter into an SQL where clause. |
String |
convertString(StringFilter filter,
boolean place)
Converts the supplied string filter into an SQL where clause. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static String holder
Constructor Detail |
---|
public SQLFilterConverter()
Method Detail |
---|
public String convert(Filter filter, boolean place)
filter
- the filter to convertplace
- if true, converter will use placeholders (?), otherwise the filter's value
public String convertComparison(ComparisonFilter filter, boolean place)
filter
- the comparison filter to convertplace
- if true, converter will use placeholders (?), otherwise the filter's value
public String convertString(StringFilter filter, boolean place)
filter
- the string filter to convertplace
- if true, converter will use placeholders (?), otherwise the filter's value
public String convert(TableFilter tableFilter, DatabaseTableDefinition definition)
tableFilter
- the table filter to convertdefinition
- the database definition to use to find out the column names
public String convert(TableFilter tableFilter, DatabaseTableDefinition definition, boolean place)
tableFilter
- the table filter to convertdefinition
- the database definition to use to find out the column namesplace
- if true, converter will use placeholders (?), otherwise the filter's value
public String convertBoolean(BooleanFilter filter, boolean place)
filter
- the boolean filter to convertplace
- if true, converter will use placeholders (?), otherwise the filter's value
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |