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

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.MapLiteral
All Implemented Interfaces:
SqlExpression, StatementTextGenerator

public class MapLiteral
extends MapExpression

A MapLiteral is a SQL expression that will test if a column of a table exists within the given Map's keys or values. This is used for querys where a transient Map is passed in as a parameter.

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
MapLiteral(QueryStatement qs, java.util.Map value)
           
 
Method Summary
 SqlExpression containsKeyMethod(SqlExpression expr)
           
 SqlExpression containsValueMethod(SqlExpression expr)
           
 SqlExpression getMethod(SqlExpression expr)
           
 SqlExpression isEmptyMethod()
           
 SqlExpression sizeMethod()
           
 
Methods inherited from class com.triactive.jdo.store.sql.expr.MapExpression
toStatementText
 
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

MapLiteral

public MapLiteral(QueryStatement qs,
                  java.util.Map value)
Method Detail

getMethod

public SqlExpression getMethod(SqlExpression expr)

containsKeyMethod

public SqlExpression containsKeyMethod(SqlExpression expr)

containsValueMethod

public SqlExpression containsValueMethod(SqlExpression expr)

isEmptyMethod

public SqlExpression isEmptyMethod()

sizeMethod

public SqlExpression sizeMethod()


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