Class URIType

  • All Implemented Interfaces:
    Serializable, org.hibernate.type.BasicType, org.hibernate.type.DiscriminatorType<URI>, org.hibernate.type.IdentifierType<URI>, org.hibernate.type.LiteralType<URI>, org.hibernate.type.ProcedureParameterExtractionAware<URI>, org.hibernate.type.ProcedureParameterNamedBinder, org.hibernate.type.SingleColumnType<URI>, org.hibernate.type.StringRepresentableType<URI>, org.hibernate.type.Type

    public class URIType
    extends org.hibernate.type.AbstractSingleColumnStandardBasicType<URI>
    implements org.hibernate.type.DiscriminatorType<URI>
    A type that maps between VARCHAR and URI
    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
      String getName()  
      String objectToSQLString​(URI value, org.hibernate.dialect.Dialect dialect)  
      protected boolean registerUnderJavaType()  
      URI stringToObject​(String xml)  
      String toString​(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 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
    • Constructor Detail

      • URIType

        public URIType()
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.hibernate.type.Type
      • registerUnderJavaType

        protected boolean registerUnderJavaType()
        Overrides:
        registerUnderJavaType in class org.hibernate.type.AbstractStandardBasicType<URI>
      • toString

        public String toString​(URI value)
        Specified by:
        toString in interface org.hibernate.type.SingleColumnType<URI>
        Specified by:
        toString in interface org.hibernate.type.StringRepresentableType<URI>
        Overrides:
        toString in class org.hibernate.type.AbstractStandardBasicType<URI>
      • objectToSQLString

        public String objectToSQLString​(URI value,
                                        org.hibernate.dialect.Dialect dialect)
                                 throws Exception
        Specified by:
        objectToSQLString in interface org.hibernate.type.LiteralType<URI>
        Throws:
        Exception
      • stringToObject

        public URI stringToObject​(String xml)
        Specified by:
        stringToObject in interface org.hibernate.type.IdentifierType<URI>