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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SingleBeanLoader.Dflt
Single bean lazy loaded when a reference bean.static class
SingleBeanLoader.L2
Single bean lazy loaded when bean from L2 cache.static class
SingleBeanLoader.Ref
Single bean lazy loaded when a reference bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Return the name of the associated Database.Lock
lock()
Obtain a lock on the loader.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.ebean.bean.BeanLoader
loadBean
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:BeanLoader
Return the name of the associated Database.- Specified by:
getName
in interfaceBeanLoader
-
lock
public Lock lock()
Description copied from interface:BeanLoader
Obtain a lock on the loader.- Specified by:
lock
in interfaceBeanLoader
-
-