Class CompressedTextUserType
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.usertype.ImmutableUserType<String>
ch.tocco.nice2.persist.core.impl.hibernate.usertype.CompressedTextUserType
- All Implemented Interfaces:
org.hibernate.usertype.UserType
A user type that compresses string data using Zstd before
writing it to the database.
Note: Since the data is stored compressed the field cannot be used in query conditions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable String
get
(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) protected void
set
(PreparedStatement st, String value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) int[]
sqlTypes()
Methods inherited from class ch.tocco.nice2.persist.core.api.hibernate.usertype.ImmutableUserType
assemble, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, returnedClass
-
Constructor Details
-
CompressedTextUserType
-
-
Method Details
-
sqlTypes
public int[] sqlTypes()