public class PersistentQuantity<Q extends javax.measure.Quantity<Q>> extends AbstractParameterizedUserType<Q,String,StringColumnQuantityMapper<Q>> implements ValidTypesConfigured<javax.measure.Unit<?>>
Constructor and Description |
---|
PersistentQuantity() |
Modifier and Type | Method and Description |
---|---|
void |
applyConfiguration(org.hibernate.SessionFactory sessionFactory)
Apply configuration for the given type
|
List<Class<javax.measure.Unit<?>>> |
getValidTypes() |
void |
setValidTypes(List<Class<javax.measure.Unit<?>>> types) |
doWrapSession, getParameterValues, setParameterValues
doNullSafeGet, doNullSafeSet, fromXMLString, getColumnMapper, nullSafeGet, nullSafeSet, objectToSQLString, returnedClass, sqlTypes, toXMLString
afterNullSafeOperation, assemble, beforeNullSafeOperation, deepCopy, disassemble, equals, hashCode, isMutable, replace
public PersistentQuantity()
public void applyConfiguration(org.hibernate.SessionFactory sessionFactory)
IntegratorConfiguredType
applyConfiguration
in interface IntegratorConfiguredType
applyConfiguration
in class AbstractParameterizedUserType<Q extends javax.measure.Quantity<Q>,String,StringColumnQuantityMapper<Q extends javax.measure.Quantity<Q>>>
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<?>>
Copyright © 2010–2018 Jadira Systems. All rights reserved.