org.h3t
Interface LoadService


public interface LoadService

The LoadService interface is used by the client side of the framework to load collections and entities from the server. The developer should provide a custom implementation of this interface unless the provided EJB (org.h3t.ejb.LoadServiceBean) is used.

Author:
Rob Worsnop
See Also:
LoadServiceFactory, org.h3t.ejb.LoadServiceBean, Loader

Method Summary
 java.util.Collection loadAssociatedCollection(java.lang.Object entity, org.h3t.util.SerializableField field)
          Loads a collection associated with an entity.
 java.util.Collection loadAssociatedCollection(java.lang.Object entity, org.h3t.util.SerializableMethod property)
          Loads a collection associated with an entity.
 java.lang.Object loadAssociatedEntity(java.lang.Object entity, org.h3t.util.SerializableField field)
          Loads a child entity associated with an entity.
 java.lang.Object loadAssociatedEntity(java.lang.Object entity, org.h3t.util.SerializableMethod property)
          Loads a child entity associated with an entity.
 

Method Detail

loadAssociatedCollection

java.util.Collection loadAssociatedCollection(java.lang.Object entity,
                                              org.h3t.util.SerializableMethod property)
Loads a collection associated with an entity.

Parameters:
entity - The entity associated with the collection to be loaded.
method - The method on the entity that returns the collection.
Returns:
The loaded collection.

loadAssociatedCollection

java.util.Collection loadAssociatedCollection(java.lang.Object entity,
                                              org.h3t.util.SerializableField field)
Loads a collection associated with an entity.

Parameters:
entity - The entity associated with the collection to be loaded.
field - The field on the entity by which the collection is accessed.
Returns:
The loaded collection.

loadAssociatedEntity

java.lang.Object loadAssociatedEntity(java.lang.Object entity,
                                      org.h3t.util.SerializableMethod property)
Loads a child entity associated with an entity.

Parameters:
entity - The parent of the child entity to be loaded.
method - The method on the entity that returns the child entity.
Returns:
The loaded child entity.

loadAssociatedEntity

java.lang.Object loadAssociatedEntity(java.lang.Object entity,
                                      org.h3t.util.SerializableField field)
Loads a child entity associated with an entity.

Parameters:
entity - The parent of the child entity to be loaded.
field - The field on the entity by which the child entity is accessed.
Returns:
The loaded child entity.