Class EISMappedRecord

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map, Record

    public class EISMappedRecord
    extends AbstractRecord

    An EISMappedRecord acts as a Record wrapper. 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
    • Field Detail

      • record

        protected java.util.Map record
    • 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:
        getFields in class 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:
        getValues in class AbstractRecord
      • keySet

        public java.util.Set keySet()
        Forward the request to the record.
        Specified by:
        keySet in interface java.util.Map
        Overrides:
        keySet in class AbstractRecord
      • values

        public java.util.Collection values()
        Forward the request to the record.
        Specified by:
        values in interface java.util.Map
        Overrides:
        values in class AbstractRecord
      • size

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

        public void clear()
        Forward the request to the record.
        Specified by:
        clear in interface java.util.Map
        Overrides:
        clear in class AbstractRecord
      • get

        public java.lang.Object get​(java.lang.String key)
        Forward the request to the record.
        Overrides:
        get in class AbstractRecord
      • get

        public java.lang.Object get​(DatabaseField field)
        Forward the request to the record. Wrapped nested records and collections to SDKFieldValues.
        Overrides:
        get in class AbstractRecord
      • containsKey

        public boolean containsKey​(java.lang.String fieldName)
        Check if the field is contained in the row.
        Overrides:
        containsKey in class 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:
        toString in class AbstractRecord