Class 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 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
      java.lang.String getName()  
      java.lang.String objectToSQLString​(java.net.URI value, org.hibernate.dialect.Dialect dialect)  
      protected boolean registerUnderJavaType()  
      java.net.URI stringToObject​(java.lang.String xml)  
      java.lang.String toString​(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
    • Constructor Detail

      • URIType

        public URIType()
    • Method Detail

      • getName

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

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

        public java.lang.String toString​(java.net.URI value)
        Specified by:
        toString in interface org.hibernate.type.SingleColumnType<java.net.URI>
        Specified by:
        toString in interface org.hibernate.type.StringRepresentableType<java.net.URI>
        Overrides:
        toString in class org.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:
        objectToSQLString in interface org.hibernate.type.LiteralType<java.net.URI>
        Throws:
        java.lang.Exception
      • stringToObject

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