| com.salmonllc.sql.DataSourceOut
All known Subclasses: com.salmonllc.sql.DSDataSourceJDBC,
DataSourceOut | public interface DataSourceOut (Code) | | This interface should be implemented for DataStores that use non standard data sources to retrieve their data.
|
Method Summary | |
public boolean | deleteRow(DataStore ds, DataStoreRow row, DBConnection conn) This method will be called for each row that was deleted in the datastore. | public boolean | insertRow(DataStore ds, DataStoreRow row, DBConnection conn) This method will be called for each row that was inserted in the datastore. | public void | postUpdate(DataStore ds, DBConnection conn, boolean handleTrans, boolean updateSucceeded) This method will be after the data update loop starts. | public boolean | preUpdate(DataStore ds, DBConnection conn, boolean handleTrans) This method will be called before the data update loop starts. | public boolean | updateRow(DataStore ds, DataStoreRow row, DBConnection conn) This method will be called for each row that was modified in the datastore. |
deleteRow | public boolean deleteRow(DataStore ds, DataStoreRow row, DBConnection conn) throws Exception(Code) | | This method will be called for each row that was deleted in the datastore. The method must delete the row from the database.Return true to keep processing rows and false to stop.
|
insertRow | public boolean insertRow(DataStore ds, DataStoreRow row, DBConnection conn) throws Exception(Code) | | This method will be called for each row that was inserted in the datastore. The method must insert the row into the database. Return true to keep processing rows and false to stop.
|
postUpdate | public void postUpdate(DataStore ds, DBConnection conn, boolean handleTrans, boolean updateSucceeded) throws Exception(Code) | | This method will be after the data update loop starts.
boolean true if the DataStore was updated properly and false if not. |
preUpdate | public boolean preUpdate(DataStore ds, DBConnection conn, boolean handleTrans) throws Exception(Code) | | This method will be called before the data update loop starts.
boolean true if the DataStore should be updated and false if not |
updateRow | public boolean updateRow(DataStore ds, DataStoreRow row, DBConnection conn) throws Exception(Code) | | This method will be called for each row that was modified in the datastore. The method must take the values in the datastore and update the database.Return true to keep processing rows and false to stop.
|
|
|