Interface Modifiable<PK>
- All Superinterfaces:
BusinessObject<PK>
Modifiable is the interface a
BusinessObject
must implement to be used in modifying
rules, UpdateRule
, InsertRule
, UpdateFinalRule
, InsertFinalRule
- Author:
- Matthias Reichart
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Deletes this bo.static <PK> void
delete
(PK id) Deletes the bo with this id.void
Saves this bo.void
setChangedBy
(String username) Sets name of user who last modified the objectvoid
setCreatedBy
(String username) Sets name of user who created the objectSets the default values, which were specified for this modifiable in the BO editor.Methods inherited from interface org.nuclos.api.businessobject.BusinessObject
getEntity, getEntityUid, getId, getVersion, isDelete, isInsert, isUpdate
-
Method Details
-
setCreatedBy
Sets name of user who created the object- Parameters:
username
-
-
setChangedBy
Sets name of user who last modified the object- Parameters:
username
-
-
save
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
Deletes this bo.- Throws:
BusinessException
-
delete
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
-