bill.util.persist
Class EntityCollectionConfig

java.lang.Object
  |
  +--bill.util.persist.EntityCollection
        |
        +--bill.util.persist.EntityCollectionConfig

public class EntityCollectionConfig
extends EntityCollection

Holds a collection of related entities. This implementation is specific to entities retrieved using the bill.util.config package.


Fields inherited from class bill.util.persist.EntityCollection
_criteria, _entities, _entityName, _sampleEntity
 
Constructor Summary
EntityCollectionConfig()
          Default creator, normally only used when creating an object via introspection.
EntityCollectionConfig(String entityName, Hashtable criteria)
          Main creator, takes the selection criteria for populating the entity collection as input.
 
Method Summary
 void populateCollection()
          Performs the actual data retrieval and populates the contents of the collection.
 
Methods inherited from class bill.util.persist.EntityCollection
createSampleEntity, getCriteria, getEntities, getEntity, getEntityName, save, setAllDeleted, setCriteria, setEntityName, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityCollectionConfig

public EntityCollectionConfig()
Default creator, normally only used when creating an object via introspection. When an object is created using this creator, the setEntityName and setCriteria must be called as well to complete the setting of the data required by this class. Then populateCollection must be called to actually populate the collection.

EntityCollectionConfig

public EntityCollectionConfig(String entityName,
                              Hashtable criteria)
                       throws PersistException
Main creator, takes the selection criteria for populating the entity collection as input.
Parameters:
entityName - Name of the entity that is contained in this collection. Must match the entitiy's Java class name as we will use introspection to create one. Use the full package name if neccessary, such as com.mycompany.UserData.
criteria - The criteria to use to populate the entity collection. Keyed by the element name, the result is the element value.
Method Detail

populateCollection

public void populateCollection()
                        throws PersistException
Performs the actual data retrieval and populates the contents of the collection.
Overrides:
populateCollection in class EntityCollection
Throws:
PersistException -