public class StatusRepository extends BaseRepository
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_RESOURCE_FILE_NAME |
private static StatusRepository |
repository |
private static java.lang.String |
STATUS_PREFIX |
COPYRIGHT
Modifier | Constructor and Description |
---|---|
private |
StatusRepository()
Users should use static getInstance() method.
|
Modifier and Type | Method and Description |
---|---|
static StatusRepository |
getInstance() |
protected java.lang.String |
getName() |
java.lang.String |
getStatusMessage(int theStatusId)
Get the status message associated with a status code.
|
java.lang.String |
getStatusText(int theStatusId)
Performs a lookup in the repository for the status text representing the
status code provided.
|
lookup, lookup
private static final java.lang.String DEFAULT_RESOURCE_FILE_NAME
private static final java.lang.String STATUS_PREFIX
private static StatusRepository repository
private StatusRepository()
public static StatusRepository getInstance()
protected java.lang.String getName()
getName
in class BaseRepository
public java.lang.String getStatusText(int theStatusId)
theStatusId
- - the status codepublic java.lang.String getStatusMessage(int theStatusId)
theStatusId
- - the status code