Interface IUpdatable<T>
- Type Parameters:
T- T
- All Known Implementing Classes:
BaseDirectoryUpdatable,ResourceUpdatable
public interface IUpdatable<T>
Updatable interface
Created by wtoscer on 12/02/2015.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAfter update actionvoidBefore update actionBegin a transactionvoidCommit a transactionGet a param valuebooleanCheck if a transaction is still activevoidRollback a transactionvoidSavevoidSet a param value
-
Method Details
-
setValue
Set a param value- Parameters:
name- the param namevalue- the param value- Throws:
ValidationException- on error
-
getValue
Get a param value- Parameters:
name- the param name- Returns:
- the value
-
save
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
-