Module io.ebean.api
Package io.ebean.bean

Class SingleBeanLoader

java.lang.Object
io.ebean.bean.SingleBeanLoader
All Implemented Interfaces:
BeanLoader
Direct Known Subclasses:
SingleBeanLoader.Dflt, SingleBeanLoader.L2, SingleBeanLoader.Ref

public abstract class SingleBeanLoader extends Object implements BeanLoader
BeanLoader used when single beans are loaded (which is usually not ideal / N+1).
  • Field Details

    • database

      protected final Database database
  • Method Details

    • getName

      public String getName()
      Description copied from interface: BeanLoader
      Return the name of the associated Database.
      Specified by:
      getName in interface BeanLoader
    • lock

      public Lock lock()
      Description copied from interface: BeanLoader
      Obtain a lock on the loader.
      Specified by:
      lock in interface BeanLoader