public abstract class DatasourceCall extends java.lang.Object implements Call
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
CUSTOM_MODIFY |
static java.lang.Integer |
IN |
static java.lang.Integer |
INLINE |
static java.lang.Integer |
INOUT |
static java.lang.Integer |
LITERAL |
static java.lang.Integer |
MODIFY |
static java.lang.Integer |
OUT |
static java.lang.Integer |
OUT_CURSOR |
static java.lang.Integer |
TRANSLATION |
Constructor and Description |
---|
DatasourceCall() |
Modifier and Type | Method and Description |
---|---|
void |
appendIn(java.io.Writer writer,
DatabaseField field)
INTERNAL:
All values are printed as ? to allow for parameter binding or translation during the execute of the call.
|
void |
appendInOut(java.io.Writer writer,
DatabaseField inoutField)
INTERNAL:
All values are printed as ? to allow for parameter binding or translation during the execute of the call.
|
void |
appendLiteral(java.io.Writer writer,
java.lang.Object literal)
INTERNAL:
All values are printed as ? to allow for parameter binding or translation during the execute of the call.
|
void |
appendModify(java.io.Writer writer,
DatabaseField modifyField)
INTERNAL:
All values are printed as ? to allow for parameter binding or translation during the execute of the call.
|
void |
appendOut(java.io.Writer writer,
DatabaseField outField)
INTERNAL:
All values are printed as ? to allow for parameter binding or translation during the execute of the call.
|
void |
appendParameter(java.io.Writer writer,
java.lang.Object parameter,
AbstractSession session)
Add the parameter.
|
void |
appendTranslation(java.io.Writer writer,
DatabaseField modifyField)
INTERNAL:
All values are printed as ? to allow for parameter binding or translation during the execute of the call.
|
boolean |
areManyRowsReturned()
The return type is one of, NoReturn, ReturnOneRow or ReturnManyRows.
|
DatabaseQueryMechanism |
buildNewQueryMechanism(DatabaseQuery query)
Return the appropriate mechanism,
with the call added as necessary.
|
DatabaseQueryMechanism |
buildQueryMechanism(DatabaseQuery query,
DatabaseQueryMechanism mechanism)
Return the appropriate mechanism,
with the call added as necessary.
|
java.lang.Object |
clone()
INTERNAL:
Return a clone of the call.
|
abstract java.lang.String |
getLogString(Accessor accessor)
Return the SQL string for logging purposes.
|
java.util.List |
getParameters()
The parameters are the values in order of occurrence in the SQL statement.
|
java.util.List<java.lang.Integer> |
getParameterTypes()
The parameter types determine if the parameter is a modify, translation or literal type.
|
DatabaseQuery |
getQuery()
Back reference to query, unfortunately required for events.
|
java.lang.String |
getQueryString()
Return the query string of the call.
|
int |
getReturnType()
The return type is one of, NoReturn, ReturnOneRow or ReturnManyRows.
|
boolean |
hasParameters()
The parameters are the values in order of occurrence in call.
|
boolean |
isCursorReturned()
The return type is one of, NoReturn, ReturnOneRow or ReturnManyRows.
|
boolean |
isEISInteraction() |
boolean |
isExecuteUpdate()
Returns true if this call returns from a statement.execute call.
|
boolean |
isFinished()
Return whether all the results of the call have been returned.
|
boolean |
isJPQLCall() |
boolean |
isNativeConnectionRequired()
Return if the call requires usage of a native (unwrapped) JDBC connection.
|
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 |
isOutputParameterType(java.lang.Integer parameterType) |
boolean |
isPrepared()
Bound calls can have the SQL pre generated.
|
boolean |
isQueryStringCall() |
boolean |
isReturnSet()
Return if the call's return type has been set.
|
boolean |
isSQLCall() |
boolean |
isStoredFunctionCall() |
boolean |
isStoredPLSQLFunctionCall() |
boolean |
isStoredPLSQLProcedureCall() |
boolean |
isStoredProcedureCall() |
void |
prepare(AbstractSession session)
Allow pre-printing of the query/SQL string for fully bound calls, to save from reprinting.
|
void |
returnCursor()
Cursor return is used for cursored streams.
|
void |
returnManyRows()
Many rows are returned for read-all queries.
|
void |
returnNothing()
No return is used for modify calls like insert / update / delete.
|
void |
returnOneRow()
One row is returned for read-object queries.
|
void |
setExecuteUpdate()
Indicates that this call will return a boolean value from an execute()
call.
|
void |
setIsNativeConnectionRequired(boolean isNativeConnectionRequired)
Set if the call requires usage of a native (unwrapped) JDBC connection.
|
void |
setIsPrepared(boolean isPrepared)
Bound calls can have the SQL pre generated.
|
void |
setParameters(java.util.List parameters)
The parameters are the values in order of occurrence in the SQL statement.
|
void |
setParameterTypes(java.util.List<java.lang.Integer> parameterTypes)
The parameter types determine if the parameter is a modify, translation or literal type.
|
void |
setQuery(DatabaseQuery query)
Back reference to query, unfortunately required for events.
|
void |
setQueryString(java.lang.String queryString)
Set the query string of the call.
|
void |
setReturnType(int returnType)
The return type is one of, NoReturn, ReturnOneRow or ReturnManyRows.
|
void |
translate(AbstractRecord translationRow,
AbstractRecord modifyRow,
AbstractSession session)
Allow the call to translate from the translation for predefined calls.
|
void |
translateCustomQuery()
INTERNAL:
Parse the query string for # markers for custom query based on a query language.
|
void |
translatePureSQLCustomQuery()
INTERNAL:
Parse the query string for ? markers for custom query based on a query language.
|
void |
translateQueryString(AbstractRecord translationRow,
AbstractRecord modifyRow,
AbstractSession session)
INTERNAL:
Allow the call to translate from the translation for predefined calls.
|
public static final java.lang.Integer LITERAL
public static final java.lang.Integer MODIFY
public static final java.lang.Integer TRANSLATION
public static final java.lang.Integer CUSTOM_MODIFY
public static final java.lang.Integer OUT
public static final java.lang.Integer INOUT
public static final java.lang.Integer IN
public static final java.lang.Integer OUT_CURSOR
public static final java.lang.Integer INLINE
public java.util.List getParameters()
public java.util.List<java.lang.Integer> getParameterTypes()
public void setParameters(java.util.List parameters)
public void setParameterTypes(java.util.List<java.lang.Integer> parameterTypes)
public boolean hasParameters()
public boolean areManyRowsReturned()
public boolean isOutputParameterType(java.lang.Integer parameterType)
public boolean isPrepared()
public void setIsPrepared(boolean isPrepared)
public DatabaseQueryMechanism buildNewQueryMechanism(DatabaseQuery query)
buildNewQueryMechanism
in interface Call
public DatabaseQueryMechanism buildQueryMechanism(DatabaseQuery query, DatabaseQueryMechanism mechanism)
buildQueryMechanism
in interface Call
public java.lang.Object clone()
Call
public abstract java.lang.String getLogString(Accessor accessor)
getLogString
in interface Call
public DatabaseQuery getQuery()
public int getReturnType()
public boolean isCursorReturned()
public boolean isExecuteUpdate()
public boolean isFinished()
isFinished
in interface Call
public boolean isNothingReturned()
isNothingReturned
in interface Call
public boolean isOneRowReturned()
isOneRowReturned
in interface Call
public boolean isSQLCall()
public boolean isStoredPLSQLFunctionCall()
public boolean isStoredPLSQLProcedureCall()
public boolean isStoredFunctionCall()
public boolean isStoredProcedureCall()
public boolean isJPQLCall()
public boolean isEISInteraction()
public boolean isQueryStringCall()
public void prepare(AbstractSession session)
public void returnCursor()
public void setExecuteUpdate()
public boolean isReturnSet()
public void returnManyRows()
public void returnNothing()
public void returnOneRow()
public void setQuery(DatabaseQuery query)
public void setReturnType(int returnType)
public void translate(AbstractRecord translationRow, AbstractRecord modifyRow, AbstractSession session)
public java.lang.String getQueryString()
public void setQueryString(java.lang.String queryString)
public void translateCustomQuery()
public void translatePureSQLCustomQuery()
public void appendLiteral(java.io.Writer writer, java.lang.Object literal)
public void appendTranslation(java.io.Writer writer, DatabaseField modifyField)
public void appendModify(java.io.Writer writer, DatabaseField modifyField)
public void appendIn(java.io.Writer writer, DatabaseField field)
public void appendInOut(java.io.Writer writer, DatabaseField inoutField)
public void appendOut(java.io.Writer writer, DatabaseField outField)
public void appendParameter(java.io.Writer writer, java.lang.Object parameter, AbstractSession session)
public void translateQueryString(AbstractRecord translationRow, AbstractRecord modifyRow, AbstractSession session)
public void setIsNativeConnectionRequired(boolean isNativeConnectionRequired)
public boolean isNativeConnectionRequired()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference