net.sf.saffron.ext
Class ObjectTable
java.lang.Object
|
+--net.sf.saffron.ext.AbstractTable
|
+--net.sf.saffron.ext.ObjectTable
- All Implemented Interfaces:
- SaffronTable
- public class ObjectTable
- extends AbstractTable
ObjectTable
is a component of an ObjectSchema
.
- Since:
- 8 February, 2002
- Version:
- $Id: //open/saffron/src/net/sf/saffron/ext/ObjectTable.java#3 $
- Author:
- jhyde
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectTable
public ObjectTable(SaffronSchema schema,
SaffronType rowType)
getQualifiedName
public String getQualifiedName()
- Description copied from interface:
SaffronTable
- Obtain an identifier for this table. The identifier must be unique
with respect to the Connection producing this table.
- Specified by:
getQualifiedName
in interface SaffronTable
- Overrides:
getQualifiedName
in class AbstractTable
- Returns:
- qualified name
addAccessor
public void addAccessor(String fieldName,
String schemaMethodName)
- Records the fact that there is another way to access that a field
access or method call. For example, "select from classes as c where
c.getName().equals(x)" is the same as "schema.classForName(x)".
toRel
public SaffronRel toRel(VolcanoCluster cluster,
SaffronConnection connection)
- Description copied from interface:
SaffronTable
- Converts this table into a
relational expression
.
The planner
calls this
method to convert a table into an initial relational expression,
generally something abstract, such as a
TableAccessRel
, then optimizes this expression
by applying rules
to transform it
into more efficient access methods for this table.
- Parameters:
cluster
- the cluster the relational expression will belong toconnection
- the parse tree of the expression which evaluates
to a connection object