com.ebasetech.ufs.utility
Interface PersistentUpdateable

All Superinterfaces:
PersistentCommon, PersistentLoadable
All Known Subinterfaces:
Persistent, PersistentOptimistic

public interface PersistentUpdateable
extends PersistentLoadable

The subset of persistence methods that objects must implement to support update


Method Summary
 java.lang.String getUpdateSQL()
          Answers the SQL to use for updating an individual object in situ
 void populateUpdateStmt(java.sql.PreparedStatement stmt)
          Populate the supplied statement with the values of the implementation object.
 void update(com.ebasetech.ufs.kernel.IUFSServletContextProxy proxy)
          Update an object in the database.
 
Methods inherited from interface com.ebasetech.ufs.utility.PersistentLoadable
getLoadSQL, populate, populate
 
Methods inherited from interface com.ebasetech.ufs.utility.PersistentCommon
bindKeys, getIdentifier, getTableName
 

Method Detail

populateUpdateStmt

public void populateUpdateStmt(java.sql.PreparedStatement stmt)
                        throws java.sql.SQLException
Populate the supplied statement with the values of the implementation object. This will be used for either updating the persistent object

Parameters:
stmt - the prepared statement in which to place values
Throws:
java.sql.SQLException

update

public void update(com.ebasetech.ufs.kernel.IUFSServletContextProxy proxy)
            throws PersistenceException
Update an object in the database. This should probably be used with extreme care due to the possibility of getting objects in memory and the db confused

Throws:
PersistenceException

getUpdateSQL

public java.lang.String getUpdateSQL()
Answers the SQL to use for updating an individual object in situ