|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.hibernate.odmg.OQLQuery
Experimental implementation of the ODMG OQLQuery
interface. The supported query language is actually the
Hibernate query language and the execute() method
returns results in the same format as
Session.find().
Warning: this implementation will change significantly as
ODMG support matures!
Constructor Summary | |
OQLQuery()
Instantiate an OQLQuery for the current transaction. |
|
OQLQuery(Database db)
Instantiate an OQLQuery for the current transaction. |
|
OQLQuery(Transaction tx)
Instantiate an OQLQuery for the given transaction. |
Method Summary | |
void |
bind(Object parameter)
Bind a value to the next enumerated parameter. |
void |
create(String queryString)
Set the Hibernate query string. |
Object |
execute()
Get the query results as a collection. |
Query |
getQuery()
Get the underlying Hibernate Query. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OQLQuery(Database db)
public OQLQuery(Transaction tx)
public OQLQuery()
Method Detail |
public Query getQuery()
public void create(String queryString) throws org.odmg.QueryInvalidException
create
in interface org.odmg.OQLQuery
org.odmg.QueryInvalidException
public void bind(Object parameter) throws org.odmg.QueryParameterCountInvalidException, org.odmg.QueryParameterTypeInvalidException
bind
in interface org.odmg.OQLQuery
org.odmg.QueryParameterCountInvalidException
org.odmg.QueryParameterTypeInvalidException
public Object execute() throws org.odmg.QueryException
execute
in interface org.odmg.OQLQuery
org.odmg.QueryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |