|
JDBaccess API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Update
Interface for updating objects: with Update you can update one or more rows in database. If a transfer object is set with "setTO" the modified fields of that transfer object are updated.
Example: Update update = DAFactory.getUpdate(t); String sql = "update employee set salary = ? where id = ?"; update.setSql(sql); ArrayList values = new ArrayList(); values.add(new BigDecimal(20000)); values.add(new Long(4711)); update.setParameters(values); update.execute(); update.end();
Method Summary | |
---|---|
java.lang.Long |
execute()
Execute the update object. |
void |
setTO(TransferObject to)
Set one transfer object to the update object |
Methods inherited from interface com.jdbaccess.da.DataAccess |
---|
end, getName, getObjectType, getPackageName, getSize, getSql, setName, setObjectType, setPackageName, setParameters, setSql, toString |
Method Detail |
---|
java.lang.Long execute() throws ApplicationException
ApplicationException
void setTO(TransferObject to) throws ApplicationException
to
- transfer object
ApplicationException
|
JDBaccess API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |