Class IntervalDescriptor
- java.lang.Object
-
- org.hibernate.type.descriptor.java.AbstractTypeDescriptor<org.postgresql.util.PGInterval>
-
- google.registry.persistence.converter.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
TheJavaTypeDescriptor
andSqlTypeDescriptor
forPGInterval
.- 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
-
-
-
-
Field Detail
-
COLUMN_TYPE
public static final int COLUMN_TYPE
- See Also:
- Constant Field Values
-
COLUMN_NAME
public static final java.lang.String COLUMN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static IntervalDescriptor getInstance()
-
fromString
public org.postgresql.util.PGInterval fromString(java.lang.String string)
- Specified by:
fromString
in interfaceorg.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 interfaceorg.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 interfaceorg.hibernate.type.descriptor.java.JavaTypeDescriptor<org.postgresql.util.PGInterval>
-
getSqlType
public int getSqlType()
- Specified by:
getSqlType
in interfaceorg.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 interfaceorg.hibernate.type.descriptor.java.BasicJavaDescriptor<org.postgresql.util.PGInterval>
-
canBeRemapped
public boolean canBeRemapped()
- Specified by:
canBeRemapped
in interfaceorg.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 interfaceorg.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 interfaceorg.hibernate.type.descriptor.sql.SqlTypeDescriptor
-
-