public interface Record extends Comparable<Record>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
CREATION_TIME
KEY : The instant when the
Record was created. |
static String |
ID
KEY : The unique identifier for the
Record
The ID SHOULD automatically created by the implementation class. |
static String |
RECORD_TYPE
KEY : The Type of the represented
Record |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getComputedFields() |
Calendar |
getCreationTime()
Return the instant when this
Record was created. |
String |
getId()
Return the unique id for this
Record |
SortedSet<String> |
getQuerableKeys() |
String |
getRecordType()
Return the
Record Type |
Set<String> |
getRequiredFields() |
Map<String,Serializable> |
getResourceProperties()
Return all resource-specific properties.
|
Serializable |
getResourceProperty(String key)
Return the value of the given resource property.
|
void |
setCreationTime(Calendar creationTime)
The CreationTime is automatically created by the implementation Class.
|
void |
setId(String id)
The ID SHOULD be automatically created by the implementation Class.
|
void |
setResourceProperties(Map<String,? extends Serializable> resourceSpecificProperties)
Set all resource-specific properties, replacing existing ones
|
void |
setResourceProperty(String key,
Serializable value)
Set the value of the given resource property.
|
void |
validate()
Validate the Resource Record.
|
compareTostatic final String ID
Record
The ID SHOULD automatically created by the implementation class.static final String CREATION_TIME
Record was created.
The value MUST be recorded in UTC milliseconds from the epoch.static final String RECORD_TYPE
RecordSet<String> getRequiredFields()
Set<String> getComputedFields()
SortedSet<String> getQuerableKeys() throws Exception
instance - Exceptionvoid setId(String id) throws InvalidValueException
Recordid - Unique IDInvalidValueExceptionCalendar getCreationTime()
Record was created.Recordvoid setCreationTime(Calendar creationTime) throws InvalidValueException
Record was created.creationTime - Creation TimeInvalidValueExceptionMap<String,Serializable> getResourceProperties()
void setResourceProperties(Map<String,? extends Serializable> resourceSpecificProperties) throws InvalidValueException
InvalidValueExceptionSerializable getResourceProperty(String key)
key - the key of the requested propertyvoid setResourceProperty(String key, Serializable value) throws InvalidValueException
key - the key of the requested propertyvalue - the value of the given resource propertyInvalidValueExceptionvoid validate()
throws InvalidValueException
InvalidValueExceptionCopyright © 2016. All Rights Reserved.