Type Parameters:
T - T
All Known Implementing Classes:
BaseDirectoryUpdatable, ResourceUpdatable

public interface IUpdatable<T>
Updatable interface Created by wtoscer on 12/02/2015.
  • Method Details

    • setValue

      void setValue(String name, Object value) throws ValidationException
      Set a param value
      Parameters:
      name - the param name
      value - the param value
      Throws:
      ValidationException - on error
    • getValue

      @Nullable Object getValue(String name)
      Get a param value
      Parameters:
      name - the param name
      Returns:
      the value
    • save

      void save(IContext context)
      Save
      Parameters:
      context - the current context
    • getInternalObject

      T getInternalObject()
    • beginTransaction

      IReport beginTransaction()
      Begin a transaction
      Returns:
      the report
    • commitTransaction

      void commitTransaction()
      Commit a transaction
    • rollbackTransaction

      void rollbackTransaction()
      Rollback a transaction
    • isTransactionActive

      boolean isTransactionActive()
      Check if a transaction is still active
      Returns:
      true if the transaction is active
    • beforeUpdate

      void beforeUpdate()
      Before update action
    • afterUpdate

      void afterUpdate()
      After update action