org.histpop.server.db
Class QueryFactory

java.lang.Object
  extended by org.histpop.server.db.QueryFactory

public class QueryFactory
extends java.lang.Object


Field Summary
static java.lang.String filename
           
static java.util.Properties querySQL
           
static SQLRepository repository
           
 
Constructor Summary
QueryFactory()
           
 
Method Summary
static PreparedSQLQuery getQuery(java.lang.String name)
          This method builds a PreparedSQLQuery from the PreparedSQL.
static SQLQuery getSQLQuery(java.lang.String name)
          Returns the raw SQL associated with the given name.
static void init(SQLRepository r, java.lang.String f)
           
static void load()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

querySQL

public static java.util.Properties querySQL

filename

public static java.lang.String filename

repository

public static SQLRepository repository
Constructor Detail

QueryFactory

public QueryFactory()
Method Detail

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