Package org.hibernate.type
Interface IdentifierType<T>
-
- All Superinterfaces:
java.io.Serializable
,Type
- All Known Subinterfaces:
DiscriminatorType<T>
- All Known Implementing Classes:
BigIntegerType
,BooleanType
,ByteType
,CharacterNCharType
,CharacterType
,CustomType
,DateType
,IntegerType
,LongType
,NumericBooleanType
,ShortType
,StringNVarcharType
,StringType
,TrueFalseType
,UrlType
,YesNoType
public interface IdentifierType<T> extends Type
Additional contract for aType
may be used for a discriminator. THis contract is used to process the string representation as presented in metadata, especially in XML files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
stringToObject(java.lang.String xml)
Convert the value from the mapping file to a Java object.-
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, nullSafeSet, replace, replace, resolve, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
-
-
-
-
Method Detail
-
stringToObject
T stringToObject(java.lang.String xml) throws java.lang.Exception
Convert the value from the mapping file to a Java object.- Parameters:
xml
- the value of discriminator-value or unsaved-value attribute- Returns:
- The converted value of the string representation.
- Throws:
java.lang.Exception
- Indicates a problem converting from the string
-
-