public class PersistentJsonObjectAsString<T> extends AbstractKnownClassHeuristicUserType<T> implements org.hibernate.usertype.ParameterizedType
Constructor and Description |
---|
PersistentJsonObjectAsString() |
Modifier and Type | Method and Description |
---|---|
Object |
doNullSafeGet(ResultSet rs,
String[] names,
org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object owner) |
void |
doNullSafeSet(PreparedStatement preparedStatement,
Object value,
int index,
org.hibernate.engine.spi.SharedSessionContractImplementor session) |
protected com.fasterxml.jackson.databind.ObjectReader |
getObjectReader() |
protected com.fasterxml.jackson.databind.ObjectWriter |
getObjectWriter() |
String |
objectToSQLString(Object object) |
Class<T> |
returnedClass() |
protected void |
setMappedClass(Class<T> mappedClass) |
void |
setParameterValues(Properties parameters) |
String |
toXMLString(Object object) |
getMappedClass
fromXMLString, getIdentifierType, getType, nullSafeGet, nullSafeSet, setIdentifierType, sqlTypes
afterNullSafeOperation, assemble, beforeNullSafeOperation, deepCopy, disassemble, equals, hashCode, isMutable, replace
public PersistentJsonObjectAsString()
protected com.fasterxml.jackson.databind.ObjectReader getObjectReader()
protected com.fasterxml.jackson.databind.ObjectWriter getObjectWriter()
protected void setMappedClass(Class<T> mappedClass)
setMappedClass
in class AbstractKnownClassHeuristicUserType<T>
public void setParameterValues(Properties parameters)
setParameterValues
in interface org.hibernate.usertype.ParameterizedType
setParameterValues
in class AbstractKnownClassHeuristicUserType<T>
public Class<T> returnedClass()
returnedClass
in interface org.hibernate.usertype.UserType
returnedClass
in class AbstractKnownClassHeuristicUserType<T>
public Object doNullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws org.hibernate.HibernateException, SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
doNullSafeGet
in class AbstractHeuristicUserType
org.hibernate.HibernateException
SQLException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
public void doNullSafeSet(PreparedStatement preparedStatement, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
doNullSafeSet
in class AbstractHeuristicUserType
SQLException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
public String objectToSQLString(Object object)
objectToSQLString
in interface org.hibernate.usertype.EnhancedUserType
objectToSQLString
in class AbstractHeuristicUserType
public String toXMLString(Object object)
toXMLString
in interface org.hibernate.usertype.EnhancedUserType
toXMLString
in class AbstractHeuristicUserType
Copyright © 2010–2018 Jadira Systems. All rights reserved.