public abstract class AbstractRecord extends AbstractMap<String,Object> implements Record, Cloneable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
AbstractRecord() |
| Modifier and Type | Method and Description |
|---|---|
BaseRecord |
clone()
Create a clone of the object.
|
int |
compareTo(Record other) |
void |
delete() |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object o) |
Object |
get(Object key) |
Byte |
getByte(CharSequence name) |
Double |
getDouble(CharSequence name) |
RecordFactory |
getFactory()
Get the factory which created the instance.
|
String |
getFieldTitle(String name) |
Float |
getFloat(CharSequence name) |
<T extends Geometry> |
getGeometryValue()
Get the value of the primary geometry attribute.
|
Identifier |
getIdentifier() |
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) |
Short |
getShort(CharSequence name) |
String |
getString(CharSequence name) |
String |
getTypeName() |
<T> T |
getValue(CharSequence name)
Get the value of the attribute with the specified name.
|
<T> T |
getValueByPath(CharSequence path) |
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) |
Object |
put(String key,
Object value) |
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 |
setValue(CharSequence name,
Object value)
Set the value of the attribute with the specified name.
|
void |
setValueByPath(CharSequence path,
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> attributesNames) |
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.
|
String |
toString()
Return a String representation of the Object.
|
protected void |
updateState() |
clear, containsKey, containsValue, hashCode, isEmpty, keySet, putAll, remove, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitpublic BaseRecord clone()
public int compareTo(Record other)
compareTo in interface Comparable<Record>public boolean equals(Object o)
public Byte getByte(CharSequence name)
public Double getDouble(CharSequence name)
public RecordFactory getFactory()
getFactory in interface Recordpublic String getFieldTitle(String name)
getFieldTitle in interface Recordpublic Float getFloat(CharSequence name)
public <T extends Geometry> T getGeometryValue()
getGeometryValue in interface Recordpublic Identifier getIdentifier()
getIdentifier in interface Identifiablepublic Identifier getIdentifier(List<String> fieldNames)
getIdentifier in interface Recordpublic Identifier getIdentifier(String... fieldNames)
getIdentifier in interface Recordpublic <T> T getIdValue()
getIdValue in interface Recordpublic Integer getInteger(CharSequence name)
getInteger in interface Recordpublic Long getLong(CharSequence name)
public Short getShort(CharSequence name)
public String getString(CharSequence name)
public String getTypeName()
getTypeName in interface Recordpublic <T> T getValue(CharSequence name)
public <T> T getValueByPath(CharSequence path)
getValueByPath in interface Recordpublic Map<String,Object> getValueMap(Collection<? extends CharSequence> fieldNames)
getValueMap in interface Recordpublic List<Object> getValues()
Recordpublic boolean hasField(CharSequence name)
public boolean hasValue(CharSequence name)
public boolean hasValuesAny(String... fieldNames)
RecordhasValuesAny in interface Recordpublic boolean isModified()
isModified in interface Recordpublic void setGeometryValue(Geometry geometry)
setGeometryValue in interface Recordgeometry - The primary geometry.public void setIdentifier(Identifier identifier)
setIdentifier in interface Recordpublic void setIdValue(Object id)
setIdValue in interface Recordid - The unique identifier.public void setValue(CharSequence name, Object value)
public void setValueByPath(CharSequence path, Object value)
setValueByPath in interface Recordpublic <T> T setValueByPath(CharSequence attributePath, Record source, String sourceAttributePath)
setValueByPath in interface Recordpublic void setValues(Map<String,Object> record, Collection<String> attributesNames)
public void setValuesByPath(Map<String,? extends Object> values)
RecordsetValuesByPath in interface Recordvalues - The values to set.public String toString()
toString in class AbstractMap<String,Object>protected void updateState()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.