net.sf.saffron.runtime
Class SyntheticObject

java.lang.Object
  |
  +--net.sf.saffron.runtime.SyntheticObject

public abstract class SyntheticObject
extends Object

SyntheticObject is a base class for all objects built 'on the fly' by the saffron system. For example, if you write

for (i in select {emp.firstName, emp.lastName} from emps as emp) {
     ...
 }
then i's type will be a class, generated by the saffron compiler, something like this:
class saffron.runtime.Dummy_a01bc65 extends SyntheticObject {
     public String firstName;
     public String lastName;
 }

Since:
23 April, 2002
Version:
$Id: //open/saffron/src/net/sf/saffron/runtime/SyntheticObject.java#3 $
Author:
jhyde

Constructor Summary
SyntheticObject()
           
 
Method Summary
 Field[] getFields()
          Returns the fields of this object, in the order they were specified in the original query.
 Object getFieldValue(int i)
          Returns the value of a given field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntheticObject

public SyntheticObject()
Method Detail

getFieldValue

public Object getFieldValue(int i)
Returns the value of a given field.


getFields

public Field[] getFields()
Returns the fields of this object, in the order they were specified in the original query.


SourceForge.net_Logo