org.histpop.server.db
Class QueryFactory
java.lang.Object
org.histpop.server.db.QueryFactory
public class QueryFactory
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
querySQL
public static java.util.Properties querySQL
filename
public static java.lang.String filename
repository
public static SQLRepository repository
QueryFactory
public QueryFactory()
init
public static void init(SQLRepository r,
java.lang.String f)
throws java.lang.Exception
- Throws:
java.lang.Exception
load
public static void load()
throws java.lang.Exception
- Throws:
java.lang.Exception
getQuery
public static PreparedSQLQuery getQuery(java.lang.String name)
throws ServerException
- This method builds a PreparedSQLQuery from the PreparedSQL. The differen is that PreparedSQLQuery
has methods to bind values to parameter names
- Throws:
ServerException
getSQLQuery
public static SQLQuery getSQLQuery(java.lang.String name)
throws ServerException
- Returns the raw SQL associated with the given name.
- Throws:
ServerException