Interface Modifiable<PK>

All Superinterfaces:
BusinessObject<PK>

public interface Modifiable<PK> extends BusinessObject<PK>
Modifiable is the interface a BusinessObject must implement to be used in modifying rules, UpdateRule, InsertRule, UpdateFinalRule, InsertFinalRule
Author:
Matthias Reichart
  • Method Details

    • setCreatedBy

      void setCreatedBy(String username)
      Sets name of user who created the object
      Parameters:
      username -
    • setChangedBy

      void setChangedBy(String username)
      Sets name of user who last modified the object
      Parameters:
      username -
    • save

      void save(SaveFlag... saveFlags) throws BusinessException
      Saves this bo. A new BO will be created, an existing BO will be updated. In case of creation the BO will get the new ID.
      Throws:
      BusinessException
    • delete

      void delete() throws BusinessException
      Deletes this bo.
      Throws:
      BusinessException
    • delete

      static <PK> void delete(PK id) throws BusinessException
      Deletes the bo with this id. Static method, no instance needed
      Throws:
      BusinessException
    • withDefaults

      Modifiable<PK> withDefaults()
      Sets the default values, which were specified for this modifiable in the BO editor.
      Returns:
      the instance of the modifiable with its defaults set