de.mguennewig.pobjects
Class DynamicRecord

java.lang.Object
  extended by de.mguennewig.pobjects.Record
      extended by de.mguennewig.pobjects.DynamicRecord

public final class DynamicRecord
extends Record

A record that represents a row within a dynamically created SELECT statement.

Author:
Michael Günnewig

Constructor Summary
DynamicRecord(DynamicSelectExpr te)
           
 
Method Summary
 java.lang.Object get(int index)
          Get value of field with index index.
 DynamicSelectExpr getTableExpr()
          Returns the metadata declaration for this Record.
 void set(int index, java.lang.Object value)
          Set value of field with index index.
 
Methods inherited from class de.mguennewig.pobjects.Record
format, get, set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicRecord

public DynamicRecord(DynamicSelectExpr te)
Method Detail

get

public final java.lang.Object get(int index)
Get value of field with index index.

This method is primarily intended for use by procedures that work on meta level of de.mguennewig.pobjects. It differs from the per field getXXX() methods in that it does not load the object's data if it is not in memory. If unsure whether the object's state has been internalized, then any call to this method must be preceded by a call to PObject.loadIfReference().

Specified by:
get in class Record

getTableExpr

public final DynamicSelectExpr getTableExpr()
Returns the metadata declaration for this Record.

Specified by:
getTableExpr in class Record

set

public void set(int index,
                java.lang.Object value)
Set value of field with index index.

This method is primarily intended for use by procedures that work on meta level of de.mguennewig.pobjects. It differs from the per field setXXX() methods in that it does not load the object's data if it is not in memory. If unsure whether the object's state has been internalized, then any call to this method must be preceded by a call to PObject.loadIfReference().

Specified by:
set in class Record