org.datanucleus.jdo.query
Class MapExpressionImpl<T extends java.util.Map<K,V>,K,V>

java.lang.Object
  extended by org.datanucleus.jdo.query.ExpressionImpl<T>
      extended by org.datanucleus.jdo.query.MapExpressionImpl<T,K,V>
All Implemented Interfaces:
Expression<T>, MapExpression<T,K,V>

public class MapExpressionImpl<T extends java.util.Map<K,V>,K,V>
extends ExpressionImpl<T>
implements MapExpression<T,K,V>

Implementation of a MapExpression


Constructor Summary
MapExpressionImpl(java.lang.Class<T> cls, java.lang.String name, ExpressionType type)
           
MapExpressionImpl(PersistableExpression parent, java.lang.String name)
           
 
Method Summary
 BooleanExpression containsEntry(Expression expr)
          Method returning whether the specified entry expression is contained in this map.
 BooleanExpression containsEntry(java.util.Map.Entry<K,V> entry)
          Method returning whether the specified entry is contained in this map.
 BooleanExpression containsKey(Expression expr)
          Method returning whether the specified key expression is contained in this map.
 BooleanExpression containsKey(K key)
          Method returning whether the specified key is contained in this map.
 BooleanExpression containsValue(Expression expr)
          Method returning whether the specified value expression is contained in this map.
 BooleanExpression containsValue(V value)
          Method returning whether the specified value is contained in this map.
 BooleanExpression isEmpty()
          Method returning whether the map is empty.
 NumericExpression<java.lang.Integer> size()
          Method returning an expression for the size of the map
 
Methods inherited from class org.datanucleus.jdo.query.ExpressionImpl
cast, count, countDistinct, eq, eq, getQueryExpression, instanceOf, isParameter, isVariable, ne, ne
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.datanucleus.query.typesafe.Expression
cast, count, countDistinct, eq, eq, instanceOf, ne, ne
 

Constructor Detail

MapExpressionImpl

public MapExpressionImpl(PersistableExpression parent,
                         java.lang.String name)

MapExpressionImpl

public MapExpressionImpl(java.lang.Class<T> cls,
                         java.lang.String name,
                         ExpressionType type)
Method Detail

containsEntry

public BooleanExpression containsEntry(java.util.Map.Entry<K,V> entry)
Description copied from interface: MapExpression
Method returning whether the specified entry is contained in this map.

Specified by:
containsEntry in interface MapExpression<T extends java.util.Map<K,V>,K,V>
Parameters:
entry - The entry expression
Returns:
Whether it is contained here

containsEntry

public BooleanExpression containsEntry(Expression expr)
Description copied from interface: MapExpression
Method returning whether the specified entry expression is contained in this map.

Specified by:
containsEntry in interface MapExpression<T extends java.util.Map<K,V>,K,V>
Parameters:
expr - The entry expression
Returns:
Whether it is contained here

containsKey

public BooleanExpression containsKey(Expression expr)
Description copied from interface: MapExpression
Method returning whether the specified key expression is contained in this map.

Specified by:
containsKey in interface MapExpression<T extends java.util.Map<K,V>,K,V>
Parameters:
expr - The key expression
Returns:
Whether it is contained here

containsKey

public BooleanExpression containsKey(K key)
Description copied from interface: MapExpression
Method returning whether the specified key is contained in this map.

Specified by:
containsKey in interface MapExpression<T extends java.util.Map<K,V>,K,V>
Parameters:
key - The key
Returns:
Whether it is contained here

containsValue

public BooleanExpression containsValue(Expression expr)
Description copied from interface: MapExpression
Method returning whether the specified value expression is contained in this map.

Specified by:
containsValue in interface MapExpression<T extends java.util.Map<K,V>,K,V>
Parameters:
expr - The value expression
Returns:
Whether it is contained here

containsValue

public BooleanExpression containsValue(V value)
Description copied from interface: MapExpression
Method returning whether the specified value is contained in this map.

Specified by:
containsValue in interface MapExpression<T extends java.util.Map<K,V>,K,V>
Parameters:
value - The value
Returns:
Whether it is contained here

isEmpty

public BooleanExpression isEmpty()
Description copied from interface: MapExpression
Method returning whether the map is empty.

Specified by:
isEmpty in interface MapExpression<T extends java.util.Map<K,V>,K,V>
Returns:
Whether it is empty

size

public NumericExpression<java.lang.Integer> size()
Description copied from interface: MapExpression
Method returning an expression for the size of the map

Specified by:
size in interface MapExpression<T extends java.util.Map<K,V>,K,V>
Returns:
The size


Copyright © 2011. All Rights Reserved.