Class EntityTuplizerFactory

  • All Implemented Interfaces:
    java.io.Serializable

    public class EntityTuplizerFactory
    extends java.lang.Object
    implements java.io.Serializable
    A registry allowing users to define the default EntityTuplizer class to use per EntityMode.
    See Also:
    Serialized Form
    • Field Detail

      • ENTITY_TUP_CTOR_SIG

        public static final java.lang.Class[] ENTITY_TUP_CTOR_SIG
    • Constructor Detail

      • EntityTuplizerFactory

        public EntityTuplizerFactory()
    • Method Detail

      • registerDefaultTuplizerClass

        public void registerDefaultTuplizerClass​(EntityMode entityMode,
                                                 java.lang.Class<? extends EntityTuplizer> tuplizerClass)
        Method allowing registration of the tuplizer class to use as default for a particular entity-mode.
        Parameters:
        entityMode - The entity-mode for which to register the tuplizer class
        tuplizerClass - The class to use as the default tuplizer for the given entity-mode.
      • constructTuplizer

        public EntityTuplizer constructTuplizer​(java.lang.String tuplizerClassName,
                                                EntityMetamodel metamodel,
                                                PersistentClass persistentClass)
        Construct an instance of the given tuplizer class.
        Parameters:
        tuplizerClassName - The name of the tuplizer class to instantiate
        metamodel - The metadata for the entity.
        persistentClass - The mapping info for the entity.
        Returns:
        The instantiated tuplizer
        Throws:
        HibernateException - If class name cannot be resolved to a class reference, or if the Constructor.newInstance(java.lang.Object...) call fails.
      • constructTuplizer

        public EntityTuplizer constructTuplizer​(java.lang.Class<? extends EntityTuplizer> tuplizerClass,
                                                EntityMetamodel metamodel,
                                                PersistentClass persistentClass)
        Construct an instance of the given tuplizer class.
        Parameters:
        tuplizerClass - The tuplizer class to instantiate
        metamodel - The metadata for the entity.
        persistentClass - The mapping info for the entity.
        Returns:
        The instantiated tuplizer
        Throws:
        HibernateException - if the Constructor.newInstance(java.lang.Object...) call fails.