com.caucho.amber.expr
Class SchemaExpr

java.lang.Object
  extended by com.caucho.amber.expr.SchemaExpr
Direct Known Subclasses:
CollectionSchemaExpr, ElementCollectionSchemaExpr, EmbeddedSchemaExpr, FromIdSchemaExpr, ManyToOneSchemaExpr, OneToManySchemaExpr, OneToOneSchemaExpr, TableIdExpr

public abstract class SchemaExpr
extends java.lang.Object

Represents from-item table.


Constructor Summary
SchemaExpr()
           
 
Method Summary
abstract  FromItem addFromItem(QueryParser parser, java.lang.String id)
          Adds the from item.
abstract  SchemaExpr createField(QueryParser parser, java.lang.String name)
          Creates a field-based schema.
abstract  java.lang.String getTailName()
          Returns the tail name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaExpr

public SchemaExpr()
Method Detail

getTailName

public abstract java.lang.String getTailName()
Returns the tail name.


createField

public abstract SchemaExpr createField(QueryParser parser,
                                       java.lang.String name)
                                throws QueryParseException
Creates a field-based schema.

Throws:
QueryParseException

addFromItem

public abstract FromItem addFromItem(QueryParser parser,
                                     java.lang.String id)
                              throws QueryParseException
Adds the from item.

Throws:
QueryParseException