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(java.sql.CallableStatement statement,
int startIndex,
SharedSessionContractImplementor session)
Perform the extraction
|
T |
extract(java.sql.CallableStatement statement,
java.lang.String[] paramNames,
SharedSessionContractImplementor session)
Perform the extraction
|
boolean canDoExtraction()
true indicates that @{link #extract} calls will not fail due to IllegalStateException.T extract(java.sql.CallableStatement statement, int startIndex, SharedSessionContractImplementor session) throws java.sql.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 sessionjava.sql.SQLException - Indicates an issue calling into the CallableStatementjava.lang.IllegalStateException - Thrown if this method is called on instances that return false for canDoExtraction()T extract(java.sql.CallableStatement statement, java.lang.String[] paramNames, SharedSessionContractImplementor session) throws java.sql.SQLException
statement - The CallableStatement from which to extract the parameter value(s).paramNames - The parameter names.session - The originating sessionjava.sql.SQLException - Indicates an issue calling into the CallableStatementjava.lang.IllegalStateException - Thrown if this method is called on instances that return false for canDoExtraction()Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.