public class AccountVO extends EntityVO
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_MAX_LENGTH
Status maximum length.
|
static int |
TYPE_MAX_LENGTH
Type maximum length.
|
| Constructor and Description |
|---|
AccountVO()
Default constructor.
|
AccountVO(AccountId aId)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(Property<?> property)
Add property.
|
void |
addStatus(String status)
Add status to account statuses.
|
void |
addType(String type)
Add type to account types.
|
AccountVO |
clone() |
boolean |
equals(Object obj) |
AccountId |
getId() |
Map<String,Property<?>> |
getProperties() |
Property<?> |
getProperty(String propertyKey)
Get property.
|
Set<String> |
getStatuses() |
Set<String> |
getTypes() |
int |
hashCode() |
boolean |
hasProperty(String propertyKey)
Is property exist.
|
boolean |
hasStatus(String status)
Is status exist in account statuses.
|
boolean |
hasType(String type)
Is type exist in account types.
|
void |
removeProperty(String propertyKey)
Remove property.
|
void |
removeStatus(String status)
Remove status from account statuses.
|
void |
removeType(String type)
Remove type from account types.
|
void |
setId(AccountId aId) |
String |
toString() |
getCreated, getUpdated, setCreated, setUpdatedpublic static final int TYPE_MAX_LENGTH
public static final int STATUS_MAX_LENGTH
public AccountVO()
public AccountVO(AccountId aId)
aId - account identifierpublic AccountId getId()
public void setId(AccountId aId)
public void addType(String type)
type - account type, can't be empty and length more then permitted (check TYPE_MAX_LENGTH constant)public void removeType(String type)
type - account typepublic boolean hasType(String type)
type - account typetrue if exist or falsepublic void addStatus(String status)
status - account status, can't be empty and length more then permitted (check STATUS_MAX_LENGTH constant)public void removeStatus(String status)
status - account statuspublic boolean hasStatus(String status)
status - account statustrue if exist or falsepublic Property<?> getProperty(String propertyKey)
propertyKey - property keyProperty or nullpublic void addProperty(Property<?> property)
property - property, can't be null and property key can't be emptypublic void removeProperty(String propertyKey)
propertyKey - property keypublic boolean hasProperty(String propertyKey)
propertyKey - property keytrue if exist or falseCopyright © 2013–2019 BB Corp. All rights reserved.