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

    Constructors
    Constructor
    Description
    CustomEntityTuplizer(org.hibernate.tuple.entity.EntityMetamodel entityMetamodel, org.hibernate.mapping.PersistentClass mappedEntity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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
     
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

      public void setDataModel(DataModel dataModel)
    • setContext

      public void setContext(Context context)
    • 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 class org.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 class org.hibernate.tuple.entity.PojoEntityTuplizer
    • initProxyFactory

      public void initProxyFactory()