org.oreodata.ref
Class SimpleRecordProxy

java.lang.Object
  |
  +--org.oreodata.ref.RecordProxy
        |
        +--org.oreodata.ref.SimpleRecordProxy
All Implemented Interfaces:
Record, RecordPointer

public class SimpleRecordProxy
extends RecordProxy

A simple record pointer.

Author:
Jonathan Revusky

Constructor Summary
SimpleRecordProxy(java.lang.String dataSourceName, java.lang.String type, java.lang.Object primaryKey)
           
 
Method Summary
 java.lang.Object getPrimaryKey()
          Retrieve the value of the record's primary key.
 java.lang.String getType()
           
 Record getUnderlyingRecord()
           
 void wipeCachedInfo()
           
 
Methods inherited from class org.oreodata.ref.RecordProxy
clearFields, equals, freeze, get, get, getChildren, getMetadata, getMutableCopy, getParent, hasChildren, isImmutable, isRootElement, isStale, set, set, setMetadata, setPrimaryKey, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleRecordProxy

public SimpleRecordProxy(java.lang.String dataSourceName,
                         java.lang.String type,
                         java.lang.Object primaryKey)
Method Detail

getUnderlyingRecord

public Record getUnderlyingRecord()

wipeCachedInfo

public void wipeCachedInfo()

getType

public java.lang.String getType()
Specified by:
getType in interface Record
Overrides:
getType in class RecordProxy
Returns:
the name of this record type subclasses must implement this. e.g. "reminder"

getPrimaryKey

public java.lang.Object getPrimaryKey()
Description copied from interface: Record
Retrieve the value of the record's primary key.

Specified by:
getPrimaryKey in interface Record
Overrides:
getPrimaryKey in class RecordProxy
Returns:
the value of this record's primary key, or null if it has not been set.