Package com.avoka.core.util
Class ValueObject
- java.lang.Object
-
- com.avoka.core.util.ValueObject
-
public class ValueObject extends Object
Provides a base Value Object (VO) for all application value object to extend. The ValueObject class support Flex serialization and deserialization of object graphs, providing an intermediary between Cayenne DataObjects and Flex ActionScript objects. To convert between ValueObject and Cayenne DataObjects use thecom.avoka.core.flex.ObjectConverter
utility.- See Also:
com.avoka.core.flex.ObjectConverter
-
-
Constructor Summary
Constructors Constructor Description ValueObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getDeleted()
Return true if the object has been deleted.Long
getId()
Return the primary key of the objectboolean
isNew()
Return true if the object is new, and has not been persisted.void
setDeleted(boolean delete)
Set whether the object has been deleted.void
setId(Long id)
Set the primary key of the objectString
toString()
-
-
-
Method Detail
-
getDeleted
public boolean getDeleted()
Return true if the object has been deleted.- Returns:
- true if the object has been deleted
-
setDeleted
public void setDeleted(boolean delete)
Set whether the object has been deleted.- Parameters:
delete
- the flag to indicate whether the object has been deleted
-
getId
public Long getId()
Return the primary key of the object- Returns:
- the primary key of the object
-
setId
public void setId(Long id)
Set the primary key of the object- Parameters:
id
- the the primary key of the object
-
isNew
public boolean isNew()
Return true if the object is new, and has not been persisted.- Returns:
- true if the object is new
-
toString
public String toString()
- Overrides:
toString
in classObject
- Returns:
- a string representation of the object.
- See Also:
Object.toString()
-
-