EclipseLink 1.0_1.0M2 API Reference - Incubation

org.eclipse.persistence.eis
Class EISMappedRecord

java.lang.Object
  extended by AbstractRecord
      extended by org.eclipse.persistence.eis.EISMappedRecord

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.

Author:
James
Since:
OracleAS TopLink 10g (10.0.3)

Field Summary
protected  EISAccessor accessor
           
protected  java.util.Map record
           
 
Constructor Summary
EISMappedRecord(java.util.Map record, EISAccessor accessor)
          Create a database row wrapper for the record.
 
Method Summary
 void clear()
          Forward the request to the record.
 boolean containsKey(java.lang.String fieldName)
          Check if the field is contained in the row.
 java.lang.Object get(java.lang.String key)
          Forward the request to the record.
 EISAccessor getAccessor()
          Return the accessor.
 java.util.Map getRecord()
          Return the wrapped record.
 boolean isEmpty()
          Return if the row is empty.
 java.util.Set keySet()
          Forward the request to the record.
 void setAccessor(EISAccessor accessor)
          Set the accessor.
 void setRecord(java.util.Map record)
          Set the wrapped record.
 int size()
          Forward the request to the record.
 java.lang.String toString()
          Print all of the record keys and values.
 java.util.Collection values()
          Forward the request to the record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

keySet

public java.util.Set keySet()
Forward the request to the record.


values

public java.util.Collection 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

public java.lang.Object get(java.lang.String key)
Forward the request to the record.


containsKey

public boolean containsKey(java.lang.String fieldName)
Check if the field is contained in the row.


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.


EclipseLink 1.0_1.0M2 API Reference - Incubation