Package com.avoka.core.util
Class ValueObject
java.lang.Object
com.avoka.core.util.ValueObject
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 the
com.avoka.core.flex.ObjectConverter
utility.- See Also:
-
com.avoka.core.flex.ObjectConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if the object has been deleted.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
Set the primary key of the objecttoString()
-
Constructor Details
-
ValueObject
public ValueObject()
-
-
Method Details
-
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
Return the primary key of the object- Returns:
- the primary key of the object
-
setId
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
-