Class BinaryJavaType
java.lang.Object
org.hibernate.type.descriptor.java.AbstractClassJavaType<Binary>
ch.tocco.nice2.persist.core.impl.hibernate.javatype.BinaryJavaType
- All Implemented Interfaces:
Serializable
,org.hibernate.type.descriptor.java.BasicJavaType<Binary>
,org.hibernate.type.descriptor.java.JavaType<Binary>
public class BinaryJavaType
extends org.hibernate.type.descriptor.java.AbstractClassJavaType<Binary>
A hibernate java type for
Binary
objects.
In the database the binary is represented by its hash (a reference to the _nice_binary table).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.type.descriptor.java.JavaType
org.hibernate.type.descriptor.java.JavaType.CoercionContext
-
Constructor Summary
ConstructorDescriptionBinaryJavaType
(BinaryAccessProvider binaryAccessProvider, BinaryHashingService binaryHashingService) -
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.type.descriptor.jdbc.JdbcType
getRecommendedJdbcType
(org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators indicators) <X> X
<X> Binary
wrap
(X value, org.hibernate.type.descriptor.WrapperOptions options) Methods inherited from class org.hibernate.type.descriptor.java.AbstractClassJavaType
areEqual, extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.type.descriptor.java.BasicJavaType
fromString
Methods inherited from interface org.hibernate.type.descriptor.java.JavaType
appendEncodedString, coerce, createJavaType, createJavaType, fromEncodedString, getCheckCondition, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultValue, getLongSqlLength, getReplacement, getTypeName, isInstance, isTemporalType, isWider, toString
-
Constructor Details
-
BinaryJavaType
public BinaryJavaType(BinaryAccessProvider binaryAccessProvider, BinaryHashingService binaryHashingService)
-
-
Method Details
-
getRecommendedJdbcType
public org.hibernate.type.descriptor.jdbc.JdbcType getRecommendedJdbcType(org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators indicators) -
unwrap
-
wrap
-