com.triactive.jdo.store.sql.expr
Class MapFieldExpression

java.lang.Object
  extended bycom.triactive.jdo.store.sql.expr.AbstractSqlExpression
      extended bycom.triactive.jdo.store.sql.expr.MapExpression
          extended bycom.triactive.jdo.store.sql.expr.MapFieldExpression
All Implemented Interfaces:
SqlExpression, StatementTextGenerator

public class MapFieldExpression
extends MapExpression

A map expression that represents some map field in a query candidate class, or a map field in an object linked from the candidate class by navigation.

When navigated through using containsKey(expr) or containsValue(expr), the keys or values of the map are added as a correlated subquery.

Author:
Mike Martin

Nested Class Summary
 
Nested classes inherited from class com.triactive.jdo.store.sql.expr.AbstractSqlExpression
AbstractSqlExpression.Body, AbstractSqlExpression.CompoundExpression, AbstractSqlExpression.SimpleColumnReference, AbstractSqlExpression.SubqueryExpression
 
Field Summary
 
Fields inherited from class com.triactive.jdo.store.sql.expr.AbstractSqlExpression
body, qs
 
Constructor Summary
MapFieldExpression(QueryStatement.QueryColumn ownerQsc, MapStore mapStore, java.lang.String fieldName)
           
 
Method Summary
 SqlExpression containsKeyMethod(SqlExpression expr)
           
 SqlExpression containsValueMethod(SqlExpression expr)
           
 SqlExpression isEmptyMethod()
           
 SetExpression keySetMethod()
           
 SqlExpression sizeMethod()
           
 StatementText toStatementText()
          Returns the SQL statement text which this object generates.
 SetExpression valuesMethod()
           
 
Methods inherited from class com.triactive.jdo.store.sql.expr.AbstractSqlExpression
accessField, add, and, callMethod, cast, com, div, eor, eq, getColumnMapping, getJavaType, getMapping, getQueryStatement, getReferencedColumns, gt, gteq, innermostQuery, innermostQuery, ior, lt, lteq, mod, mul, neg, newBody, newBody, newBody, newBody, newBody, newBody, newResultExpression, newSubqueryBody, not, noteq, select, setMapping, sub, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapFieldExpression

public MapFieldExpression(QueryStatement.QueryColumn ownerQsc,
                          MapStore mapStore,
                          java.lang.String fieldName)
Method Detail

keySetMethod

public SetExpression keySetMethod()

valuesMethod

public SetExpression valuesMethod()

containsKeyMethod

public SqlExpression containsKeyMethod(SqlExpression expr)

containsValueMethod

public SqlExpression containsValueMethod(SqlExpression expr)

isEmptyMethod

public SqlExpression isEmptyMethod()

sizeMethod

public SqlExpression sizeMethod()

toStatementText

public StatementText toStatementText()
Description copied from interface: StatementTextGenerator
Returns the SQL statement text which this object generates.

Specified by:
toStatementText in interface StatementTextGenerator
Overrides:
toStatementText in class MapExpression


Copyright © 2001-2007 The TJDO Project All Rights Reserved.