IDT - the type of the technical identifier associated to this entity.public abstract class AbstractEntity<IDT extends Serializable> extends Object implements IEntity<IDT>
| Modifier and Type | Field and Description |
|---|---|
protected IDT |
id
Technical identifier of the entity.
|
| Constructor and Description |
|---|
AbstractEntity() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String attributeName)
Gets the value of an attribute of this entity by reflection.
|
IDT |
getId()
Gets the technical identifier of the entity.
|
void |
set(String attributeName,
Object attributeValue)
Sets the value of an attribute of this entity by reflection.
|
void |
setId(IDT id)
Sets the technical identifier of the entity.
|
protected IDT extends Serializable id
public Object get(String attributeName)
get in interface IEntity<IDT extends Serializable>attributeName - the name of the attribute for which one to get a value.attributeName.public IDT getId()
getId in interface IEntity<IDT extends Serializable>public void set(String attributeName, Object attributeValue)
set in interface IEntity<IDT extends Serializable>attributeName - the name of the attribute for which one to set a value.attributeValue - the value of the attribute to set.public void setId(IDT id)
setId in interface IEntity<IDT extends Serializable>id - the technical identifier of the entity.Copyright © 2017 GOMOOB. All rights reserved.