public class EISMappedRecord extends AbstractRecord
An EISMappedRecord
acts as a Record
wrapper. It allows database row field-value pair mappings to be used as a
mapped record implementation.
AbstractRecord.NoEntry
noEntry
Constructor and Description |
---|
EISMappedRecord(Map record,
EISAccessor accessor)
Create a database row wrapper for the record.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Forward the request to the record.
|
boolean |
containsKey(DatabaseField key)
Check if the field is contained in the row.
|
boolean |
containsKey(String fieldName)
Check if the field is contained in the row.
|
Object |
get(DatabaseField field)
Forward the request to the record.
|
Object |
get(String key)
Forward the request to the record.
|
EISAccessor |
getAccessor()
Return the accessor.
|
Vector |
getFields()
INTERNAL:
getFields() is sued internally in a few places, so try to make that work for mapped records.
|
Map |
getRecord()
Return the wrapped record.
|
Vector |
getValues()
INTERNAL:
getValues() is sued internally in a few places, so try to make that work for mapped records.
|
boolean |
isEmpty()
Return if the row is empty.
|
Set |
keySet()
Forward the request to the record.
|
void |
setAccessor(EISAccessor accessor)
Set the accessor.
|
void |
setRecord(Map record)
Set the wrapped record.
|
int |
size()
Forward the request to the record.
|
String |
toString()
Print all of the record keys and values.
|
Collection |
values()
Forward the request to the record.
|
add, clone, contains, containsKey, containsValue, elements, entrySet, get, getField, getIndicatingNoEntry, getIndicatingNoEntry, getSopObject, getValues, getValues, hasNullValueInFields, hasSopObject, keys, mergeFrom, put, put, put, putAll, remove, remove, remove, replaceAt, replaceAt, setNullValueInFields, setSopObject
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public EISMappedRecord(Map record, EISAccessor accessor)
public Vector getFields()
getFields
in class AbstractRecord
public Vector getValues()
getValues
in class AbstractRecord
public Set keySet()
keySet
in interface Map
keySet
in class AbstractRecord
public Collection values()
values
in interface Map
values
in class AbstractRecord
public int size()
size
in interface Map
size
in class AbstractRecord
public boolean isEmpty()
isEmpty
in interface Map
isEmpty
in class AbstractRecord
public void clear()
clear
in interface Map
clear
in class AbstractRecord
public Object get(String key)
get
in class AbstractRecord
public Object get(DatabaseField field)
get
in class AbstractRecord
public boolean containsKey(String fieldName)
containsKey
in class AbstractRecord
public boolean containsKey(DatabaseField key)
containsKey
in class AbstractRecord
public Map getRecord()
public void setRecord(Map record)
public EISAccessor getAccessor()
public void setAccessor(EISAccessor accessor)
public String toString()
toString
in class AbstractRecord
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference