Interface IGeneralBO<K extends java.io.Serializable>

Type Parameters:
K - type of primary key
All Superinterfaces:
IBean, IDirtyable, IIdObject<K>, IPropertyChangeProvider, java.io.Serializable
All Known Subinterfaces:
ILongBO, IStringBO
All Known Implementing Classes:
AbstractBO, AbstractGeneralBO, AbstractMapBO, AbstractPlainBO

public interface IGeneralBO<K extends java.io.Serializable>
extends java.io.Serializable, IBean, IIdObject<K>
Interface for Business Objects.
Author:
ralph
  • Field Details

  • Method Details

    • getDao

      IGeneralDAO<K,​? extends IGeneralBO<K>> getDao()
      Returns the responsible DAO.
      Returns:
      the DAO that this business object was created by
    • getCID

      CID getCID()
      Returns the CID.
      Returns:
      the CID
    • isNew

      boolean isNew()
      Returns true when this object has not yet been created.
      Returns:
      true when object is not persisted yet
    • isChanged

      boolean isChanged()
      Returns whether this object has changed.
      Returns:
      true or false
    • setChanged

      void setChanged​(boolean changed)
      Sets the change status of this object.
      Parameters:
      changed - new status
    • isInvalid

      boolean isInvalid()
      Returns true when object was invalidated.
      Returns:
      true or false
    • invalidate

      void invalidate()
      Invalidates all cached data and orders BO to reload its data from underlying persistence store.
    • lock

      LockInformation lock​(int timeout)
      Try to lock this object.
      Parameters:
      timeout - timeout when trying to lock, 0 for no timeout
      Returns:
      the new lock information
    • release

      LockInformation release()
      Release the lock.
      Returns:
      the new lock information.
    • getLockInformation

      LockInformation getLockInformation()
      Get the current lock information.
      Returns:
      the current lock information
    • setId

      void setId​(K id)
      Sets the ID.
      Parameters:
      id - the key of the object
    • getCreationDate

      @NoCopy RsDate getCreationDate()
      Returns the creationDate.
      Returns:
      the creationDate
    • setCreationDate

      void setCreationDate​(RsDate creationDate)
      Sets the creationDate.
      Parameters:
      creationDate - the creationDate to set
    • getChangeDate

      @NoCopy RsDate getChangeDate()
      Returns the changeDate.
      Returns:
      the changeDate
    • setChangeDate

      void setChangeDate​(RsDate changeDate)
      Sets the changeDate.
      Parameters:
      changeDate - the changeDate to set