ca.sqlpower.wabit.dao
Class WabitObjectProperty

java.lang.Object
  extended by ca.sqlpower.wabit.dao.WabitObjectProperty

public class WabitObjectProperty
extends java.lang.Object

A class representing an individual persisted WabitObject property.


Constructor Summary
WabitObjectProperty(java.lang.String uuid, java.lang.String propertyName, WabitPersister.DataType dataType, java.lang.Object oldValue, java.lang.Object newValue, boolean unconditional)
          Constructor to persist a WabitObject property, keeping track of all the parameters of the persistProperty(...) method call.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 WabitPersister.DataType getDataType()
           
 java.lang.Object getNewValue()
          Accessor for the property value to persist
 java.lang.Object getOldValue()
           
 java.lang.String getPropertyName()
          Accessor for the property name field
 java.lang.String getUUID()
           
 boolean isUnconditional()
          Accessor for the unconditional persist determinant
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WabitObjectProperty

public WabitObjectProperty(java.lang.String uuid,
                           java.lang.String propertyName,
                           WabitPersister.DataType dataType,
                           java.lang.Object oldValue,
                           java.lang.Object newValue,
                           boolean unconditional)
Constructor to persist a WabitObject property, keeping track of all the parameters of the persistProperty(...) method call. These fields will be necessary for when commit() is called.

Parameters:
propertyName - The name of the property to persist
newValue - The property value to persist
unconditional - Whether or not to validate if oldValue matches the actual property value before persisting
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Accessor for the property name field

Returns:
The property name to persist upon

getNewValue

public java.lang.Object getNewValue()
Accessor for the property value to persist

Returns:
The property value to persist

isUnconditional

public boolean isUnconditional()
Accessor for the unconditional persist determinant

Returns:
The unconditional field

getDataType

public WabitPersister.DataType getDataType()

getOldValue

public java.lang.Object getOldValue()

getUUID

public java.lang.String getUUID()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2009. All Rights Reserved.