Class BinaryUserType
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.usertype.ImmutableUserType<Binary>
ch.tocco.nice2.persist.core.impl.hibernate.usertype.BinaryUserType
- All Implemented Interfaces:
org.hibernate.usertype.UserType
A hibernate
UserType
for Binary
objects.
In the database the binary is represented by its hash (a reference to the _nice_binary table).-
Constructor Summary
ConstructorDescriptionBinaryUserType
(BinaryAccessProvider binaryAccessProvider, BinaryHashingService binaryHashingService) -
Method Summary
Modifier and TypeMethodDescriptionprotected Binary
get
(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) protected void
set
(PreparedStatement st, Binary 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
-
BinaryUserType
public BinaryUserType(BinaryAccessProvider binaryAccessProvider, BinaryHashingService binaryHashingService)
-
-
Method Details
-
sqlTypes
public int[] sqlTypes()
-