com.caucho.amber.expr
Class EmbeddedSchemaExpr

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

public class EmbeddedSchemaExpr
extends SchemaExpr

Represents an embedded from a from-item table.


Constructor Summary
EmbeddedSchemaExpr(EmbeddedExpr expr, java.lang.String name)
          Creates the embedded schema.
 
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.
 EmbeddedExpr getExpr()
          Returns the embedded expression.
 java.lang.String getTailName()
          Returns the tail name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmbeddedSchemaExpr

public EmbeddedSchemaExpr(EmbeddedExpr expr,
                          java.lang.String name)
Creates the embedded schema.

Method Detail

getTailName

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

Specified by:
getTailName in class SchemaExpr

getExpr

public EmbeddedExpr getExpr()
Returns the embedded expression.


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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object