public interface ProcedureParameterExtractionAware<T> extends Type
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,
SessionImplementor session)
Perform the extraction
|
T |
extract(CallableStatement statement,
String[] paramNames,
SessionImplementor session)
Perform the extraction
|
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, semiResolve, setToXMLNode, sqlTypes, toColumnNullness, toLoggableStringboolean canDoExtraction()
true indicates that @{link #extract} calls will not fail due to IllegalStateException.T extract(CallableStatement statement, int startIndex, SessionImplementor 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, SessionImplementor 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-2015 Red Hat, Inc. All Rights Reserved.