com.simba.dsi.ext.aetree
Class AEValueSubQuery

java.lang.Object
  extended by com.simba.dsi.CppClassWrapper
      extended by com.simba.dsi.ext.aetree.AENode
          extended by com.simba.dsi.ext.aetree.AEExpr
              extended by com.simba.dsi.ext.aetree.AEValueExpr
                  extended by com.simba.dsi.ext.aetree.AEValueSubQuery
All Implemented Interfaces:
IColumn

public final class AEValueSubQuery
extends AEValueExpr

This class represents a value sub-query.

Value sub-queries can appear as a right operand for a comparison predicate, or in a value list of value expression. A value sub-query is a value expression and is treated as such.

The most important difference between an AEValueSubQuery an a relational AESubQuery is that an AEValueSubQuery returns exactly 1 value, and as such is treated like a value expression. An AESubQuery returns a result set of more than >= 1 value.


Constructor Summary
AEValueSubQuery(long objRef, boolean isCorrelated)
          Constructor.
 
Method Summary
 AERelationalExpr getQueryExpr()
          Retrieves the sub-query as a relational expression.
 boolean isCorrelated()
          Whether the sub-query is correlated.
 
Methods inherited from class com.simba.dsi.ext.aetree.AEValueExpr
getCatalogName, getColumnLength, getDisplaySize, getLabel, getName, getNullable, getSchemaName, getSearchable, getTableName, getTypeMetadata, getUpdatable, isAutoUnique, isCaseSensitive, isDefinitelyWritable, isUnnamed
 
Methods inherited from class com.simba.dsi.ext.aetree.AENode
getChild, getChildCount, getNodeType
 
Methods inherited from class com.simba.dsi.CppClassWrapper
getObjRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AEValueSubQuery

public AEValueSubQuery(long objRef,
                       boolean isCorrelated)
Constructor.

Parameters:
objRef - The corresponding C++ object reference.
isCorrelated - Whether the sub-query is correlated.
Method Detail

isCorrelated

public boolean isCorrelated()
Whether the sub-query is correlated. A correlated sub-query needs to be re-executed on every fetch.

Returns:
true if the sub-query is correlated, false otherwise.

getQueryExpr

public AERelationalExpr getQueryExpr()
Retrieves the sub-query as a relational expression.

Returns:
the sub-query as a relational expression.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.