@MappedSuperclass public abstract class BasicEntity extends Object implements Entitable, Activable, LogicDeletable, Remarkable
Entitable,
Activable,
LogicDeletable,
Remarkable,
Serialized FormDELETEDREMARKS| Constructor and Description |
|---|
BasicEntity()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all object
|
boolean |
equals(Object obj) |
Long |
getId()
Return the value of ID field
|
String |
getRemarks()
Returns the remarks
|
int |
hashCode() |
boolean |
isActive()
Informs if this entities is active
|
boolean |
isDeleted()
Return if this entity it is deleted
|
void |
setActive(boolean active)
Defines the activation state this entity
|
void |
setDeleted(boolean deleted)
Defines this entity like as deleted or not
|
void |
setId(Long id)
Defines a new value to field ID.
|
void |
setRemarks(String remarks)
Defines a new value to the remarks
|
String |
toString() |
public BasicEntity()
public void setId(Long id)
Entitablepublic boolean isActive()
Activablepublic void setActive(boolean active)
Activablepublic boolean isDeleted()
LogicDeletableisDeleted in interface LogicDeletablepublic void setDeleted(boolean deleted)
LogicDeletablesetDeleted in interface LogicDeletabledeleted - set true if is deletedpublic String getRemarks()
RemarkablegetRemarks in interface Remarkablepublic void setRemarks(String remarks)
RemarkablesetRemarks in interface Remarkableremarks - sets a simple string value or nullpublic void clear()
ClearableCopyright © 2016. All rights reserved.