public class EJBQLCall extends Object implements Serializable, Call
Modifier and Type | Field and Description |
---|---|
protected String |
ejbqlString |
protected boolean |
isParsed |
protected DatabaseQuery |
query |
Constructor and Description |
---|
EJBQLCall()
PUBLIC
Create a new EJBQLCall.
|
EJBQLCall(String ejbqlString)
PUBLIC
Create a new EJBQLCall with an ejbqlString
|
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.
|
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 |
getLogString(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 |
isEJBQLCall()
INTERNAL:
Yes this is an EJBQLCall
|
boolean |
isFinished()
Return whether all the results of the call have been returned.
|
boolean |
isParsed()
INTERNAL
Is this query Parsed
|
void |
populateQuery(AbstractSession session)
Populate the query using the information retrieved from parsing the EJBQL.
|
PreparedStatement |
prepareStatement(DatabaseAccessor accessor,
AbstractRecord translationRow,
AbstractSession session)
INTERNAL:
Prepare the JDBC statement, this may be parameterize or a call statement.
|
void |
setEjbqlString(String newEjbqlString)
INTERNAL:
Set the EJBQL string for this call
|
void |
setIsParsed(boolean newIsParsed)
INTERNAL
Set the isParsed state
|
void |
setQuery(DatabaseQuery query)
INTERNAL:
Back reference to query, unfortunately required for events.
|
void |
translate(AbstractRecord translationRow,
AbstractRecord modifyRow,
AbstractSession session)
INTERNAL:
translate method comment.
|
protected DatabaseQuery query
protected String ejbqlString
protected boolean isParsed
public EJBQLCall()
public EJBQLCall(String ejbqlString)
public DatabaseQueryMechanism buildNewQueryMechanism(DatabaseQuery query)
buildNewQueryMechanism
in interface Call
public DatabaseQueryMechanism buildQueryMechanism(DatabaseQuery query, DatabaseQueryMechanism mechanism)
buildQueryMechanism
in interface Call
public Object clone()
Call
public String getCallString()
public String getEjbqlString()
public DatabaseQuery getQuery()
public String getLogString(Accessor accessor)
getLogString
in interface Call
public String getSQLString()
public boolean isEJBQLCall()
public boolean isFinished()
isFinished
in interface Call
public boolean isParsed()
public void populateQuery(AbstractSession session)
public PreparedStatement prepareStatement(DatabaseAccessor accessor, AbstractRecord translationRow, AbstractSession session) throws SQLException
SQLException
public void setEjbqlString(String newEjbqlString)
public void setIsParsed(boolean newIsParsed)
public void setQuery(DatabaseQuery query)
public void translate(AbstractRecord translationRow, AbstractRecord modifyRow, AbstractSession session)
Copyright © 2021. All rights reserved.