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 the

invalid reference
com.avoka.core.flex.ObjectConverter
utility.
See Also:
  • invalid reference
    com.avoka.core.flex.ObjectConverter
  • 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

      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 class Object
      Returns:
      a string representation of the object.
      See Also: