Class IntervalDescriptor

  • All Implemented Interfaces:
    java.io.Serializable, org.hibernate.type.descriptor.java.BasicJavaDescriptor<org.postgresql.util.PGInterval>, org.hibernate.type.descriptor.java.JavaTypeDescriptor<org.postgresql.util.PGInterval>, org.hibernate.type.descriptor.sql.SqlTypeDescriptor

    public class IntervalDescriptor
    extends org.hibernate.type.descriptor.java.AbstractTypeDescriptor<org.postgresql.util.PGInterval>
    implements org.hibernate.type.descriptor.sql.SqlTypeDescriptor
    The JavaTypeDescriptor and SqlTypeDescriptor for PGInterval.
    See Also:
    JPA 2.1 AttributeConverters, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String COLUMN_NAME  
      static int COLUMN_TYPE  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canBeRemapped()  
      org.postgresql.util.PGInterval fromString​(java.lang.String string)  
      <X> org.hibernate.type.descriptor.ValueBinder<X> getBinder​(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)  
      <X> org.hibernate.type.descriptor.ValueExtractor<X> getExtractor​(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)  
      static IntervalDescriptor getInstance()  
      org.hibernate.type.descriptor.sql.SqlTypeDescriptor getJdbcRecommendedSqlType​(org.hibernate.type.descriptor.spi.JdbcRecommendedSqlTypeMappingContext context)  
      int getSqlType()  
      <X> X unwrap​(org.postgresql.util.PGInterval value, java.lang.Class<X> type, org.hibernate.type.descriptor.WrapperOptions options)  
      <X> org.postgresql.util.PGInterval wrap​(X value, org.hibernate.type.descriptor.WrapperOptions options)  
      • Methods inherited from class org.hibernate.type.descriptor.java.AbstractTypeDescriptor

        areEqual, extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap
      • 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.descriptor.java.JavaTypeDescriptor

        toString
      • Methods inherited from interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor

        getJdbcRecommendedJavaTypeMapping
    • Method Detail

      • fromString

        public org.postgresql.util.PGInterval fromString​(java.lang.String string)
        Specified by:
        fromString in interface org.hibernate.type.descriptor.java.JavaTypeDescriptor<org.postgresql.util.PGInterval>
      • unwrap

        public <X> X unwrap​(org.postgresql.util.PGInterval value,
                            java.lang.Class<X> type,
                            org.hibernate.type.descriptor.WrapperOptions options)
        Specified by:
        unwrap in interface org.hibernate.type.descriptor.java.JavaTypeDescriptor<org.postgresql.util.PGInterval>
      • wrap

        public <X> org.postgresql.util.PGInterval wrap​(X value,
                                                       org.hibernate.type.descriptor.WrapperOptions options)
        Specified by:
        wrap in interface org.hibernate.type.descriptor.java.JavaTypeDescriptor<org.postgresql.util.PGInterval>
      • getSqlType

        public int getSqlType()
        Specified by:
        getSqlType in interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor
      • getJdbcRecommendedSqlType

        public org.hibernate.type.descriptor.sql.SqlTypeDescriptor getJdbcRecommendedSqlType​(org.hibernate.type.descriptor.spi.JdbcRecommendedSqlTypeMappingContext context)
        Specified by:
        getJdbcRecommendedSqlType in interface org.hibernate.type.descriptor.java.BasicJavaDescriptor<org.postgresql.util.PGInterval>
      • canBeRemapped

        public boolean canBeRemapped()
        Specified by:
        canBeRemapped in interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor
      • getBinder

        public <X> org.hibernate.type.descriptor.ValueBinder<X> getBinder​(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)
        Specified by:
        getBinder in interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor
      • getExtractor

        public <X> org.hibernate.type.descriptor.ValueExtractor<X> getExtractor​(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)
        Specified by:
        getExtractor in interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor