| com.jcorporate.expresso.core.dataobjects.DataExecutorInterface
All known Subclasses: com.jcorporate.expresso.core.dataobjects.jdbc.JDBCExecutor,
DataExecutorInterface | public interface DataExecutorInterface (Code) | | 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.
author: Michael Rimov since: Expresso 5.0 |
addBatch | public void addBatch(List valueObjectList) throws DataException, DuplicateKeyException(Code) | | Adds an entire batch of DataObject s to the underlying data source
Parameters: valueObjectList - A list of DataObject s to add to the underlyingdata source throws: DataException - upon error communicating with the underlying data source throws: DuplicateKeyException - if one of the records was already in thedata source |
delete | public void delete(DataObject valueObject) throws DataException(Code) | | Takes a DataObject and deletes it from the underlying data source
Parameters: valueObject - the DataObject to delete. throws: DataException - upon error deleting the object to the data source |
deleteAll | public void deleteAll(DataObject valueObject, boolean deleteChangedCache) throws DataException(Code) | | Takes a DataObject and deletes it from the underlying data source
Parameters: valueObject - the DataObject to delete. throws: DataException - upon error deleting the objects to the data source |
deleteBatch | public void deleteBatch(List valueObjectList) throws DataException(Code) | | Updates an entire batch of DataObject s
Parameters: valueObjectList - A list of DataObject s to update to the underlyingdata source throws: DataException - upon error updating the data source |
deleteBatch | public void deleteBatch(List valueObjectList, boolean deleteWithSetFieldsOnly) throws DataException(Code) | | Updates an entire batch of DataObject s
Parameters: valueObjectList - A list of DataObject s to update to the underlyingdata source Parameters: updateChangedFieldsOnly - flag to signify if only fields whose valuehas changed should be included in the update. throws: DataException - upon error updating the data source |
retrieve | public boolean retrieve(DataObject valueObject) throws DataException(Code) | | Takes a DataObject and retrieves it from the underlying data source
Parameters: valueObject - the DataObject to add. true if the object was successfully found, false if no objectfound that represents the criteria specified throws: DataException - upon error retriving the object from the data source |
runStoreProcedure | public void runStoreProcedure(DataObject valueObject) throws DataException(Code) | | Takes a DataObject and run it from the underlying data source
Parameters: valueObject - the DataObject to run. throws: DataException - upon error retriving the object from the data source |
update | public void update(DataObject valueObject, boolean updateChangedFieldsOnly) throws DataException(Code) | | Takes a DataObject and updates it to the underlying data source
Parameters: valueObject - the DataObject to update. Parameters: updateChangedFieldsOnly - flag to signify if only fields whose valuehas changed should be included in the update. throws: DataException - upon error updating the object to the data source |
updateAll | public void updateAll(DataObject valueObject, boolean updateChangedCache) throws DataException(Code) | | Takes a DataObject and updates it to the underlying data source
Parameters: valueObject - the DataObject to update. Parameters: updateChangedFieldsOnly - flag to signify if only fields whose valuehas changed should be included in the update. throws: DataException - upon error updating the object to the data source |
updateBatch | public void updateBatch(List valueObjectList) throws DataException(Code) | | Updates an entire batch of DataObject s
Parameters: valueObjectList - A list of DataObject s to update to the underlyingdata source throws: DataException - upon error updating the data source |
updateBatch | public void updateBatch(List valueObjectList, boolean updateChangedFieldsOnly) throws DataException(Code) | | Updates an entire batch of DataObject s
Parameters: valueObjectList - A list of DataObject s to update to the underlyingdata source Parameters: updateChangedFieldsOnly - flag to signify if only fields whose valuehas changed should be included in the update. throws: DataException - upon error updating the data source |
|
|