public class JPQLCall extends java.lang.Object implements java.io.Serializable, Call
Responsibilities:
| Constructor and Description |
|---|
JPQLCall()
PUBLIC:
Create a new JPQLCall.
|
JPQLCall(java.lang.String jpqlString)
PUBLIC:
Create a new JPQLCall with an jpqlString.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseQueryMechanism |
buildNewQueryMechanism(DatabaseQuery query)
INTERNAL:
Return the appropriate mechanism,
with the call added as necessary.
|
DatabaseQueryMechanism |
buildQueryMechanism(DatabaseQuery query,
DatabaseQueryMechanism mechanism)
INTERNAL:
Return the appropriate mechanism,
with the call added as necessary.
|
java.lang.Object |
clone()
INTERNAL:
Return a clone of the call.
|
java.lang.String |
getCallString()
INTERNAL:
Return the string for the call
|
java.lang.String |
getEjbqlString()
INTERNAL:
Return the EJBQL string for this call
|
java.lang.String |
getJPQLString()
INTERNAL:
Return the EJBQL string for this call
|
java.lang.String |
getLogString(Accessor accessor)
INTERNAL:
Return the SQL string for this call.
|
DatabaseQuery |
getQuery()
Back reference to query, unfortunately required for events.
|
java.lang.String |
getSQLString()
INTERNAL:
Return the SQL string for this call.
|
boolean |
isFinished()
Return whether all the results of the call have been returned.
|
boolean |
isJPQLCall()
INTERNAL:
Yes this is an JPQLCall
|
boolean |
isNothingReturned()
The return type is one of, NoReturn, ReturnOneRow or ReturnManyRows.
|
boolean |
isOneRowReturned()
The return type is one of, NoReturn, ReturnOneRow or ReturnManyRows.
|
boolean |
isParsed()
INTERNAL
Is this query Parsed
|
void |
populateQuery(AbstractSession session)
Populate the query using the information retrieved from parsing the EJBQL.
|
java.sql.PreparedStatement |
prepareStatement(DatabaseAccessor accessor,
AbstractRecord translationRow,
AbstractSession session)
INTERNAL:
Prepare the JDBC statement, this may be parameterize or a call statement.
|
void |
setEjbqlString(java.lang.String jpqlString)
INTERNAL:
Set the EJBQL string for this call
|
void |
setIsParsed(boolean newIsParsed)
INTERNAL
Set the isParsed state
|
void |
setJPQLString(java.lang.String jpqlString)
INTERNAL:
Set the JPQL string for this call
|
void |
setQuery(DatabaseQuery query)
INTERNAL:
Back reference to query, unfortunately required for events.
|
java.lang.String |
toString()
INTERNAL:
Print the JPQL string.
|
void |
translate(AbstractRecord translationRow,
AbstractRecord modifyRow,
AbstractSession session)
INTERNAL:
translate method comment.
|
public JPQLCall()
public JPQLCall(java.lang.String jpqlString)
public DatabaseQueryMechanism buildNewQueryMechanism(DatabaseQuery query)
buildNewQueryMechanism in interface Callpublic DatabaseQueryMechanism buildQueryMechanism(DatabaseQuery query, DatabaseQueryMechanism mechanism)
buildQueryMechanism in interface Callpublic java.lang.Object clone()
Callpublic java.lang.String getCallString()
public java.lang.String getEjbqlString()
public java.lang.String getJPQLString()
public DatabaseQuery getQuery()
public java.lang.String getLogString(Accessor accessor)
getLogString in interface Callpublic java.lang.String getSQLString()
public boolean isJPQLCall()
public boolean isFinished()
isFinished in interface Callpublic boolean isParsed()
public void populateQuery(AbstractSession session)
public java.sql.PreparedStatement prepareStatement(DatabaseAccessor accessor, AbstractRecord translationRow, AbstractSession session) throws java.sql.SQLException
java.sql.SQLExceptionpublic void setEjbqlString(java.lang.String jpqlString)
public void setJPQLString(java.lang.String jpqlString)
public void setIsParsed(boolean newIsParsed)
public void setQuery(DatabaseQuery query)
public void translate(AbstractRecord translationRow, AbstractRecord modifyRow, AbstractSession session)
public boolean isNothingReturned()
isNothingReturned in interface Callpublic boolean isOneRowReturned()
isOneRowReturned in interface Callpublic java.lang.String toString()
toString in class java.lang.ObjectEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference