Package org.nuclos.api.businessobject
Interface BusinessObject<PK>
- All Known Subinterfaces:
Lockable<PK>
,LogicalDeletable<PK>
,Modifiable<PK>
,NuclosUserCommunicationAccount
public interface BusinessObject<PK>
BusinessObject
represents an entry of a configured entity. Its methods correspond
to the attributes of the entity.
- Author:
- Matthias Reichart
-
Method Summary
Modifier and TypeMethodDescriptionstatic <PK,
T extends BusinessObject<PK>>
Tget
(PK id) Returns the bo by id.Returns the name of the entity the BusinesObject bases onReturns the UID of the entity the BusinesObject bases ongetId()
Returns the primary key of this objectReturns the current version of this objectboolean
isDelete()
Object is removed?boolean
isInsert()
Is this object a new one?boolean
isUpdate()
Object is modified?
-
Method Details
-
getId
PK getId()Returns the primary key of this object -
getEntityUid
UID getEntityUid()Returns the UID of the entity the BusinesObject bases on -
getEntity
String getEntity()Returns the name of the entity the BusinesObject bases on -
getVersion
Integer getVersion()Returns the current version of this object -
isInsert
boolean isInsert()Is this object a new one? -
isUpdate
boolean isUpdate()Object is modified? -
isDelete
boolean isDelete()Object is removed? -
get
Returns the bo by id.- Returns:
- null, when bo does not exist
-