com.ebasetech.ufs.utility
Interface PersistentOptimistic
- All Superinterfaces:
- Persistent, PersistentCommon, PersistentDeleteable, PersistentLoadable, PersistentSaveable, PersistentUpdateable
- public interface PersistentOptimistic
- extends Persistent
Classes that implement this interface are Persistent classes, but ones that place an additional requirement
on the availability of somme form of optimistic locking.
Method Summary |
java.lang.String |
getLockSQL(com.ebasetech.ufs.kernel.IUFSServletContextProxy proxy)
Answer the SQL that locks the target row, and produces a result set that
can be checked for a modification elsewhere |
boolean |
isModified(java.sql.ResultSet rs)
Answer true if the supplied result set contains values for the lock columns that are
indicative of the receiver having been modified in the database |
getLockSQL
public java.lang.String getLockSQL(com.ebasetech.ufs.kernel.IUFSServletContextProxy proxy)
throws java.sql.SQLException
- Answer the SQL that locks the target row, and produces a result set that
can be checked for a modification elsewhere
- Throws:
java.sql.SQLException
isModified
public boolean isModified(java.sql.ResultSet rs)
throws java.sql.SQLException
- Answer true if the supplied result set contains values for the lock columns that are
indicative of the receiver having been modified in the database
- Throws:
java.sql.SQLException