Package org.hibernate.type
Interface ProcedureParameterNamedBinder
-
- All Known Implementing Classes:
AbstractSingleColumnStandardBasicType
,AbstractStandardBasicType
,AdaptedImmutableType
,AttributeConverterTypeAdapter
,BigDecimalType
,BigIntegerType
,BinaryType
,BlobType
,BooleanType
,ByteType
,CalendarDateType
,CalendarTimeType
,CalendarType
,CharacterArrayClobType
,CharacterArrayNClobType
,CharacterArrayType
,CharacterNCharType
,CharacterType
,CharArrayType
,ClassType
,ClobType
,CurrencyType
,CustomType
,DateType
,DbTimestampType
,DoubleType
,DurationType
,FloatType
,GeolatteGeometryType
,ImageType
,InstantType
,IntegerType
,JTSGeometryType
,LocalDateTimeType
,LocalDateType
,LocaleType
,LocalTimeType
,LongType
,MaterializedBlobType
,MaterializedClobType
,MaterializedNClobType
,NClobType
,NTextType
,NumericBooleanType
,OffsetDateTimeType
,OffsetTimeType
,PostgresUUIDType
,PrimitiveCharacterArrayClobType
,PrimitiveCharacterArrayNClobType
,RowVersionType
,SerializableToBlobType
,SerializableType
,ShortType
,StandardBasicTypeTemplate
,StringNVarcharType
,StringType
,TextType
,TimestampType
,TimeType
,TimeZoneType
,TrueFalseType
,UrlType
,UUIDBinaryType
,UUIDCharType
,WrappedMaterializedBlobType
,WrapperBinaryType
,YesNoType
,ZonedDateTimeType
public interface ProcedureParameterNamedBinder
OptionalType
contract 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 boolean
canDoSetting()
Can the given instance of this type actually set the parameter value by namevoid
nullSafeSet(java.sql.CallableStatement statement, java.lang.Object value, java.lang.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:
true
indicates that @{link #nullSafeSet} calls will not fail
-
nullSafeSet
void nullSafeSet(java.sql.CallableStatement statement, java.lang.Object value, java.lang.String name, SharedSessionContractImplementor session) throws java.sql.SQLException
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 Hibernatejava.sql.SQLException
- An error from the JDBC driver
-
-