Class 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 com.avoka.core.flex.ObjectConverter utility.

    See Also:
    com.avoka.core.flex.ObjectConverter
    • Constructor Detail

      • ValueObject

        public ValueObject()
    • 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