public interface Record extends Map<String,Object>, Comparable<Record>, Identifiable
| Modifier and Type | Method and Description |
|---|---|
Record |
clone()
Create a clone of the data object.
|
void |
delete() |
Byte |
getByte(CharSequence name) |
Double |
getDouble(CharSequence name) |
RecordFactory |
getFactory()
Get the factory which created the instance.
|
String |
getFieldTitle(String fieldName) |
Float |
getFloat(CharSequence name) |
<T extends Geometry> |
getGeometryValue()
Get the value of the primary geometry attribute.
|
Identifier |
getIdentifier(List<String> fieldNames) |
Identifier |
getIdentifier(String... fieldNames) |
<T> T |
getIdValue()
Get the value of the unique identifier attribute.
|
Integer |
getInteger(CharSequence name) |
Long |
getLong(CharSequence name) |
RecordDefinition |
getRecordDefinition()
Get the meta data describing the Record and it's attributes.
|
Short |
getShort(CharSequence name) |
RecordState |
getState() |
String |
getString(CharSequence name) |
String |
getTypeName() |
<T> T |
getValue(CharSequence name)
Get the value of the attribute with the specified name.
|
<T> T |
getValue(int index)
Get the value of the attribute with the specified index.
|
<T> T |
getValueByPath(CharSequence attributePath) |
Map<String,Object> |
getValueMap(Collection<? extends CharSequence> fieldNames) |
List<Object> |
getValues()
Get the values of all attributes.
|
boolean |
hasField(CharSequence name)
Checks to see if the definition for this Record has an attribute with the
specified name.
|
boolean |
hasValue(CharSequence name) |
boolean |
hasValuesAny(String... fieldNames)
Check if any of the fields have a value.
|
boolean |
isModified() |
boolean |
isValid(int index) |
boolean |
isValid(String fieldName) |
void |
setGeometryValue(Geometry geometry)
Set the value of the primary geometry attribute.
|
void |
setIdentifier(Identifier identifier) |
void |
setIdValue(Object id)
Set the value of the unique identifier attribute.
|
void |
setState(RecordState state) |
void |
setValue(CharSequence name,
Object value)
Set the value of the attribute with the specified name.
|
void |
setValue(int index,
Object value)
Set the value of the attribute with the specified name.
|
void |
setValueByPath(CharSequence attributePath,
Object value) |
<T> T |
setValueByPath(CharSequence attributePath,
Record source,
String sourceAttributePath) |
void |
setValues(Map<String,? extends Object> values) |
void |
setValues(Map<String,Object> record,
Collection<String> fieldNames) |
void |
setValues(Map<String,Object> record,
String... fieldNames) |
void |
setValues(Record object) |
void |
setValuesByPath(Map<String,? extends Object> values)
Set the values on the object based on the values in the map.
|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, valuescompareTogetIdentifierRecord clone()
void delete()
Byte getByte(CharSequence name)
Double getDouble(CharSequence name)
RecordFactory getFactory()
Float getFloat(CharSequence name)
<T extends Geometry> T getGeometryValue()
Identifier getIdentifier(List<String> fieldNames)
Identifier getIdentifier(String... fieldNames)
<T> T getIdValue()
Integer getInteger(CharSequence name)
Long getLong(CharSequence name)
RecordDefinition getRecordDefinition()
Short getShort(CharSequence name)
RecordState getState()
String getString(CharSequence name)
String getTypeName()
<T> T getValue(CharSequence name)
name - The name of the attribute.<T> T getValue(int index)
index - The index of the attribute.<T> T getValueByPath(CharSequence attributePath)
Map<String,Object> getValueMap(Collection<? extends CharSequence> fieldNames)
boolean hasField(CharSequence name)
name - The name of the attribute.boolean hasValue(CharSequence name)
boolean hasValuesAny(String... fieldNames)
fieldNames - boolean isModified()
boolean isValid(int index)
boolean isValid(String fieldName)
void setGeometryValue(Geometry geometry)
geometry - The primary geometry.void setIdentifier(Identifier identifier)
void setIdValue(Object id)
id - The unique identifier.void setState(RecordState state)
void setValue(CharSequence name, Object value)
name - The name of the attribute. param value The attribute value.value - The new value;void setValue(int index,
Object value)
index - The index of the attribute. param value The attribute value.value - The new value;void setValueByPath(CharSequence attributePath, Object value)
<T> T setValueByPath(CharSequence attributePath, Record source, String sourceAttributePath)
void setValues(Map<String,Object> record, Collection<String> fieldNames)
void setValues(Record object)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.