org.makumba.db.hibernate
Class HQLQueryProvider
java.lang.Object
org.makumba.providers.QueryProvider
org.makumba.db.hibernate.HQLQueryProvider
- All Implemented Interfaces:
- SingletonHolder
public class HQLQueryProvider
- extends QueryProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HQLQUERY_ANALYSIS_PROVIDER
static final String HQLQUERY_ANALYSIS_PROVIDER
- See Also:
- Constant Field Values
person
static Pointer person
brother
static Pointer brother
address
static Pointer address
pc
static Dictionary pc
v
static Vector v
readPerson
static String readPerson
languages
static ArrayList<Pointer> languages
languageData
static String[][] languageData
HQLQueryProvider
public HQLQueryProvider()
getQueryAnalysisProviderClass
protected String getQueryAnalysisProviderClass()
- Overrides:
getQueryAnalysisProviderClass
in class QueryProvider
init
protected void init(String db,
Attributes a)
- Description copied from class:
QueryProvider
- Initalises the provider with the datasource
- Overrides:
init
in class QueryProvider
- Parameters:
db
- the source on which the query should be run
executeRaw
public Vector<Dictionary<String,Object>> executeRaw(String query,
Map args,
int offset,
int limit)
- Specified by:
executeRaw
in class QueryProvider
close
public void close()
- Description copied from class:
QueryProvider
- Closes the environment, when all queries were executed
- Specified by:
close
in class QueryProvider
printQueryResults
public static String printQueryResults(Vector v)
main
public static void main(String[] args)
throws LogicException
- Method for testing the query runner outside a JSP
- Throws:
LogicException