Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.0.0)

E17483-01

oracle.jbo.datasource
Interface EntityDataSource

All Known Implementing Classes:
SampleEODataSourceImpl, SIEODataSourceImpl, WSEODataSourceImpl

public interface EntityDataSource


Method Summary
 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.
 

Method Detail

findByPrimaryKey

AttributeList findByPrimaryKey(EntityDefImpl entityDef,
                               Key key)
Look up the entity by the key.

Parameters:
key - The key of the entity being searched.
Returns:
The AttributeList with the key.

findByPrimaryKeys

AttributeList[] findByPrimaryKeys(EntityDefImpl entityDef,
                                  Key[] keys)
Look up the entities by the array of the keys.

Parameters:
keys - The array of the key to be searched.
Returns:
The array of AttributeList with the keys.

insert

void insert(Entity eo)
Insert an entity.

Parameters:
eo - The Entity to be inserted.

update

void update(Entity eo)
Update an entity.

Parameters:
eo - Then entity to be updated.

delete

void delete(Entity eo)
Delete an entity.

Parameters:
eo - The entity to be deleted.

process

void process(int op,
             java.util.ArrayList<Entity> entities)
Process CRUD operations for a list of entities. It will be called when entity is specified BatchThreshold option and the number of posted entities is more than BatchThreshold

Parameters:
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

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.0.0)

E17483-01

Copyright © 1997, 2011, Oracle. All rights reserved.