public class EISMappedRecord
extends org.eclipse.persistence.internal.sessions.AbstractRecord
An EISMappedRecord acts as a Record
wrapper. It allows database row field-value pair mappings to be used as a
mapped record implementation.
org.eclipse.persistence.internal.sessions.AbstractRecord.EntrySet, org.eclipse.persistence.internal.sessions.AbstractRecord.KeySet, org.eclipse.persistence.internal.sessions.AbstractRecord.NoEntry, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordEntry, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordEntryIterator, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordKeyIterator, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordValuesIterator, org.eclipse.persistence.internal.sessions.AbstractRecord.ValuesSet| Modifier and Type | Field and Description |
|---|---|
protected EISAccessor |
accessor |
protected Map |
record |
| 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(org.eclipse.persistence.internal.helper.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(org.eclipse.persistence.internal.helper.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, getLookupField, getSopObject, getValues, getValues, hasNullValueInFields, hasSopObject, keys, mergeFrom, put, put, put, putAll, remove, remove, remove, replaceAt, replaceAt, resetSize, setFields, setNullValueInFields, setSopObject, setValuesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Map record
protected EISAccessor accessor
public EISMappedRecord(Map record, EISAccessor accessor)
public Vector getFields()
getFields in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic Vector getValues()
getValues in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic Set keySet()
public Collection values()
public int size()
public boolean isEmpty()
public void clear()
public Object get(String key)
get in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic Object get(org.eclipse.persistence.internal.helper.DatabaseField field)
get in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic boolean containsKey(String fieldName)
containsKey in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic boolean containsKey(org.eclipse.persistence.internal.helper.DatabaseField key)
containsKey in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic Map getRecord()
public void setRecord(Map record)
public EISAccessor getAccessor()
public void setAccessor(EISAccessor accessor)
public String toString()
toString in class org.eclipse.persistence.internal.sessions.AbstractRecordCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.