Package org.hibernate.type
Interface ProcedureParameterNamedBinder<J>
- All Known Implementing Classes:
AbstractSingleColumnStandardBasicType,AbstractStandardBasicType,BasicArrayType,BasicCollectionType,BasicTypeImpl,BottomType,ConvertedBasicArrayType,ConvertedBasicCollectionType,ConvertedBasicTypeImpl,CustomMutabilityConvertedBasicTypeImpl,CustomMutabilityConvertedPrimitiveBasicTypeImpl,CustomType,DiscriminatorTypeImpl,ImmutableNamedBasicTypeImpl,JavaObjectType,NamedBasicTypeImpl,NullType,QueryParameterJavaObjectType,SerializableToBlobType,SerializableType,StandardBasicTypeTemplate
public interfaceProcedureParameterNamedBinder<J>OptionalTypecontract for implementations enabled to set store procedure OUT/INOUT parameters values by name.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanDoSetting()Can the given instance of this type actually set the parameter value by namevoidnullSafeSet(CallableStatement statement,J value,String name,SharedSessionContractImplementor session)Bind a value to the JDBC prepared statement, ignoring some columns as dictated by the 'settable' parameter.
Method Detail
canDoSetting
boolean canDoSetting()
Can the given instance of this type actually set the parameter value by name- Returns:
trueindicates that @{link #nullSafeSet} calls will not fail
nullSafeSet
void nullSafeSet(CallableStatement statement,J value,String name,SharedSessionContractImplementor session) throwsSQLException
Bind a value to the JDBC prepared statement, ignoring some columns as dictated by the 'settable' parameter. Implementors should handle the possibility of null values. Does not support multi-column type- Parameters:
statement- The CallableStatement to which to bindvalue- the object to writename- parameter bind namesession- The originating session- Throws:
HibernateException- An error from HibernateSQLException- An error from the JDBC driver