Class JSONBUserType
java.lang.Object
org.kiwiproject.hibernate.usertype.JSONBUserType
- All Implemented Interfaces:
org.hibernate.usertype.UserType<String>
A Hibernate user-defined type that maps to/from Postgres
jsonb columns.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble(Serializable cached, Object owner) disassemble(String value) booleanintintbooleannullSafeGet(ResultSet rs, int position, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) voidnullSafeSet(PreparedStatement st, String value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.usertype.UserType
getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getJdbcType, getValueConverter
-
Constructor Details
-
JSONBUserType
public JSONBUserType()
-
-
Method Details
-
getSqlType
public int getSqlType()- Specified by:
getSqlTypein interfaceorg.hibernate.usertype.UserType<String>
-
returnedClass
- Specified by:
returnedClassin interfaceorg.hibernate.usertype.UserType<String>
-
equals
- Specified by:
equalsin interfaceorg.hibernate.usertype.UserType<String>- Throws:
org.hibernate.HibernateException
-
hashCode
- Specified by:
hashCodein interfaceorg.hibernate.usertype.UserType<String>- Throws:
org.hibernate.HibernateException
-
deepCopy
- Specified by:
deepCopyin interfaceorg.hibernate.usertype.UserType<String>- Throws:
org.hibernate.HibernateException
-
isMutable
public boolean isMutable()- Specified by:
isMutablein interfaceorg.hibernate.usertype.UserType<String>
-
disassemble
- Specified by:
disassemblein interfaceorg.hibernate.usertype.UserType<String>- Throws:
org.hibernate.HibernateException
-
assemble
- Specified by:
assemblein interfaceorg.hibernate.usertype.UserType<String>- Throws:
org.hibernate.HibernateException
-
replace
public String replace(String original, String target, Object owner) throws org.hibernate.HibernateException - Specified by:
replacein interfaceorg.hibernate.usertype.UserType<String>- Throws:
org.hibernate.HibernateException
-