public interface Record extends Comparable<Record>, Serializable
| 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 |
removeResourceProperty(String key)
Remove a property from Record.
|
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.
|
compareToSet<String> getRequiredFields()
Set<String> getComputedFields()
SortedSet<String> getQuerableKeys() throws Exception
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 removeResourceProperty(String key)
key - the key of the requested property to removevoid validate()
throws InvalidValueException
InvalidValueExceptionCopyright © 2020. All Rights Reserved.