Module eclipselink

Class EISMappedRecord

  • All Implemented Interfaces:
    Serializable, Cloneable, Map, DataRecord

    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:
    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 EISAccessor accessor  
      protected Map record  
      • 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.
    • Constructor Detail

      • EISMappedRecord

        public EISMappedRecord​(Map record,
                               EISAccessor accessor)
        Create a database row wrapper for the record.
    • Method Detail

      • getFields

        public Vector<org.eclipse.persistence.internal.helper.DatabaseField> getFields()
        INTERNAL: getFields() is sued internally in a few places, so try to make that work for mapped records.
        Overrides:
        getFields in class org.eclipse.persistence.internal.sessions.AbstractRecord
      • getValues

        public Vector getValues()
        INTERNAL: getValues() is sued internally in a few places, so try to make that work for mapped records.
        Overrides:
        getValues in class org.eclipse.persistence.internal.sessions.AbstractRecord
      • keySet

        public Set keySet()
        Forward the request to the record.
        Specified by:
        keySet in interface Map
        Overrides:
        keySet in class org.eclipse.persistence.internal.sessions.AbstractRecord
      • values

        public Collection values()
        Forward the request to the record.
        Specified by:
        values in interface Map
        Overrides:
        values in class org.eclipse.persistence.internal.sessions.AbstractRecord
      • size

        public int size()
        Forward the request to the record.
        Specified by:
        size in interface Map
        Overrides:
        size in class org.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:
        isEmpty in interface Map
        Overrides:
        isEmpty in class org.eclipse.persistence.internal.sessions.AbstractRecord
      • clear

        public void clear()
        Forward the request to the record.
        Specified by:
        clear in interface Map
        Overrides:
        clear in class org.eclipse.persistence.internal.sessions.AbstractRecord
      • get

        public Object get​(String key)
        Forward the request to the record.
        Overrides:
        get in class org.eclipse.persistence.internal.sessions.AbstractRecord
      • get

        public Object get​(org.eclipse.persistence.internal.helper.DatabaseField field)
        Forward the request to the record. Wrapped nested records and collections to SDKFieldValues.
        Overrides:
        get in class org.eclipse.persistence.internal.sessions.AbstractRecord
      • containsKey

        public boolean containsKey​(String fieldName)
        Check if the field is contained in the row.
        Overrides:
        containsKey in class org.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:
        containsKey in class org.eclipse.persistence.internal.sessions.AbstractRecord
      • 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:
        toString in class org.eclipse.persistence.internal.sessions.AbstractRecord