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.NoEntrynoEntry| Constructor and Description |
|---|
EISMappedRecord(java.util.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(java.lang.String fieldName)
Check if the field is contained in the row.
|
java.lang.Object |
get(DatabaseField field)
Forward the request to the record.
|
java.lang.Object |
get(java.lang.String key)
Forward the request to the record.
|
EISAccessor |
getAccessor()
Return the accessor.
|
java.util.Vector |
getFields()
INTERNAL:
getFields() is sued internally in a few places, so try to make that work for mapped records.
|
java.util.Map |
getRecord()
Return the wrapped record.
|
java.util.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.
|
java.util.Set |
keySet()
Forward the request to the record.
|
void |
setAccessor(EISAccessor accessor)
Set the accessor.
|
void |
setRecord(java.util.Map record)
Set the wrapped record.
|
int |
size()
Forward the request to the record.
|
java.lang.String |
toString()
Print all of the record keys and values.
|
java.util.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, setSopObjectpublic EISMappedRecord(java.util.Map record,
EISAccessor accessor)
public java.util.Vector getFields()
getFields in class AbstractRecordpublic java.util.Vector getValues()
getValues in class AbstractRecordpublic java.util.Set keySet()
keySet in interface java.util.MapkeySet in class AbstractRecordpublic java.util.Collection values()
values in interface java.util.Mapvalues in class AbstractRecordpublic int size()
size in interface java.util.Mapsize in class AbstractRecordpublic boolean isEmpty()
isEmpty in interface java.util.MapisEmpty in class AbstractRecordpublic void clear()
clear in interface java.util.Mapclear in class AbstractRecordpublic java.lang.Object get(java.lang.String key)
get in class AbstractRecordpublic java.lang.Object get(DatabaseField field)
get in class AbstractRecordpublic boolean containsKey(java.lang.String fieldName)
containsKey in class AbstractRecordpublic boolean containsKey(DatabaseField key)
containsKey in class AbstractRecordpublic java.util.Map getRecord()
public void setRecord(java.util.Map record)
public EISAccessor getAccessor()
public void setAccessor(EISAccessor accessor)
public java.lang.String toString()
toString in class AbstractRecordEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference