org.jminor.common.db.exception
Class RecordModifiedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jminor.common.db.exception.DatabaseException
              extended by org.jminor.common.db.exception.RecordModifiedException
All Implemented Interfaces:
Serializable

public final class RecordModifiedException
extends DatabaseException

An exception indicating that the row in question has been modified since it was loaded.

See Also:
Serialized Form

Constructor Summary
RecordModifiedException(Object row, Object modifiedRow)
          Instantiates a new RecordModifiedException
 
Method Summary
 Object getModifiedRow()
           
 Object getRow()
           
 
Methods inherited from class org.jminor.common.db.exception.DatabaseException
getStatement
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecordModifiedException

public RecordModifiedException(Object row,
                               Object modifiedRow)
Instantiates a new RecordModifiedException

Parameters:
row - the row being updated
modifiedRow - the current (modified) version of the row
Method Detail

getRow

public Object getRow()
Returns:
the row bing updated

getModifiedRow

public Object getModifiedRow()
Returns:
the current (modified) version of the row