JDBaccess API 1.0

com.jdbaccess.da
Interface Delete

All Superinterfaces:
DataAccess

public interface Delete
extends DataAccess

Interface for the deletion of objects.

Example:
   Delete delete = DAFactory.getDelete(t);
   Employee emp = new Employee();
   emp.setId(new Long(4711));
   delete.setTO(empDao);
   delete.execute();
   delete.end(); 
 


Method Summary
 java.lang.Long execute()
          Execute the delete of one or more rows.
 void setTO(TransferObject to)
          Set the transfer object to this delete object
 
Methods inherited from interface com.jdbaccess.da.DataAccess
end, getName, getObjectType, getPackageName, getSize, getSql, setName, setObjectType, setPackageName, setParameters, setSql, toString
 

Method Detail

execute

java.lang.Long execute()
                       throws ApplicationException
Execute the delete of one or more rows. If a to is set with "setTO" the whereCondition of that to is used to construct the where condition of the delete.

Returns:
delete count
Throws:
ApplicationException

setTO

void setTO(TransferObject to)
           throws ApplicationException
Set the transfer object to this delete object

Parameters:
to - transfer object to set
Throws:
ApplicationException

JDBaccess API 1.0

Copyright © 2005-2006 JDBaccess.com, Königsweg 210, D-14129 Berlin, Germany. All Rights Reserved.