|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This class' job is to provide an interface between DataObjects and the underlying data source. It provides the actual execution. By separating the logic, we gain the ability to do things such as have the actual Execution take place on another machine. Just write an executor facade and be done with it.
| Method Summary | |
void |
add(DataObject valueObject)
Takes a DataObject and adds it to the underlying data source |
void |
addBatch(List valueObjectList)
Adds an entire batch of DataObjects to the underlying data source |
void |
delete(DataObject valueObject)
Takes a DataObject and deletes it from the underlying data source |
void |
deleteAll(DataObject valueObject,
boolean deleteChangedCache)
Takes a DataObject and deletes it from the underlying data source |
void |
deleteBatch(List valueObjectList)
Updates an entire batch of DataObjects |
void |
deleteBatch(List valueObjectList,
boolean deleteWithSetFieldsOnly)
Updates an entire batch of DataObjects |
boolean |
retrieve(DataObject valueObject)
Takes a DataObject and retrieves it from the underlying data source |
void |
runStoreProcedure(DataObject valueObject)
Takes a DataObject and run it from the underlying data source |
void |
update(DataObject valueObject,
boolean updateChangedFieldsOnly)
Takes a DataObject and updates it to the underlying data source |
void |
updateAll(DataObject valueObject,
boolean updateChangedCache)
Takes a DataObject and updates it to the underlying data source |
void |
updateBatch(List valueObjectList)
Updates an entire batch of DataObjects |
void |
updateBatch(List valueObjectList,
boolean updateChangedFieldsOnly)
Updates an entire batch of DataObjects |
| Method Detail |
public void add(DataObject valueObject)
throws DataException,
DuplicateKeyException
DataObject and adds it to the underlying data source
valueObject - the DataObject to add.
DataException - upon error adding the object to the data source
DuplicateKeyException - if the object already existed in the data
source.
public void delete(DataObject valueObject)
throws DataException
DataObject and deletes it from the underlying data source
valueObject - the DataObject to delete.
DataException - upon error deleting the object to the data source
public void update(DataObject valueObject,
boolean updateChangedFieldsOnly)
throws DataException
DataObject and updates it to the underlying data source
valueObject - the DataObject to update.updateChangedFieldsOnly - flag to signify if only fields whose value
has changed should be included in the update.
DataException - upon error updating the object to the data source
public boolean retrieve(DataObject valueObject)
throws DataException
DataObject and retrieves it from the underlying data source
valueObject - the DataObject to add.
DataException - upon error retriving the object from the data source
public void addBatch(List valueObjectList)
throws DataException,
DuplicateKeyException
DataObjects to the underlying data source
valueObjectList - A list of DataObjects to add to the underlying
data source
DataException - upon error communicating with the underlying data source
DuplicateKeyException - if one of the records was already in the
data source
public void deleteBatch(List valueObjectList)
throws DataException
DataObjects
valueObjectList - A list of DataObjects to update to the underlying
data source
DataException - upon error updating the data source
public void deleteBatch(List valueObjectList,
boolean deleteWithSetFieldsOnly)
throws DataException
DataObjects
valueObjectList - A list of DataObjects to update to the underlying
data source
DataException - upon error updating the data source
public void updateBatch(List valueObjectList)
throws DataException
DataObjects
valueObjectList - A list of DataObjects to update to the underlying
data source
DataException - upon error updating the data source
public void updateBatch(List valueObjectList,
boolean updateChangedFieldsOnly)
throws DataException
DataObjects
valueObjectList - A list of DataObjects to update to the underlying
data sourceupdateChangedFieldsOnly - flag to signify if only fields whose value
has changed should be included in the update.
DataException - upon error updating the data source
public void updateAll(DataObject valueObject,
boolean updateChangedCache)
throws DataException
DataObject and updates it to the underlying data source
valueObject - the DataObject to update.
DataException - upon error updating the object to the data source
public void deleteAll(DataObject valueObject,
boolean deleteChangedCache)
throws DataException
DataObject and deletes it from the underlying data source
valueObject - the DataObject to delete.
DataException - upon error deleting the objects to the data source
public void runStoreProcedure(DataObject valueObject)
throws DataException
DataObject and run it from the underlying data source
valueObject - the DataObject to run.
DataException - upon error retriving the object from the data source
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||