- java.lang.Object
-
- org.eclipse.persistence.internal.core.sessions.CoreAbstractRecord
-
- org.eclipse.persistence.internal.sessions.AbstractRecord
-
- org.eclipse.persistence.eis.EISMappedRecord
-
- All Implemented Interfaces:
Serializable,Cloneable,Map,DataRecord
public class EISMappedRecord extends AbstractRecord
An
EISMappedRecordacts as aRecordwrapper. It allows database row field-value pair mappings to be used as a mapped record implementation.- Since:
- OracleAS TopLink 10g (10.0.3)
- Author:
- James
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
AbstractRecord.EntrySet, AbstractRecord.KeySet, AbstractRecord.NoEntry, AbstractRecord.RecordEntry, AbstractRecord.RecordEntryIterator, AbstractRecord.RecordKeyIterator, AbstractRecord.RecordValuesIterator, AbstractRecord.ValuesSet
-
-
Field Summary
Fields Modifier and Type Field Description protected EISAccessoraccessorprotected Maprecord-
Fields inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
fields, lookupField, noEntry, nullValueInFields, size, sopObject, values
-
-
Constructor Summary
Constructors Constructor Description EISMappedRecord(Map record, EISAccessor accessor)Create a database row wrapper for the record.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Forward the request to the record.booleancontainsKey(String fieldName)Check if the field is contained in the row.booleancontainsKey(DatabaseField key)Check if the field is contained in the row.Objectget(String key)Forward the request to the record.Objectget(DatabaseField field)Forward the request to the record.EISAccessorgetAccessor()Return the accessor.Vector<DatabaseField>getFields()INTERNAL: getFields() is sued internally in a few places, so try to make that work for mapped records.MapgetRecord()Return the wrapped record.VectorgetValues()INTERNAL: getValues() is sued internally in a few places, so try to make that work for mapped records.booleanisEmpty()Return if the row is empty.SetkeySet()Forward the request to the record.voidsetAccessor(EISAccessor accessor)Set the accessor.voidsetRecord(Map record)Set the wrapped record.intsize()Forward the request to the record.StringtoString()Print all of the record keys and values.Collectionvalues()Forward the request to the record.-
Methods inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
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, setValues
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
record
protected Map record
-
accessor
protected EISAccessor accessor
-
-
Constructor Detail
-
EISMappedRecord
public EISMappedRecord(Map record, EISAccessor accessor)
Create a database row wrapper for the record.
-
-
Method Detail
-
getFields
public Vector<DatabaseField> getFields()
INTERNAL: getFields() is sued internally in a few places, so try to make that work for mapped records.- Overrides:
getFieldsin classAbstractRecord
-
getValues
public Vector getValues()
INTERNAL: getValues() is sued internally in a few places, so try to make that work for mapped records.- Overrides:
getValuesin classAbstractRecord
-
keySet
public Set keySet()
Forward the request to the record.- Specified by:
keySetin interfaceMap- Overrides:
keySetin classAbstractRecord
-
values
public Collection values()
Forward the request to the record.- Specified by:
valuesin interfaceMap- Overrides:
valuesin classAbstractRecord
-
size
public int size()
Forward the request to the record.- Specified by:
sizein interfaceMap- Overrides:
sizein classAbstractRecord
-
isEmpty
public boolean isEmpty()
Return if the row is empty. For some reason Attunity MappedRecords think they are empty when not, so always return false.- Specified by:
isEmptyin interfaceMap- Overrides:
isEmptyin classAbstractRecord
-
clear
public void clear()
Forward the request to the record.- Specified by:
clearin interfaceMap- Overrides:
clearin classAbstractRecord
-
get
public Object get(String key)
Forward the request to the record.- Overrides:
getin classAbstractRecord
-
get
public Object get(DatabaseField field)
Forward the request to the record. Wrapped nested records and collections to SDKFieldValues.- Overrides:
getin classAbstractRecord
-
containsKey
public boolean containsKey(String fieldName)
Check if the field is contained in the row.- Overrides:
containsKeyin classAbstractRecord
-
containsKey
public boolean containsKey(DatabaseField key)
Check if the field is contained in the row.- Overrides:
containsKeyin classAbstractRecord
-
getRecord
public Map getRecord()
Return the wrapped record.
-
setRecord
public void setRecord(Map record)
Set the wrapped record.
-
getAccessor
public EISAccessor getAccessor()
Return the accessor.
-
setAccessor
public void setAccessor(EISAccessor accessor)
Set the accessor.
-
toString
public String toString()
Print all of the record keys and values.- Overrides:
toStringin classAbstractRecord
-
-