Class AbstractLoadPlanBasedEntityLoader

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public abstract class AbstractLoadPlanBasedEntityLoader
    extends org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader
    implements UniqueEntityLoader
    A UniqueEntityLoader implementation based on using LoadPlans
    • Method Detail

      • getStaticLoadQuery

        protected LoadQueryDetails getStaticLoadQuery()
        Specified by:
        getStaticLoadQuery in class org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader
      • getEntityName

        protected java.lang.String getEntityName()
      • load

        public java.lang.Object load​( id,
                                     java.lang.Object optionalObject,
                                     SharedSessionContractImplementor session,
                                     LockOptions lockOptions)
        Description copied from interface: UniqueEntityLoader
        Load an entity instance by id. If optionalObject is supplied (non-null, the entity state is loaded into that object instance instead of instantiating a new one.
        Specified by:
        load in interface UniqueEntityLoader
        id - The id to be loaded
        optionalObject - The (optional) entity instance in to which to load the state
        session - The session from which the request originated
        lockOptions - The lock options.
        The loaded entity
      • extractEntityResult

        protected java.lang.Object extractEntityResult​(java.util.List results,
      • getNamedParameterLocs

        protected int[] getNamedParameterLocs​(java.lang.String name)
        Specified by:
        getNamedParameterLocs in class org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader
      • autoDiscoverTypes

        protected void autoDiscoverTypes​(java.sql.ResultSet rs)
        Specified by:
        autoDiscoverTypes in class org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader