Package nl.vpro.hibernate
Class URIType
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<java.net.URI>
-
- nl.vpro.hibernate.URIType
-
- All Implemented Interfaces:
java.io.Serializable,org.hibernate.type.BasicType,org.hibernate.type.DiscriminatorType<java.net.URI>,org.hibernate.type.IdentifierType<java.net.URI>,org.hibernate.type.LiteralType<java.net.URI>,org.hibernate.type.ProcedureParameterExtractionAware<java.net.URI>,org.hibernate.type.ProcedureParameterNamedBinder,org.hibernate.type.SingleColumnType<java.net.URI>,org.hibernate.type.StringRepresentableType<java.net.URI>,org.hibernate.type.Type
public class URIType extends org.hibernate.type.AbstractSingleColumnStandardBasicType<java.net.URI> implements org.hibernate.type.DiscriminatorType<java.net.URI>A type that maps betweenVARCHARandURI- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description URIType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()java.lang.StringobjectToSQLString(java.net.URI value, org.hibernate.dialect.Dialect dialect)protected booleanregisterUnderJavaType()java.net.URIstringToObject(java.lang.String xml)java.lang.StringtoString(java.net.URI value)-
Methods inherited from class org.hibernate.type.AbstractSingleColumnStandardBasicType
nullSafeSet, 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, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setJavaTypeDescriptor, setSqlTypeDescriptor, sqlTypes, toColumnNullness, toLoggableString
-
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
-
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, getColumnSpan, getHashCode, getHashCode, 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
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceorg.hibernate.type.Type
-
registerUnderJavaType
protected boolean registerUnderJavaType()
- Overrides:
registerUnderJavaTypein classorg.hibernate.type.AbstractStandardBasicType<java.net.URI>
-
toString
public java.lang.String toString(java.net.URI value)
- Specified by:
toStringin interfaceorg.hibernate.type.SingleColumnType<java.net.URI>- Specified by:
toStringin interfaceorg.hibernate.type.StringRepresentableType<java.net.URI>- Overrides:
toStringin classorg.hibernate.type.AbstractStandardBasicType<java.net.URI>
-
objectToSQLString
public java.lang.String objectToSQLString(java.net.URI value, org.hibernate.dialect.Dialect dialect) throws java.lang.Exception- Specified by:
objectToSQLStringin interfaceorg.hibernate.type.LiteralType<java.net.URI>- Throws:
java.lang.Exception
-
stringToObject
public java.net.URI stringToObject(java.lang.String xml)
- Specified by:
stringToObjectin interfaceorg.hibernate.type.IdentifierType<java.net.URI>
-
-