Class PersistentObject

    • Field Detail


        public static final int DELETED_CODE_DEFAULT
        This is used to mark a deletion that must be shown in the trash bin
        See Also:
        Constant Field Values

        public static final int DELETED_CODE_STRONG
        This is used to mark a deletion that must be physically removed
        See Also:
        Constant Field Values
    • Constructor Detail

      • PersistentObject

        public PersistentObject()
    • Method Detail

      • getId

        public long getId()
        Unique identifier in the data store
        the unique identifier of this record
      • setId

        public void setId​(long id)
      • getLastModified

        public Date getLastModified()
        The last time this instance was modified
        the last modified date
      • setLastModified

        public void setLastModified​(Date lastModified)
      • getDeleted

        public int getDeleted()
        This flag is used to mark an object as deleted
        1 if the record is deleted, 0 otherwise
      • setDeleted

        public void setDeleted​(int deleted)
      • getTenantId

        public long getTenantId()
      • setTenantId

        public void setTenantId​(long tenantId)
      • getRecordVersion

        public long getRecordVersion()
      • setRecordVersion

        public void setRecordVersion​(long recordVersion)
      • hashCode

        public int hashCode()
        hashCode in class Object