public interface ProcedureParameterExtractionAware<T>
Type contract for implementations that are aware of how to extract values from
store procedure OUT/INOUT parameters.| Modifier and Type | Method and Description |
|---|---|
boolean |
canDoExtraction()
Can the given instance of this type actually perform the parameter value extractions?
|
T |
extract(CallableStatement statement,
int startIndex,
SharedSessionContractImplementor session)
Perform the extraction
|
T |
extract(CallableStatement statement,
String[] paramNames,
SharedSessionContractImplementor session)
Perform the extraction
|
boolean canDoExtraction()
true indicates that @{link #extract} calls will not fail due to IllegalStateException.T extract(CallableStatement statement, int startIndex, SharedSessionContractImplementor session) throws SQLException
statement - The CallableStatement from which to extract the parameter value(s).startIndex - The parameter index from which to start extracting; assumes the values (if multiple) are contiguoussession - The originating sessionSQLException - Indicates an issue calling into the CallableStatementIllegalStateException - Thrown if this method is called on instances that return false for canDoExtraction()T extract(CallableStatement statement, String[] paramNames, SharedSessionContractImplementor session) throws SQLException
statement - The CallableStatement from which to extract the parameter value(s).paramNames - The parameter names.session - The originating sessionSQLException - Indicates an issue calling into the CallableStatementIllegalStateException - Thrown if this method is called on instances that return false for canDoExtraction()Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.