|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object velosurf.sql.SqlUtil
public class SqlUtil
various SQL-related helpers.
Constructor Summary | |
---|---|
SqlUtil()
|
Method Summary | |
---|---|
static java.util.List<java.lang.String> |
getColumnNames(java.sql.ResultSet resultSet)
get the column nams of a result set |
static java.lang.String |
orderQuery(java.lang.String query,
java.lang.String order)
add an ordering clause to a query |
static java.lang.String |
refineQuery(java.lang.String query,
java.util.List criteriaList)
add seach criteria to a query |
private static java.lang.String |
stars(int length)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SqlUtil()
Method Detail |
---|
private static java.lang.String stars(int length)
public static java.lang.String refineQuery(java.lang.String query, java.util.List criteriaList)
query
- querycriteriaList
- list of criteria
public static java.lang.String orderQuery(java.lang.String query, java.lang.String order)
query
- initial queryorder
- order clause
public static java.util.List<java.lang.String> getColumnNames(java.sql.ResultSet resultSet) throws java.sql.SQLException
resultSet
- result set
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |