Class AbstractScoreHibernateType
java.lang.Object
org.optaplanner.persistence.jpa.impl.score.AbstractScoreHibernateType
- All Implemented Interfaces:
org.hibernate.usertype.CompositeUserType
- Direct Known Subclasses:
BendableBigDecimalScoreHibernateType
,BendableLongScoreHibernateType
,BendableScoreHibernateType
,HardMediumSoftBigDecimalScoreHibernateType
,HardMediumSoftLongScoreHibernateType
,HardMediumSoftScoreHibernateType
,HardSoftBigDecimalScoreHibernateType
,HardSoftLongScoreHibernateType
,HardSoftScoreHibernateType
,SimpleBigDecimalScoreHibernateType
,SimpleLongScoreHibernateType
,SimpleScoreHibernateType
public abstract class AbstractScoreHibernateType
extends Object
implements org.hibernate.usertype.CompositeUserType
This class is Hibernate specific, because JPA 2.1's @Converter currently
cannot handle 1 class mapping to multiple SQL columns.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ScoreDefinition
protected org.hibernate.type.AbstractSingleColumnStandardBasicType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassemble
(Serializable cached, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) disassemble
(Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session) boolean
protected int
extractIntParameter
(Properties parameterMap, String parameterName) String[]
org.hibernate.type.Type[]
getPropertyValue
(Object o, int propertyIndex) int
boolean
nullSafeGet
(ResultSet resultSet, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) void
nullSafeSet
(PreparedStatement statement, Object value, int parameterIndex, org.hibernate.engine.spi.SharedSessionContractImplementor session) replace
(Object original, Object target, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) void
setPropertyValue
(Object component, int property, Object value)
-
Field Details
-
scoreDefinition
-
type
protected org.hibernate.type.AbstractSingleColumnStandardBasicType type
-
-
Constructor Details
-
AbstractScoreHibernateType
public AbstractScoreHibernateType()
-
-
Method Details
-
extractIntParameter
-
returnedClass
- Specified by:
returnedClass
in interfaceorg.hibernate.usertype.CompositeUserType
-
getPropertyNames
- Specified by:
getPropertyNames
in interfaceorg.hibernate.usertype.CompositeUserType
-
getPropertyTypes
public org.hibernate.type.Type[] getPropertyTypes()- Specified by:
getPropertyTypes
in interfaceorg.hibernate.usertype.CompositeUserType
-
getPropertyValue
- Specified by:
getPropertyValue
in interfaceorg.hibernate.usertype.CompositeUserType
-
isMutable
public boolean isMutable()- Specified by:
isMutable
in interfaceorg.hibernate.usertype.CompositeUserType
-
deepCopy
- Specified by:
deepCopy
in interfaceorg.hibernate.usertype.CompositeUserType
-
setPropertyValue
- Specified by:
setPropertyValue
in interfaceorg.hibernate.usertype.CompositeUserType
-
equals
- Specified by:
equals
in interfaceorg.hibernate.usertype.CompositeUserType
-
hashCode
- Specified by:
hashCode
in interfaceorg.hibernate.usertype.CompositeUserType
-