public class PartialUserType
extends org.jadira.usertype.dateandtime.shared.spi.AbstractUserType
implements org.hibernate.usertype.UserType
Partial
via hibernate.
This is a preliminary implementation that fulfills the needs of CDM but does not fully store a Partial.
Only year, month and day is stored. Since 5.0 also hour and minute is supported.Modifier and Type | Field and Description |
---|---|
static PartialUserType |
INSTANCE |
Constructor and Description |
---|
PartialUserType() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deepCopy(java.lang.Object value) |
org.joda.time.Partial |
nullSafeGet(java.sql.ResultSet rs,
java.lang.String[] names,
org.hibernate.engine.spi.SessionImplementor session,
java.lang.Object owner) |
void |
nullSafeSet(java.sql.PreparedStatement preparedStatement,
java.lang.Object value,
int index,
org.hibernate.engine.spi.SessionImplementor session) |
static java.lang.String |
partialToString(org.joda.time.Partial p) |
java.lang.Class |
returnedClass() |
int[] |
sqlTypes() |
assemble, disassemble, equals, hashCode, isMutable, replace
public static final PartialUserType INSTANCE
public org.joda.time.Partial nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, org.hibernate.engine.spi.SessionImplementor session, java.lang.Object owner) throws org.hibernate.HibernateException, java.sql.SQLException
nullSafeGet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
java.sql.SQLException
public void nullSafeSet(java.sql.PreparedStatement preparedStatement, java.lang.Object value, int index, org.hibernate.engine.spi.SessionImplementor session) throws org.hibernate.HibernateException, java.sql.SQLException
nullSafeSet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
java.sql.SQLException
public static java.lang.String partialToString(org.joda.time.Partial p)
p
- public java.lang.Object deepCopy(java.lang.Object value) throws org.hibernate.HibernateException
deepCopy
in interface org.hibernate.usertype.UserType
deepCopy
in class org.jadira.usertype.dateandtime.shared.spi.AbstractUserType
org.hibernate.HibernateException
public int[] sqlTypes()
sqlTypes
in interface org.hibernate.usertype.UserType
public java.lang.Class returnedClass()
returnedClass
in interface org.hibernate.usertype.UserType
Copyright © 2007-2020 EDIT. All Rights Reserved.