|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectAccessEventHandler
This interface is used to defer control to the developer over events that occur when an object is being accessed.
| Nested Class Summary | |
|---|---|
static class |
ObjectAccessEventHandler.EmptyAccessEventHandler
|
static class |
ObjectAccessEventHandler.LazyCollectionEventHandler
|
static class |
ObjectAccessEventHandler.LazyLoadAccessEventHandler
|
static class |
ObjectAccessEventHandler.WaitForPopulationEventHandler
|
| Method Summary | |
|---|---|
boolean |
attributeNotLoaded(HydrateObject object,
java.lang.String attribute)
This event method is called when an attempt is made to access an attribute of an object that has not been loaded. |
boolean |
collectionNotLoaded(HydrateObject object,
java.lang.String attribute)
This event method is called when an attempt is made to access a collection attribute of an object that has not been loaded. |
java.util.Collection |
getWeakCollection(HydrateObject obj,
java.lang.String attr,
java.lang.Class collClass)
This method is needed to resolve the obscure, but tricky relationship between autoload references and lazy loading. |
| Method Detail |
|---|
boolean attributeNotLoaded(HydrateObject object,
java.lang.String attribute)
object - the object that had an attribute that was not loadedattribute - the identifier corresponding to the attribute that was not set.
boolean collectionNotLoaded(HydrateObject object,
java.lang.String attribute)
object - the object that had an attribute that was not loadedattribute - the identifier corresponding to the collection attribute that was not set.
attributeNotLoaded(HydrateObject, String)
java.util.Collection getWeakCollection(HydrateObject obj,
java.lang.String attr,
java.lang.Class collClass)
obj - the hydrate object that needs a collection. Don't even start thinking about
getting this to work with non-Hydrate objects.attr - the name of the attribute (must be the static reference from the interface)collClass - the class of the collection that would be created if there is none
available.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||