Module org.eclipse.persistence.core
Class DatabaseCall
java.lang.Object
org.eclipse.persistence.internal.databaseaccess.DatasourceCall
org.eclipse.persistence.internal.databaseaccess.DatabaseCall
- All Implemented Interfaces:
Serializable,Cloneable,Call
- Direct Known Subclasses:
SQLCall,StoredProcedureCall
INTERNAL:
Purpose: Used as an abstraction of a database invocation.
A call is an SQL string or procedure call with parameters.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceCall
DatasourceCall.ParameterType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanJPA 2.1 NamedStoredProcedureQuery execute API implementation.protected Vector<DatabaseField> protected DatabaseField[]protected intstatic final DatabaseFieldprotected ResultSetprotected booleanIndicates whether the call has allocated connection.protected booleanSupport multiple result sets.protected booleanprotected booleanIndicates if the FirstRow value in this call object is to be ignored.protected booleanIndicates if the MaxResults value in this call object is to be ignored.protected booleanDefine if this query is compatible with batch writing.protected booleanprotected booleanAllow for a single cursored output parameter.protected booleanprotected booleanAllow for multiple cursored output parameter.protected booleanstatic final DatabaseFieldFollowing fields are used to bind MaxResults and FirstRow settings into the query instead of using the values stored in the call.protected intprotected intprotected TimeUnitprotected ResultSetprotected intprotected intprotected intprotected booleanSupport returning multiple results sets instead of just one list, i.e.protected Booleanprotected booleanprotected Booleanprotected booleanprotected StringThe SQL string to execute.protected Statementprotected BooleanFields inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceCall
EXECUTE_UPDATE, isNativeConnectionRequired, isPrepared, NO_RETURN, outputCursors, parameterBindings, parameters, parameterTypes, query, RETURN_CURSOR, RETURN_MANY_ROWS, RETURN_ONE_ROW, returnType, shouldProcessTokenInQuotes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContext(DatabaseField field, Object value) INTERNAL: Add a field - value pair for LOB field into the context.static voidappendLogParameters(Collection parameters, Accessor accessor, StringWriter writer, AbstractSession session) Print the parameters to the write for logging purposes.voidappendParameter(Writer writer, Object parameter, boolean shouldBind, AbstractSession session) Add the parameter.voidbindParameter(Writer writer, Object parameter) Bind the parameter.Return the appropriate mechanism, with the call added as necessary.buildOutputRow(CallableStatement statement, DatabaseAccessor accessor, AbstractSession session) INTERNAL: Return Record containing output fields and values.buildQueryMechanism(DatabaseQuery query, DatabaseQueryMechanism mechanism) Return the appropriate mechanism, with the call added as necessary.protected ObjectcreateInOutParameter(Object inValue, Object outParameter, AbstractSession session) INTERNAL: Returns INOUT parameter.INTERNAL: Return the SQL string for the call.INTERNAL: Return the contexts (for LOB)intINTERNAL: Return 1-based index of out cursor parameter, or -1.booleanAfter an execute call the return value can be retrieved here.The fields expected by the calls result set.INTERNAL: The array of fields returned by the call.protected DatabaseFieldgetFieldWithTypeFromDescriptor(DatabaseField outField) INTERNAL: Unfortunately can't avoid referencing query and descriptor: the call should be performed after the translateCustomSQL (in SQLCall) in the middle of prepare method (no parameter available earlier).intget first resultThe result set that stores the generated keys from the StatementgetLogString(Accessor accessor) Return the SQL string for logging purposes.intget max rows returned from the callgetOutputParameterValue(CallableStatement statement, int index, AbstractSession session) INTERNAL: Get the return object from the statement.getOutputParameterValue(CallableStatement statement, String name, AbstractSession session) INTERNAL: Get the return object from the statement.INTERNAL Returns the fields to be used in output row.INTERNAL: Return the query string (SQL) of the call.intGet timeout limit from the callThe result set is stored for the return value of cursor selects.intintintbooleanADVANCED: This method returns a value that represents if the customer has set whether or not EclipseLink should expect the stored procedure to returning a JDBC ResultSet.Return the SQL string that will be executed.The statement is stored for the return value of cursor selects.booleanINTERNAL:booleanReturn if the call returns multiple result sets.booleanThis check is needed only when doing batch writing.booleanINTERNAL: Return if this query is compatible with batch writing.protected booleanCallable statement is required if there is an output parameter.booleanUsed for Oracle result sets through procedures.booleanThe return type is one of, NoReturn, ReturnOneRow or ReturnManyRows.protected booleanisDynamicCall(AbstractSession session) Return if the call is dynamic SQL call.booleanReturn if field matching is required.booleanReturn whether all the results of the call have been returned.booleanINTERNAL: Return if the locator is required for the LOB (BLOB and CLOB) writing.booleanUsed for Oracle result sets through procedures.booleanReturn true for procedures with any output (or in/out) parameters and no cursorsbooleanvoidmatchFieldOrder(ResultSet resultSet, DatabaseAccessor accessor, AbstractSession session) Allow for the field order to be matched if required.voidprepare(AbstractSession session) INTERNAL: Allow pre-printing of the SQL string for fully bound calls, to save from reprinting.protected voidprepareInternal(AbstractSession session) INTERNAL: Called by prepare method only.protected voidprepareInternalParameters(AbstractSession session) INTERNAL: Called by prepareInternal method only.prepareStatement(DatabaseAccessor accessor, AbstractRecord translationRow, AbstractSession session) INTERNAL: Prepare the JDBC statement, this may be parameterize or a call statement.booleanReturn true if the multiple results 'lists' should be returned.voidsetBatchExecutionSupported(boolean isBatchExecutionSupported) INTERNAL: Set if this query is compatible with batch writing.voidsetContexts(AbstractRecord contexts) INTERNAL: Set the contexts (for LOB)voidsetExecuteReturnValue(boolean value) An execute return value will be set here after the call.voidsetFields(Vector<DatabaseField> fields) The fields expected by the calls result set.voidsetFirstResult(int firstResult) The firstResult set on the result setvoidsetGeneratedKeys(ResultSet generatedKeys) The result set that stores the generated keys from the StatementvoidsetHasAllocatedConnection(boolean hasAllocatedConnection) INTERNAL:voidsetHasMultipleResultSets(boolean hasMultipleResultSets) Set if the call returns multiple result sets.voidsetHasOptimisticLock(boolean hasOptimisticLock) This check is needed only when doing batch writing and we hit on optimistic locking.voidsetIgnoreFirstRowSetting(boolean ignoreFirstRowSetting) INTERNAL: Sets the ignoreFirstRowSetting flag.voidsetIgnoreMaxResultsSetting(boolean ignoreMaxResultsSetting) INTERNAL: Sets the ignoreMaxResultsSetting flag.protected voidsetIsCallableStatementRequired(boolean isCallableStatementRequired) Callable statement is required if there is an output parameter.voidsetIsCursorOutputProcedure(boolean isCursorOutputProcedure) Used for Oracle result sets through procedures.voidsetIsFieldMatchingRequired(boolean isFieldMatchingRequired) Field matching is required for custom SQL statements where the result set field order is not known.voidsetIsMultipleCursorOutputProcedure(boolean isMultipleCursorOutputProcedure) Used for Oracle result sets through procedures.voidsetIsResultSetScrollable(boolean isResultSetScrollable) voidsetMaxRows(int maxRows) set query max returned row size to the JDBC StatementvoidsetQueryString(String queryString) INTERNAL: Set the query string (SQL) of the call.voidsetQueryTimeout(int queryTimeout) set query timeout limit to the JDBC StatementvoidsetQueryTimeoutUnit(TimeUnit queryTimeoutUnit) set query timeout limit unit to the JDBC StatementvoidThe result set is stored for the return value of cursor selects.voidsetResultSetConcurrency(int resultSetConcurrency) voidsetResultSetFetchSize(int resultSetFetchSize) voidsetResultSetType(int resultSetType) voidsetReturnMultipleResultSetCollections(boolean returnMultipleResultSetCollections) Set if the call returns multiple result sets.voidsetReturnsResultSet(boolean returnsResultSet) PUBLIC: Use this method to tell EclipseLink that the stored procedure will be returning a JDBC ResultSetprotected voidsetShouldBuildOutputRow(boolean shouldBuildOutputRow) INTERNAL: Set whether the call has to build output rowvoidsetShouldCacheStatement(boolean shouldCacheStatement) Bound calls can use prepared statement caching.booleansetShouldReturnGeneratedKeys(boolean shouldReturnGeneratedKeys) Indicate that this call should setStatement.RETURN_GENERATED_KEYSwhen executingprotected voidsetSQLStringInternal(String sqlString) INTERNAL: Set the SQL string.voidsetStatement(Statement statement) The statement is stored for the return value of cursor selects.booleanSet whether the call has to build output rowbooleanshouldCacheStatement(DatabasePlatform databasePlatform) Bound calls can use prepared statement caching.booleanshouldCacheStatement(AbstractSession session) Bound calls can use prepared statement caching.booleanINTERNAL: Returns the ignoreFirstRowSetting flag.booleanINTERNAL: Returns the ignoreMaxResultsSetting flag.booleanIndicate that this call should setStatement.RETURN_GENERATED_KEYSwhen executingtoString()INTERNAL: Print the SQL string.voidtranslate(AbstractRecord translationRow, AbstractRecord modifyRow, AbstractSession session) INTERNAL: Allow the call to translate from the translation for predefined calls.voidPUBLIC: Used for Oracle result sets through procedures.Methods inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceCall
appendIn, appendIn, appendIn, appendInOut, appendInOut, appendInOut, appendInOut, appendInOut, appendLiteral, appendLiteral, appendLiteral, appendModify, appendModify, appendModify, appendOut, appendOut, appendOut, appendOutCursor, appendOutCursor, appendTranslation, appendTranslation, appendTranslation, areManyRowsReturned, argumentMarker, clone, createField, getOutputCursors, getParameterBindings, getParameters, getParameterTypes, getQuery, getReturnType, getValueForInOutParameter, getValueForInParameter, hasOutputCursors, hasParameters, isEISInteraction, isExecuteUpdate, isJPQLCall, isNativeConnectionRequired, isNothingReturned, isOneRowReturned, isOutputParameterType, isPrepared, isQueryStringCall, isReturnSet, isSQLCall, isStoredFunctionCall, isStoredPLSQLFunctionCall, isStoredPLSQLProcedureCall, isStoredProcedureCall, isUsesBindingSet, returnCursor, returnManyRows, returnNothing, returnOneRow, setExecuteUpdate, setIsNativeConnectionRequired, setIsPrepared, setParameterBindings, setParameters, setParameterTypes, setQuery, setReturnType, setUsesBinding, translateCustomQuery, translatePureSQLCustomQuery, translateQueryString, translateQueryStringAndBindParameters, translateQueryStringForParameterizedIN, usesBinding, usesBinding, usesBinding, whitespace
-
Field Details
-
executeReturnValue
protected boolean executeReturnValueJPA 2.1 NamedStoredProcedureQuery execute API implementation. -
MAXROW_FIELD
Following fields are used to bind MaxResults and FirstRow settings into the query instead of using the values stored in the call. -
FIRSTRESULT_FIELD
-
ignoreFirstRowSetting
protected boolean ignoreFirstRowSettingIndicates if the FirstRow value in this call object is to be ignored. If true, it should mean it has been built into the SQL statement directly ex: using Oracle Rownum support -
ignoreMaxResultsSetting
protected boolean ignoreMaxResultsSettingIndicates if the MaxResults value in this call object is to be ignored. If true, it should mean it has been built into the SQL statement directly ex: using Oracle Rownum support -
statement
-
result
-
generatedKeys
-
usesBinding
-
shouldCacheStatement
-
shouldReturnGeneratedKeys
protected boolean shouldReturnGeneratedKeys -
fields
-
fieldsArray
-
isFieldMatchingRequired
protected boolean isFieldMatchingRequired -
hasOptimisticLock
protected boolean hasOptimisticLock -
isResultSetScrollable
protected boolean isResultSetScrollable -
resultSetFetchSize
protected int resultSetFetchSize -
resultSetType
protected int resultSetType -
resultSetConcurrency
protected int resultSetConcurrency -
queryTimeout
protected int queryTimeout -
queryTimeoutUnit
-
maxRows
protected int maxRows -
firstResult
protected int firstResult -
isCursorOutputProcedure
protected boolean isCursorOutputProcedureAllow for a single cursored output parameter. -
isMultipleCursorOutputProcedure
protected boolean isMultipleCursorOutputProcedureAllow for multiple cursored output parameter. -
returnsResultSet
-
shouldBuildOutputRow
protected boolean shouldBuildOutputRow -
isCallableStatementRequired
protected boolean isCallableStatementRequired -
hasMultipleResultSets
protected boolean hasMultipleResultSetsSupport multiple result sets. -
returnMultipleResultSetCollections
protected boolean returnMultipleResultSetCollectionsSupport returning multiple results sets instead of just one list, i.e. support multiple results set mappings. -
sqlString
The SQL string to execute. -
hasAllocatedConnection
protected boolean hasAllocatedConnectionIndicates whether the call has allocated connection. May be set if the call has not finished -
isBatchExecutionSupported
protected boolean isBatchExecutionSupportedDefine if this query is compatible with batch writing. Some queries, such as DDL are not compatible.
-
-
Constructor Details
-
DatabaseCall
protected DatabaseCall()
-
-
Method Details
-
hasMultipleResultSets
public boolean hasMultipleResultSets()Return if the call returns multiple result sets. -
setHasMultipleResultSets
public void setHasMultipleResultSets(boolean hasMultipleResultSets) Set if the call returns multiple result sets. -
appendParameter
public void appendParameter(Writer writer, Object parameter, boolean shouldBind, AbstractSession session) Add the parameter.If binding is enabled, then bind the parameter; otherwise let the platform print it. The platform may also decide to bind the value.
- Overrides:
appendParameterin classDatasourceCall
-
bindParameter
Bind the parameter. Binding is determined by the parameter and second the platform. -
buildNewQueryMechanism
Return the appropriate mechanism, with the call added as necessary.- Specified by:
buildNewQueryMechanismin interfaceCall- Overrides:
buildNewQueryMechanismin classDatasourceCall
-
buildOutputRow
public AbstractRecord buildOutputRow(CallableStatement statement, DatabaseAccessor accessor, AbstractSession session) throws SQLException INTERNAL: Return Record containing output fields and values. Called only if shouldBuildOutputRow method returns true.- Throws:
SQLException
-
buildQueryMechanism
public DatabaseQueryMechanism buildQueryMechanism(DatabaseQuery query, DatabaseQueryMechanism mechanism) Return the appropriate mechanism, with the call added as necessary.- Specified by:
buildQueryMechanismin interfaceCall- Overrides:
buildQueryMechanismin classDatasourceCall
-
createInOutParameter
INTERNAL: Returns INOUT parameter. The first parameter is value to pass in, the second DatabaseField for out.- Overrides:
createInOutParameterin classDatasourceCall
-
getCallString
INTERNAL: Return the SQL string for the call. -
getFields
The fields expected by the calls result set. null means that the fields are unknown and should be built from the result set. -
getFieldsArray
INTERNAL: The array of fields returned by the call. -
getFieldWithTypeFromDescriptor
INTERNAL: Unfortunately can't avoid referencing query and descriptor: the call should be performed after the translateCustomSQL (in SQLCall) in the middle of prepare method (no parameter available earlier). -
getCursorOutIndex
public int getCursorOutIndex()INTERNAL: Return 1-based index of out cursor parameter, or -1. -
getExecuteReturnValue
public boolean getExecuteReturnValue()After an execute call the return value can be retrieved here. -
getFirstResult
public int getFirstResult()get first result -
getLogString
Return the SQL string for logging purposes.- Specified by:
getLogStringin interfaceCall- Specified by:
getLogStringin classDatasourceCall
-
appendLogParameters
public static void appendLogParameters(Collection parameters, Accessor accessor, StringWriter writer, AbstractSession session) Print the parameters to the write for logging purposes. -
getMaxRows
public int getMaxRows()get max rows returned from the call -
getOutputRowFields
INTERNAL Returns the fields to be used in output row. -
getQueryString
INTERNAL: Return the query string (SQL) of the call.- Overrides:
getQueryStringin classDatasourceCall
-
getQueryTimeout
public int getQueryTimeout()Get timeout limit from the call -
getGeneratedKeys
The result set that stores the generated keys from the Statement -
getResult
The result set is stored for the return value of cursor selects. -
getReturnsResultSet
public boolean getReturnsResultSet()ADVANCED: This method returns a value that represents if the customer has set whether or not EclipseLink should expect the stored procedure to returning a JDBC ResultSet. The result of the method corresponds to false, true. -
getResultSetConcurrency
public int getResultSetConcurrency() -
getResultSetFetchSize
public int getResultSetFetchSize() -
getResultSetType
public int getResultSetType() -
getSQLString
Return the SQL string that will be executed. -
getStatement
The statement is stored for the return value of cursor selects. -
hasOptimisticLock
public boolean hasOptimisticLock()This check is needed only when doing batch writing. -
isCallableStatementRequired
protected boolean isCallableStatementRequired()Callable statement is required if there is an output parameter. -
isDynamicCall
Return if the call is dynamic SQL call. This means the call has no parameters, is not using binding, is not a stored procedure (CallableStatement), or cursor. This means that a Statement, not a PreparedStatement will be used for the call. -
isCursorOutputProcedure
public boolean isCursorOutputProcedure()Used for Oracle result sets through procedures. -
isCursorReturned
public boolean isCursorReturned()The return type is one of, NoReturn, ReturnOneRow or ReturnManyRows.- Overrides:
isCursorReturnedin classDatasourceCall
-
isFieldMatchingRequired
public boolean isFieldMatchingRequired()Return if field matching is required. Field matching is required for custom SQL statements where the result set field order is not known. -
isFinished
public boolean isFinished()Return whether all the results of the call have been returned.- Specified by:
isFinishedin interfaceCall- Overrides:
isFinishedin classDatasourceCall
-
isMultipleCursorOutputProcedure
public boolean isMultipleCursorOutputProcedure()Used for Oracle result sets through procedures. -
isNonCursorOutputProcedure
public boolean isNonCursorOutputProcedure()Return true for procedures with any output (or in/out) parameters and no cursors -
isResultSetScrollable
public boolean isResultSetScrollable() -
matchFieldOrder
public void matchFieldOrder(ResultSet resultSet, DatabaseAccessor accessor, AbstractSession session) Allow for the field order to be matched if required. This is required for custom SQL. -
prepare
INTERNAL: Allow pre-printing of the SQL string for fully bound calls, to save from reprinting. Should be called before translation.- Overrides:
preparein classDatasourceCall
-
prepareInternal
INTERNAL: Called by prepare method only. May be overridden. -
prepareInternalParameters
INTERNAL: Called by prepareInternal method only. May be overridden. -
prepareStatement
public Statement prepareStatement(DatabaseAccessor accessor, AbstractRecord translationRow, AbstractSession session) throws SQLException INTERNAL: Prepare the JDBC statement, this may be parameterize or a call statement. If caching statements this must check for the pre-prepared statement and re-bind to it.- Throws:
SQLException
-
returnMultipleResultSetCollections
public boolean returnMultipleResultSetCollections()Return true if the multiple results 'lists' should be returned. -
setFields
The fields expected by the calls result set. -
setFirstResult
public void setFirstResult(int firstResult) The firstResult set on the result set -
setHasOptimisticLock
public void setHasOptimisticLock(boolean hasOptimisticLock) This check is needed only when doing batch writing and we hit on optimistic locking. -
setIgnoreFirstRowSetting
public void setIgnoreFirstRowSetting(boolean ignoreFirstRowSetting) INTERNAL: Sets the ignoreFirstRowSetting flag. If true, FirstResult option are assumed built into the SQL string and ignored if set in the call, and instead are added as query arguments. Default is false. -
setIgnoreMaxResultsSetting
public void setIgnoreMaxResultsSetting(boolean ignoreMaxResultsSetting) INTERNAL: Sets the ignoreMaxResultsSetting flag. If true, MaxRows option are assumed built into the SQL string and ignored if set in the call, and instead are added as query arguments. Default is false. -
setShouldReturnGeneratedKeys
public boolean setShouldReturnGeneratedKeys(boolean shouldReturnGeneratedKeys) Indicate that this call should setStatement.RETURN_GENERATED_KEYSwhen executingOnly set to true if
DatasourcePlatform.supportsReturnGeneratedKeys() -
setIsCallableStatementRequired
protected void setIsCallableStatementRequired(boolean isCallableStatementRequired) Callable statement is required if there is an output parameter. -
setIsCursorOutputProcedure
public void setIsCursorOutputProcedure(boolean isCursorOutputProcedure) Used for Oracle result sets through procedures. -
setIsFieldMatchingRequired
public void setIsFieldMatchingRequired(boolean isFieldMatchingRequired) Field matching is required for custom SQL statements where the result set field order is not known. -
setIsMultipleCursorOutputProcedure
public void setIsMultipleCursorOutputProcedure(boolean isMultipleCursorOutputProcedure) Used for Oracle result sets through procedures. -
setIsResultSetScrollable
public void setIsResultSetScrollable(boolean isResultSetScrollable) -
setMaxRows
public void setMaxRows(int maxRows) set query max returned row size to the JDBC Statement -
setQueryString
INTERNAL: Set the query string (SQL) of the call.- Overrides:
setQueryStringin classDatasourceCall
-
setQueryTimeout
public void setQueryTimeout(int queryTimeout) set query timeout limit to the JDBC Statement -
setQueryTimeoutUnit
set query timeout limit unit to the JDBC Statement -
setGeneratedKeys
The result set that stores the generated keys from the Statement -
setResult
The result set is stored for the return value of cursor selects. -
setResultSetConcurrency
public void setResultSetConcurrency(int resultSetConcurrency) -
setSQLStringInternal
INTERNAL: Set the SQL string. -
setResultSetFetchSize
public void setResultSetFetchSize(int resultSetFetchSize) -
setResultSetType
public void setResultSetType(int resultSetType) -
setReturnsResultSet
public void setReturnsResultSet(boolean returnsResultSet) PUBLIC: Use this method to tell EclipseLink that the stored procedure will be returning a JDBC ResultSet -
setReturnMultipleResultSetCollections
public void setReturnMultipleResultSetCollections(boolean returnMultipleResultSetCollections) Set if the call returns multiple result sets. -
setShouldBuildOutputRow
protected void setShouldBuildOutputRow(boolean shouldBuildOutputRow) INTERNAL: Set whether the call has to build output row -
setShouldCacheStatement
public void setShouldCacheStatement(boolean shouldCacheStatement) Bound calls can use prepared statement caching. -
setStatement
The statement is stored for the return value of cursor selects. -
shouldBuildOutputRow
public boolean shouldBuildOutputRow()Set whether the call has to build output row -
shouldCacheStatement
Bound calls can use prepared statement caching. -
shouldCacheStatement
Bound calls can use prepared statement caching. -
shouldIgnoreFirstRowSetting
public boolean shouldIgnoreFirstRowSetting()INTERNAL: Returns the ignoreFirstRowSetting flag. If true, FirstResult option is assumed built into the SQL string and ignored if set in the call. -
shouldIgnoreMaxResultsSetting
public boolean shouldIgnoreMaxResultsSetting()INTERNAL: Returns the ignoreMaxResultsSetting flag. If true, MaxRows option is assumed built into the SQL string and ignored if set in the call. -
shouldReturnGeneratedKeys
public boolean shouldReturnGeneratedKeys()Indicate that this call should setStatement.RETURN_GENERATED_KEYSwhen executing -
toString
INTERNAL: Print the SQL string. -
translate
public void translate(AbstractRecord translationRow, AbstractRecord modifyRow, AbstractSession session) INTERNAL: Allow the call to translate from the translation for predefined calls.- Overrides:
translatein classDatasourceCall
-
isLOBLocatorNeeded
public boolean isLOBLocatorNeeded()INTERNAL: Return if the locator is required for the LOB (BLOB and CLOB) writing. -
addContext
INTERNAL: Add a field - value pair for LOB field into the context. -
getContexts
INTERNAL: Return the contexts (for LOB) -
setContexts
INTERNAL: Set the contexts (for LOB) -
setExecuteReturnValue
public void setExecuteReturnValue(boolean value) An execute return value will be set here after the call. -
useUnnamedCursorOutputAsResultSet
public void useUnnamedCursorOutputAsResultSet()PUBLIC: Used for Oracle result sets through procedures. The first OUT parameter is set as a cursor output. -
isBatchExecutionSupported
public boolean isBatchExecutionSupported()INTERNAL: Return if this query is compatible with batch writing. Some queries, such as DDL are not compatible. -
setBatchExecutionSupported
public void setBatchExecutionSupported(boolean isBatchExecutionSupported) INTERNAL: Set if this query is compatible with batch writing. Some queries, such as DDL are not compatible. -
hasAllocatedConnection
public boolean hasAllocatedConnection()INTERNAL: -
setHasAllocatedConnection
public void setHasAllocatedConnection(boolean hasAllocatedConnection) INTERNAL: -
getOutputParameterValue
public Object getOutputParameterValue(CallableStatement statement, int index, AbstractSession session) throws SQLException INTERNAL: Get the return object from the statement. Use the parameter index to determine what return object to get.- Parameters:
statement- SQL/JDBC statement to call stored procedure/functionindex- 0-based index in the argument listsession- Active database session (in connected state).- Throws:
SQLException
-
getOutputParameterValue
public Object getOutputParameterValue(CallableStatement statement, String name, AbstractSession session) throws SQLException INTERNAL: Get the return object from the statement. Use the parameter name to determine what return object to get.- Parameters:
statement- SQL/JDBC statement to call stored procedure/functionname- parameter namesession- Active database session (in connected state).- Throws:
SQLException
-