Class CustomEntityTuplizer
java.lang.Object
org.hibernate.tuple.entity.AbstractEntityTuplizer
org.hibernate.tuple.entity.PojoEntityTuplizer
ch.tocco.nice2.persist.core.impl.hibernate.CustomEntityTuplizer
- All Implemented Interfaces:
org.hibernate.tuple.entity.EntityTuplizer
,org.hibernate.tuple.Tuplizer
public class CustomEntityTuplizer
extends org.hibernate.tuple.entity.PojoEntityTuplizer
A custom
EntityTuplizer
which initializes its ProxyFactory
on demand,
which leads to faster startup time and less memory usage because only the proxies which are
really needed are initialized.-
Field Summary
Fields inherited from class org.hibernate.tuple.entity.AbstractEntityTuplizer
getters, hasCustomAccessors, propertySpan, setters
-
Constructor Summary
ConstructorDescriptionCustomEntityTuplizer
(org.hibernate.tuple.entity.EntityMetamodel entityMetamodel, org.hibernate.mapping.PersistentClass mappedEntity) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.hibernate.proxy.ProxyFactory
buildProxyFactory
(org.hibernate.mapping.PersistentClass persistentClass, org.hibernate.property.access.spi.Getter idGetter, org.hibernate.property.access.spi.Setter idSetter) protected org.hibernate.proxy.ProxyFactory
buildProxyFactoryInternal
(org.hibernate.mapping.PersistentClass persistentClass, org.hibernate.property.access.spi.Getter idGetter, org.hibernate.property.access.spi.Setter idSetter) void
void
setBytecodeProvider
(org.hibernate.bytecode.spi.BytecodeProvider bytecodeProvider) void
setContext
(Context context) void
setDataModel
(DataModel dataModel) Methods inherited from class org.hibernate.tuple.entity.PojoEntityTuplizer
afterInitialize, buildInstantiator, buildPropertyGetter, buildPropertySetter, determineConcreteSubclassEntityName, getConcreteProxyClass, getEntityMode, getEntityNameResolvers, getMappedClass, getPropertyValues, getPropertyValuesToInsert, getPropertyValuesWithOptimizer, isLifecycleImplementor, setPropertyValues, setPropertyValuesWithOptimizer
Methods inherited from class org.hibernate.tuple.entity.AbstractEntityTuplizer
createProxy, getComponentValue, getEntityMetamodel, getEntityName, getFactory, getGetter, getIdentifier, getIdentifier, getIdentifierGetter, getIdentifierMapperType, getInstantiator, getPropertyValue, getPropertyValue, getProxyFactory, getSubclassEntityNames, getVersion, getVersionGetter, hasProxy, instantiate, instantiate, instantiate, isInstance, linkToSession, resetIdentifier, resetIdentifier, setIdentifier, setIdentifier, setPropertyValue, setPropertyValue, shouldGetAllProperties, toString
-
Constructor Details
-
CustomEntityTuplizer
public CustomEntityTuplizer(org.hibernate.tuple.entity.EntityMetamodel entityMetamodel, org.hibernate.mapping.PersistentClass mappedEntity)
-
-
Method Details
-
setBytecodeProvider
public void setBytecodeProvider(org.hibernate.bytecode.spi.BytecodeProvider bytecodeProvider) -
setDataModel
-
setContext
-
buildProxyFactory
protected org.hibernate.proxy.ProxyFactory buildProxyFactory(org.hibernate.mapping.PersistentClass persistentClass, org.hibernate.property.access.spi.Getter idGetter, org.hibernate.property.access.spi.Setter idSetter) - Overrides:
buildProxyFactory
in classorg.hibernate.tuple.entity.PojoEntityTuplizer
-
buildProxyFactoryInternal
protected org.hibernate.proxy.ProxyFactory buildProxyFactoryInternal(org.hibernate.mapping.PersistentClass persistentClass, org.hibernate.property.access.spi.Getter idGetter, org.hibernate.property.access.spi.Setter idSetter) - Overrides:
buildProxyFactoryInternal
in classorg.hibernate.tuple.entity.PojoEntityTuplizer
-
initProxyFactory
public void initProxyFactory()
-