@DTO public abstract class DTOObjectAbstract extends java.lang.Object implements DTOObjectInterface
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
code
Code of DTO's entity.
|
private boolean |
isCodeSet
Code set flag
|
private boolean |
isNameSet
Name set flag
|
private java.lang.String |
name
Name of DTO's entity.
|
private java.lang.String |
uri
URI of DTO's entity.
|
| Constructor and Description |
|---|
DTOObjectAbstract() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCode()
Returns code of the entity.
|
java.lang.String |
getName()
Returns name of the entity.
|
java.lang.String |
getUri()
Returns URI of the entity.
|
boolean |
isCodeSet()
This flag is used to identify attribute code of the entity that is set on
the input DTO (therefore attribute value is used in a corresponding command
call).
|
boolean |
isNameSet()
This flag is used to identify attribute name of the entity that is set on
the input DTO (therefore attribute value is used in a corresponding command
call).
|
void |
setCode(java.lang.String code)
Sets code of the entity.
|
void |
setName(java.lang.String name)
Sets name of the entity.
|
void |
setUri(java.lang.String id)
Sets URI of the entity.
|
getCode in interface DTOObjectInterfacegetName in interface DTOObjectInterfacegetUri in interface DTOObjectInterfacesetCode in interface DTOObjectInterfacecode - Code of the entitysetName in interface DTOObjectInterfacename - Name of the entitysetUri in interface DTOObjectInterfaceid - URI of the entitytrue - Value will be used and stored to DB. Code was set
using DTOObjectInterface.setCode(String) or was filled not null value in constructor.
false - Default value will be used or code will not be
persisted to DB. Code was not set using DTOObjectInterface.setCode(String) or was
filled null value in constructor.isCodeSet in interface DTOObjectInterfacetrue - Value will be used and stored to DB. Name was set
using DTOObjectInterface.setName(String) or was filled not null value in constructor.
false - Default value will be used or name will not be
persisted to DB. Name was not set using DTOObjectInterface.setName(String) or was
filled null value in constructor.isNameSet in interface DTOObjectInterface