public class JPQLCall extends Object implements Serializable, Call
Responsibilities:
Modifier and Type | Field and Description |
---|---|
protected boolean |
isParsed |
protected String |
jpqlString |
protected DatabaseQuery |
query |
Constructor and Description |
---|
JPQLCall()
PUBLIC:
Create a new JPQLCall.
|
JPQLCall(String jpqlString)
PUBLIC:
Create a new JPQLCall with an jpqlString.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.persistence.internal.queries.DatabaseQueryMechanism |
buildNewQueryMechanism(DatabaseQuery query)
INTERNAL:
Return the appropriate mechanism,
with the call added as necessary.
|
org.eclipse.persistence.internal.queries.DatabaseQueryMechanism |
buildQueryMechanism(DatabaseQuery query,
org.eclipse.persistence.internal.queries.DatabaseQueryMechanism mechanism)
INTERNAL:
Return the appropriate mechanism,
with the call added as necessary.
|
Object |
clone()
INTERNAL:
Return a clone of the call.
|
String |
getCallString()
INTERNAL:
Return the string for the call
|
String |
getEjbqlString()
INTERNAL:
Return the EJBQL string for this call
|
String |
getJPQLString()
INTERNAL:
Return the EJBQL string for this call
|
String |
getLogString(org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
INTERNAL:
Return the SQL string for this call.
|
DatabaseQuery |
getQuery()
Back reference to query, unfortunately required for events.
|
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(org.eclipse.persistence.internal.sessions.AbstractSession session)
Populate the query using the information retrieved from parsing the EJBQL.
|
PreparedStatement |
prepareStatement(org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor accessor,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Prepare the JDBC statement, this may be parameterize or a call statement.
|
void |
setEjbqlString(String jpqlString)
INTERNAL:
Set the EJBQL string for this call
|
void |
setIsParsed(boolean newIsParsed)
INTERNAL
Set the isParsed state
|
void |
setJPQLString(String jpqlString)
INTERNAL:
Set the JPQL string for this call
|
void |
setQuery(DatabaseQuery query)
INTERNAL:
Back reference to query, unfortunately required for events.
|
String |
toString()
INTERNAL:
Print the JPQL string.
|
void |
translate(org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
org.eclipse.persistence.internal.sessions.AbstractRecord modifyRow,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
translate method comment.
|
protected transient DatabaseQuery query
protected String jpqlString
protected boolean isParsed
public JPQLCall()
public JPQLCall(String jpqlString)
public org.eclipse.persistence.internal.queries.DatabaseQueryMechanism buildNewQueryMechanism(DatabaseQuery query)
buildNewQueryMechanism
in interface Call
public org.eclipse.persistence.internal.queries.DatabaseQueryMechanism buildQueryMechanism(DatabaseQuery query, org.eclipse.persistence.internal.queries.DatabaseQueryMechanism mechanism)
buildQueryMechanism
in interface Call
public Object clone()
Call
public String getCallString()
public String getEjbqlString()
public String getJPQLString()
public DatabaseQuery getQuery()
public String getLogString(org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
getLogString
in interface Call
public String getSQLString()
public boolean isJPQLCall()
public boolean isFinished()
isFinished
in interface Call
public boolean isParsed()
public void populateQuery(org.eclipse.persistence.internal.sessions.AbstractSession session)
public PreparedStatement prepareStatement(org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor accessor, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, org.eclipse.persistence.internal.sessions.AbstractSession session) throws SQLException
SQLException
public void setEjbqlString(String jpqlString)
public void setJPQLString(String jpqlString)
public void setIsParsed(boolean newIsParsed)
public void setQuery(DatabaseQuery query)
public void translate(org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, org.eclipse.persistence.internal.sessions.AbstractRecord modifyRow, org.eclipse.persistence.internal.sessions.AbstractSession session)
public boolean isNothingReturned()
isNothingReturned
in interface Call
public boolean isOneRowReturned()
isOneRowReturned
in interface Call
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.