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/main/saffron/runtime/SyntheticObject.java#1 $
- Author:
- jhyde
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 |
SyntheticObject
public SyntheticObject()
getFields
public Field[] getFields()
- Returns the fields of this object, in the order they were specified
in the original query.
getFieldValue
public Object getFieldValue(int i)
- Returns the value of a given field.