Package org.hibernate.type
Class AbstractSingleColumnStandardBasicType<T>
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<T>
-
- All Implemented Interfaces:
java.io.Serializable
,BasicType
,ProcedureParameterExtractionAware<T>
,ProcedureParameterNamedBinder
,SingleColumnType<T>
,StringRepresentableType<T>
,Type
- Direct Known Subclasses:
AdaptedImmutableType
,AttributeConverterTypeAdapter
,BigDecimalType
,BigIntegerType
,BinaryType
,BlobType
,BooleanType
,ByteType
,CalendarDateType
,CalendarTimeType
,CalendarType
,CharacterArrayClobType
,CharacterArrayNClobType
,CharacterArrayType
,CharacterNCharType
,CharacterType
,CharArrayType
,ClassType
,ClobType
,CurrencyType
,DateType
,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 abstract class AbstractSingleColumnStandardBasicType<T> extends AbstractStandardBasicType<T> implements SingleColumnType<T>
TODO : javadoc- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractSingleColumnStandardBasicType(SqlTypeDescriptor sqlTypeDescriptor, JavaTypeDescriptor<T> javaTypeDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index, boolean[] settable, SharedSessionContractImplementor session)
Bind a value represented by an instance of themapped class
to the JDBC prepared statement, ignoring some columns as dictated by the 'settable' parameter.int
sqlType()
-
Methods inherited from class org.hibernate.type.AbstractStandardBasicType
assemble, beforeAssemble, canDoExtraction, canDoSetting, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, extract, extract, fromString, fromStringValue, get, getColumnSpan, getDefaultSize, getDictatedSize, getHashCode, getHashCode, getJavaTypeDescriptor, getMutabilityPlan, getRegistrationKeys, getReplacement, getReturnedClass, getSemiResolvedType, getSqlTypeDescriptor, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeSet, registerUnderJavaType, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setJavaTypeDescriptor, setSqlTypeDescriptor, sqlTypes, toColumnNullness, toLoggableString, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.SingleColumnType
fromStringValue, get, nullSafeGet, set, toString
-
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, replace, replace, resolve, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
-
-
-
-
Constructor Detail
-
AbstractSingleColumnStandardBasicType
public AbstractSingleColumnStandardBasicType(SqlTypeDescriptor sqlTypeDescriptor, JavaTypeDescriptor<T> javaTypeDescriptor)
-
-
Method Detail
-
sqlType
public final int sqlType()
- Specified by:
sqlType
in interfaceSingleColumnType<T>
-
nullSafeSet
public final void nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index, boolean[] settable, SharedSessionContractImplementor session) throws HibernateException, java.sql.SQLException
Description copied from interface:Type
Bind a value represented by an instance of themapped class
to the JDBC prepared statement, ignoring some columns as dictated by the 'settable' parameter. Implementors should handle the possibility of null values. A multi-column type should bind parameters starting from index.- Specified by:
nullSafeSet
in interfaceType
- Parameters:
st
- The JDBC prepared statement to which to bindvalue
- the object to writeindex
- starting parameter bind indexsettable
- an array indicating which columns to bind/ignoresession
- The originating session- Throws:
HibernateException
- An error from Hibernatejava.sql.SQLException
- An error from the JDBC driver
-
-