org.tranql.ql
Class AliasedEntity

java.lang.Object
  extended by org.tranql.ql.AbstractNode
      extended by org.tranql.ql.AliasedEntity
All Implemented Interfaces:
java.io.Serializable, Node
Direct Known Subclasses:
Delete, DerivedTable, Insert, QuerySource, SubQuerySource, Update

public abstract class AliasedEntity
extends AbstractNode

This abstract class associates and alias with a schema entity. This is used both to initally associate an entity with an alias in an insert, update, delete or the from cluase of a select query, and later it is used in the where clause to identify an entity. This node expects no children.

Version:
$Revision: 138 $ $Date: 2004-10-21 05:52:45 +0200 (Thu, 21 Oct 2004) $
See Also:
Serialized Form

Constructor Summary
AliasedEntity(Entity entity, java.lang.String alias)
           
 
Method Summary
 java.lang.String getAlias()
           
 Entity getEntity()
           
 
Methods inherited from class org.tranql.ql.AbstractNode
addChild, getChild, getSibling, isOnlyChild, setSibling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tranql.ql.Node
visit
 

Constructor Detail

AliasedEntity

public AliasedEntity(Entity entity,
                     java.lang.String alias)
Method Detail

getEntity

public Entity getEntity()

getAlias

public java.lang.String getAlias()


Copyright © -2010 The Codehaus. All Rights Reserved.