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:
Serializable,Cloneable,Map,Record
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.
- See Also:
- Author:
- James
-
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
FieldsFields inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
fields, lookupField, noEntry, nullValueInFields, size, sopObject, values -
Constructor Summary
ConstructorsConstructorDescriptionEISMappedRecord(Map record, EISAccessor accessor) Create a database row wrapper for the record. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Forward the request to the record.booleancontainsKey(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.Forward the request to the record.get(org.eclipse.persistence.internal.helper.DatabaseField field) Forward the request to the record.Return the accessor.INTERNAL: getFields() is sued internally in a few places, so try to make that work for mapped records.Return the wrapped record.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.keySet()Forward the request to the record.voidsetAccessor(EISAccessor accessor) Set the accessor.voidSet the wrapped record.intsize()Forward the request to the record.toString()Print all of the record keys and values.values()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, setValuesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
record
-
accessor
-
-
Constructor Details
-
EISMappedRecord
Create a database row wrapper for the record.
-
-
Method Details
-
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
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
Forward the request to the record. -
values
Forward the request to the record. -
size
public int size()Forward the request to the record. -
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. -
clear
public void clear()Forward the request to the record. -
get
Forward the request to the record.- Overrides:
getin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
get
Forward the request to the record. Wrapped nested records and collections to SDKFieldValues.- Overrides:
getin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
containsKey
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
Return the wrapped record. -
setRecord
Set the wrapped record. -
getAccessor
Return the accessor. -
setAccessor
Set the accessor. -
toString
Print all of the record keys and values.- Overrides:
toStringin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-