com.ebasetech.ufs.utility
Interface PersistentSaveable

All Superinterfaces:
PersistentCommon
All Known Subinterfaces:
Persistent, PersistentOptimistic

public interface PersistentSaveable
extends PersistentCommon

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


Method Summary
 java.lang.String getAttributeColumnNames()
          Answer a comma separated list of the attributes columns for this implementation
 int populateInsertStmt(java.sql.PreparedStatement stmt)
          Populate the supplied statement with the values of the implementation object.
 void save(java.sql.Connection con)
          Save an instance to the supplied connection
 
Methods inherited from interface com.ebasetech.ufs.utility.PersistentCommon
bindKeys, getIdentifier, getTableName
 

Method Detail

getAttributeColumnNames

public java.lang.String getAttributeColumnNames()
Answer a comma separated list of the attributes columns for this implementation


populateInsertStmt

public int populateInsertStmt(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 inserting the persistent object

Parameters:
stmt - the prepared statement in which to place values
Returns:
the next integer position to use in the statement
Throws:
java.sql.SQLException

save

public void save(java.sql.Connection con)
          throws PersistenceException
Save an instance to the supplied connection

Throws:
PersistenceException