|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.queries.DatabaseQuery org.eclipse.persistence.queries.JPAQuery
public class JPAQuery
Purpose: A EJB3 placeholder Query object to store JPQL strings so that processing the string is delayed until Login
Field Summary |
---|
Constructor Summary | |
---|---|
JPAQuery()
|
|
JPAQuery(java.lang.String jpqlString)
|
|
JPAQuery(java.lang.String name,
java.lang.String jpqlString,
java.lang.Boolean flushOnExecute,
java.util.HashMap hints)
|
|
JPAQuery(java.lang.String name,
java.lang.String jpqlString,
java.util.HashMap hints)
|
Method Summary | |
---|---|
java.lang.Object |
executeDatabaseQuery()
INTERNAL: This should never be called and is only here because it is needed as an extension to DatabaseQuery. |
java.util.HashMap |
getHints()
INTERNAL: Accessor methods for hints that would be added to the EJBQuery class and applied to the TopLink query. |
java.lang.String |
getJPQLString()
INTERNAL: Add the expression value to be included in the result. |
DatabaseQuery |
processJPQLQuery(Session session)
|
void |
setHints(java.util.HashMap hints)
|
void |
setJPQLString(java.lang.String jpqlString)
PUBLIC: Set the JPQL string of the query. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JPAQuery()
public JPAQuery(java.lang.String jpqlString)
public JPAQuery(java.lang.String name, java.lang.String jpqlString, java.util.HashMap hints)
public JPAQuery(java.lang.String name, java.lang.String jpqlString, java.lang.Boolean flushOnExecute, java.util.HashMap hints)
Method Detail |
---|
public java.lang.String getJPQLString()
getJPQLString
in class DatabaseQuery
public void setJPQLString(java.lang.String jpqlString)
DatabaseQuery
setJPQLString
in class DatabaseQuery
public java.util.HashMap getHints()
public void setHints(java.util.HashMap hints)
public DatabaseQuery processJPQLQuery(Session session)
public java.lang.Object executeDatabaseQuery() throws DatabaseException, OptimisticLockException
executeDatabaseQuery
in class DatabaseQuery
DatabaseException
- - an error has occurred on the database.
OptimisticLockException
- - an error has occurred using the optimistic lock feature.
|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |