com.caucho.amber.expr
Class TableIdExpr

java.lang.Object
  extended by com.caucho.amber.expr.SchemaExpr
      extended by com.caucho.amber.expr.TableIdExpr

public class TableIdExpr
extends SchemaExpr

Represents from-item table.


Constructor Summary
TableIdExpr(EntityType type, java.lang.String name)
          Creates the table id expr.
 
Method Summary
 FromItem addFromItem(QueryParser parser, java.lang.String id)
          Adds the from item.
 SchemaExpr createField(QueryParser parser, java.lang.String name)
          Creates a field-based schema.
 EntityType getEntityType()
          Returns the entity type.
 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

TableIdExpr

public TableIdExpr(EntityType type,
                   java.lang.String name)
Creates the table id expr.

Method Detail

getEntityType

public EntityType getEntityType()
Returns the entity type.


getTailName

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

Specified by:
getTailName in class SchemaExpr

createField

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

Specified by:
createField in class SchemaExpr
Throws:
QueryParseException

addFromItem

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

Specified by:
addFromItem in class SchemaExpr
Throws:
QueryParseException