|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.exception.AlterationLWO
Contains information about a value that has been altered.
Field Summary | |
static byte |
DELETE_ALTERATION
|
static byte |
UNKNOWN_TYPE
|
static byte |
UPDATE_ALTERATION
|
Constructor Summary | |
AlterationLWO()
ModificationLWO constructor comment. |
|
AlterationLWO(String fieldName,
Object currentValue,
Object originalValue,
Object desiredValue,
byte alterationType)
Creates a new AlterationLWO with initial values. |
Method Summary | |
byte |
getAlterationType()
Gets the type of alteration that took place. |
Object |
getCurrentValue()
Gets the value of the field that is currently in the data source. |
Object |
getDesiredValue()
Gets the value the field was going to be set to (but wasn't since another user had modified it). |
String |
getFieldName()
Gets the name of the field to which an alteration attempt was made. |
Object |
getOriginalValue()
Gets the value of the field the last time we read it. |
void |
setAlterationType(byte newAlterationType)
Sets the type of alteration that took place. |
void |
setCurrentValue(Object newCurrentValue)
Sets the value of the field that is currently in the data source. |
void |
setDesiredValue(Object newDesiredValue)
Sets the value the field was going to be set to (but wasn't since another user had modified it). |
void |
setFieldName(String newFieldName)
Sets the name of the field to which an alteration attempt was made. |
void |
setOriginalValue(Object newOriginalValue)
Sets the value of the field the last time we read it. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte UNKNOWN_TYPE
public static final byte DELETE_ALTERATION
public static final byte UPDATE_ALTERATION
Constructor Detail |
public AlterationLWO()
public AlterationLWO(String fieldName, Object currentValue, Object originalValue, Object desiredValue, byte alterationType)
Method Detail |
public byte getAlterationType()
public Object getCurrentValue()
public Object getDesiredValue()
public String getFieldName()
public Object getOriginalValue()
public void setAlterationType(byte newAlterationType)
public void setCurrentValue(Object newCurrentValue)
public void setDesiredValue(Object newDesiredValue)
public void setFieldName(String newFieldName)
public void setOriginalValue(Object newOriginalValue)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |