public class JsonUserType extends Object implements org.hibernate.usertype.UserType, org.hibernate.usertype.DynamicParameterizedType
| Constructor and Description |
|---|
JsonUserType() |
| Modifier and Type | Method and Description |
|---|---|
Object |
assemble(Serializable cached,
Object owner)
(optional operation)
|
com.fasterxml.jackson.databind.JavaType |
createJavaType(com.fasterxml.jackson.databind.ObjectMapper mapper)
By default we are expecting to use a simple object / not a collection (Set, List)
|
Object |
deepCopy(Object value) |
Serializable |
disassemble(Object value)
(optional operation)
|
boolean |
equals(Object x,
Object y) |
int |
hashCode(Object x) |
boolean |
isMutable() |
Object |
nullSafeGet(ResultSet rs,
String[] names,
org.hibernate.engine.spi.SessionImplementor session,
Object owner) |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
org.hibernate.engine.spi.SessionImplementor session) |
Object |
replace(Object original,
Object target,
Object owner)
Optionnal
|
Class<?> |
returnedClass() |
void |
setParameterValues(Properties parameters) |
int[] |
sqlTypes() |
public boolean equals(Object x, Object y) throws org.hibernate.HibernateException
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic int hashCode(Object x) throws org.hibernate.HibernateException
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic boolean isMutable()
isMutable in interface org.hibernate.usertype.UserTypepublic void nullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SessionImplementor session) throws org.hibernate.HibernateException, SQLException
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionSQLExceptionpublic Object nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SessionImplementor session, Object owner) throws org.hibernate.HibernateException, SQLException
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionSQLExceptionpublic Object deepCopy(Object value) throws org.hibernate.HibernateException
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic Serializable disassemble(Object value) throws org.hibernate.HibernateException
disassemble in interface org.hibernate.usertype.UserTypevalue - org.hibernate.HibernateExceptionpublic Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
assemble in interface org.hibernate.usertype.UserTypecached - owner - org.hibernate.HibernateExceptionpublic com.fasterxml.jackson.databind.JavaType createJavaType(com.fasterxml.jackson.databind.ObjectMapper mapper)
mapper - : instance jackson object mapperpublic int[] sqlTypes()
sqlTypes in interface org.hibernate.usertype.UserTypepublic void setParameterValues(Properties parameters)
setParameterValues in interface org.hibernate.usertype.ParameterizedTypepublic Class<?> returnedClass()
returnedClass in interface org.hibernate.usertype.UserTypeCopyright © 2016. All rights reserved.