public class PersistentQuantityAndUnit extends AbstractParameterizedMultiColumnUserType<javax.measure.Quantity<?>> implements ValidTypesConfigured<javax.measure.Unit<?>>
Constructor and Description |
---|
PersistentQuantityAndUnit() |
Modifier and Type | Method and Description |
---|---|
void |
applyConfiguration(org.hibernate.SessionFactory sessionFactory)
Apply configuration for the given type
|
protected javax.measure.Quantity<?> |
fromConvertedColumns(Object[] convertedColumns) |
protected ColumnMapper<?,?>[] |
getColumnMappers() |
String[] |
getPropertyNames() |
List<Class<javax.measure.Unit<?>>> |
getValidTypes() |
void |
setValidTypes(List<Class<javax.measure.Unit<?>>> types) |
protected Object[] |
toConvertedColumns(javax.measure.Quantity<?> value) |
doWrapSession, getParameterValues, setParameterValues
assemble, disassemble, getPropertyTypes, getPropertyValue, initialise, nullSafeGet, nullSafeSet, replace, returnedClass, setPropertyValue, sqlTypes
afterNullSafeOperation, assemble, beforeNullSafeOperation, deepCopy, disassemble, equals, hashCode, isMutable, replace
public PersistentQuantityAndUnit()
public void applyConfiguration(org.hibernate.SessionFactory sessionFactory)
IntegratorConfiguredType
applyConfiguration
in interface IntegratorConfiguredType
applyConfiguration
in class AbstractParameterizedMultiColumnUserType<javax.measure.Quantity<?>>
sessionFactory
- The currently active session factorypublic void setValidTypes(List<Class<javax.measure.Unit<?>>> types)
setValidTypes
in interface ValidTypesConfigured<javax.measure.Unit<?>>
public List<Class<javax.measure.Unit<?>>> getValidTypes()
getValidTypes
in interface ValidTypesConfigured<javax.measure.Unit<?>>
protected javax.measure.Quantity<?> fromConvertedColumns(Object[] convertedColumns)
fromConvertedColumns
in class AbstractMultiColumnUserType<javax.measure.Quantity<?>>
protected Object[] toConvertedColumns(javax.measure.Quantity<?> value)
toConvertedColumns
in class AbstractMultiColumnUserType<javax.measure.Quantity<?>>
protected ColumnMapper<?,?>[] getColumnMappers()
getColumnMappers
in class AbstractMultiColumnUserType<javax.measure.Quantity<?>>
public String[] getPropertyNames()
getPropertyNames
in interface org.hibernate.usertype.CompositeUserType
getPropertyNames
in class AbstractMultiColumnUserType<javax.measure.Quantity<?>>
Copyright © 2010–2018 Jadira Systems. All rights reserved.