Spring Data MongoDB - Core

org.springframework.data.mongodb.core.aggregation
Class ExposedFieldsAggregationOperationContext

java.lang.Object
  extended by org.springframework.data.mongodb.core.aggregation.ExposedFieldsAggregationOperationContext
All Implemented Interfaces:
AggregationOperationContext
Direct Known Subclasses:
GroupOperation, ProjectionOperation, UnwindOperation

public abstract class ExposedFieldsAggregationOperationContext
extends Object
implements AggregationOperationContext

Support class to implement AggregationOperations that will become an AggregationOperationContext as well defining ExposedFields.

Since:
1.3
Author:
Oliver Gierke

Constructor Summary
ExposedFieldsAggregationOperationContext()
           
 
Method Summary
protected abstract  ExposedFields getFields()
           
 com.mongodb.DBObject getMappedObject(com.mongodb.DBObject dbObject)
          Returns the mapped DBObject, potentially converting the source considering mapping metadata etc.
 org.springframework.data.mongodb.core.aggregation.ExposedFields.FieldReference getReference(Field field)
          Returns a ExposedFields.FieldReference for the given field or null if the context does not expose the given field.
 org.springframework.data.mongodb.core.aggregation.ExposedFields.FieldReference getReference(String name)
          Returns the ExposedFields.FieldReference for the field with the given name or null if the context does not expose a field with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExposedFieldsAggregationOperationContext

public ExposedFieldsAggregationOperationContext()
Method Detail

getMappedObject

public com.mongodb.DBObject getMappedObject(com.mongodb.DBObject dbObject)
Description copied from interface: AggregationOperationContext
Returns the mapped DBObject, potentially converting the source considering mapping metadata etc.

Specified by:
getMappedObject in interface AggregationOperationContext
Parameters:
dbObject - will never be null.
Returns:
must not be null.

getReference

public org.springframework.data.mongodb.core.aggregation.ExposedFields.FieldReference getReference(Field field)
Description copied from interface: AggregationOperationContext
Returns a ExposedFields.FieldReference for the given field or null if the context does not expose the given field.

Specified by:
getReference in interface AggregationOperationContext
Parameters:
field - must not be null.
Returns:

getReference

public org.springframework.data.mongodb.core.aggregation.ExposedFields.FieldReference getReference(String name)
Description copied from interface: AggregationOperationContext
Returns the ExposedFields.FieldReference for the field with the given name or null if the context does not expose a field with the given name.

Specified by:
getReference in interface AggregationOperationContext
Parameters:
name - must not be null or empty.
Returns:

getFields

protected abstract ExposedFields getFields()

Spring Data MongoDB - Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.