public interface EntityDataSource
| Modifier and Type | Method and Description | 
|---|---|
void | 
delete(Entity eo)
Delete an entity. 
 | 
AttributeList | 
findByPrimaryKey(EntityDefImpl entityDef,
                Key key)
Look up the entity by the key. 
 | 
AttributeList[] | 
findByPrimaryKeys(EntityDefImpl entityDef,
                 Key[] keys)
Look up the entities by the array of the keys. 
 | 
void | 
insert(Entity eo)
Insert an entity. 
 | 
void | 
process(int op,
       java.util.ArrayList<Entity> entities)
Process CRUD operations for a list of entities. 
 | 
void | 
update(Entity eo)
Update an entity. 
 | 
AttributeList findByPrimaryKey(EntityDefImpl entityDef, Key key)
key - The key of the entity being searched.AttributeList[] findByPrimaryKeys(EntityDefImpl entityDef, Key[] keys)
keys - The array of the key to be searched.void insert(Entity eo)
eo - The Entity to be inserted.void update(Entity eo)
eo - Then entity to be updated.void delete(Entity eo)
eo - The entity to be deleted.void process(int op,
           java.util.ArrayList<Entity> entities)
op - The type of the operation. It can be EntityImpl.DML_DELTE, 
 EntityImpl.DML_INSERT, and EntityImpl.DML_UPDATE.entities - a list of entity objects