org.tranql.ql
Class QuerySource

java.lang.Object
  extended byorg.tranql.ql.AbstractNode
      extended byorg.tranql.ql.AliasedEntity
          extended byorg.tranql.ql.QuerySource
All Implemented Interfaces:
Node, java.io.Serializable

public final class QuerySource
extends AliasedEntity

This subclass is used for select queries and adds a forUpdate flag. If the for update flag is set, an exclusive lock will be acquired on the entities selected.

Version:
$Revision: 133 $ $Date: 2004-10-19 22:42:06 +0200 (Tue, 19 Oct 2004) $
See Also:
Serialized Form

Constructor Summary
QuerySource(Entity entity, java.lang.String alias)
           
QuerySource(Entity entity, java.lang.String alias, boolean forUpdate)
           
 
Method Summary
 boolean isForUpdate()
           
 java.lang.Object visit(QueryVisitor visitor, java.lang.Object param)
           
 
Methods inherited from class org.tranql.ql.AliasedEntity
getAlias, 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
 

Constructor Detail

QuerySource

public QuerySource(Entity entity,
                   java.lang.String alias)

QuerySource

public QuerySource(Entity entity,
                   java.lang.String alias,
                   boolean forUpdate)
Method Detail

isForUpdate

public boolean isForUpdate()

visit

public java.lang.Object visit(QueryVisitor visitor,
                              java.lang.Object param)
                       throws QueryException
Throws:
QueryException


Copyright © -2006 The Codehaus. All Rights Reserved.