Package org.eclipse.persistence.eis
Class EISMappedRecord
- java.lang.Object
-
- org.eclipse.persistence.internal.core.sessions.CoreAbstractRecord
-
- org.eclipse.persistence.internal.sessions.AbstractRecord
-
- org.eclipse.persistence.eis.EISMappedRecord
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map,Record
public class EISMappedRecord extends org.eclipse.persistence.internal.sessions.AbstractRecordAn
EISMappedRecordacts as aRecordwrapper. It allows database row field-value pair mappings to be used as a mapped record implementation.- See Also:
- Serialized Form
- Author:
- James
- Since:
- OracleAS TopLink 10g (10.0.3)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
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
-
-
Field Summary
Fields Modifier and Type Field Description protected EISAccessoraccessorprotected java.util.Maprecord
-
Constructor Summary
Constructors Constructor Description EISMappedRecord(java.util.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(java.lang.String fieldName)Check if the field is contained in the row.booleancontainsKey(org.eclipse.persistence.internal.helper.DatabaseField key)Check if the field is contained in the row.java.lang.Objectget(java.lang.String key)Forward the request to the record.java.lang.Objectget(org.eclipse.persistence.internal.helper.DatabaseField field)Forward the request to the record.EISAccessorgetAccessor()Return the accessor.java.util.VectorgetFields()INTERNAL: getFields() is sued internally in a few places, so try to make that work for mapped records.java.util.MapgetRecord()Return the wrapped record.java.util.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.java.util.SetkeySet()Forward the request to the record.voidsetAccessor(EISAccessor accessor)Set the accessor.voidsetRecord(java.util.Map record)Set the wrapped record.intsize()Forward the request to the record.java.lang.StringtoString()Print all of the record keys and values.java.util.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
-
-
-
-
Field Detail
-
record
protected java.util.Map record
-
accessor
protected EISAccessor accessor
-
-
Constructor Detail
-
EISMappedRecord
public EISMappedRecord(java.util.Map record, EISAccessor accessor)Create a database row wrapper for the record.
-
-
Method Detail
-
getFields
public java.util.Vector getFields()
INTERNAL: getFields() is sued internally in a few places, so try to make that work for mapped records.- Overrides:
getFieldsin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
getValues
public java.util.Vector getValues()
INTERNAL: getValues() is sued internally in a few places, so try to make that work for mapped records.- Overrides:
getValuesin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
keySet
public java.util.Set keySet()
Forward the request to the record.- Specified by:
keySetin interfacejava.util.Map- Overrides:
keySetin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
values
public java.util.Collection values()
Forward the request to the record.- Specified by:
valuesin interfacejava.util.Map- Overrides:
valuesin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
size
public int size()
Forward the request to the record.- Specified by:
sizein interfacejava.util.Map- Overrides:
sizein classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
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 interfacejava.util.Map- Overrides:
isEmptyin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
clear
public void clear()
Forward the request to the record.- Specified by:
clearin interfacejava.util.Map- Overrides:
clearin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
get
public java.lang.Object get(java.lang.String key)
Forward the request to the record.- Overrides:
getin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
get
public java.lang.Object get(org.eclipse.persistence.internal.helper.DatabaseField field)
Forward the request to the record. Wrapped nested records and collections to SDKFieldValues.- Overrides:
getin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
containsKey
public boolean containsKey(java.lang.String fieldName)
Check if the field is contained in the row.- Overrides:
containsKeyin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
containsKey
public boolean containsKey(org.eclipse.persistence.internal.helper.DatabaseField key)
Check if the field is contained in the row.- Overrides:
containsKeyin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
getRecord
public java.util.Map getRecord()
Return the wrapped record.
-
setRecord
public void setRecord(java.util.Map record)
Set the wrapped record.
-
getAccessor
public EISAccessor getAccessor()
Return the accessor.
-
setAccessor
public void setAccessor(EISAccessor accessor)
Set the accessor.
-
toString
public java.lang.String toString()
Print all of the record keys and values.- Overrides:
toStringin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
-