org.qi4j.api.query.grammar
Class ManyAssociationFunction<T>

java.lang.Object
  extended by org.qi4j.api.query.grammar.ManyAssociationFunction<T>
All Implemented Interfaces:
Function<Composite,ManyAssociation<T>>

public class ManyAssociationFunction<T>
extends java.lang.Object
implements Function<Composite,ManyAssociation<T>>

Function to get Entity ManyAssociations.


Constructor Summary
ManyAssociationFunction(AssociationFunction<?> traversedAssociation, ManyAssociationFunction<?> traversedManyAssociation, java.lang.reflect.AccessibleObject accessor)
           
 
Method Summary
 java.lang.reflect.AccessibleObject accessor()
           
 ManyAssociation<T> map(Composite entity)
          Map a single item from one type to another
 java.lang.String toString()
           
 AssociationFunction<?> traversedAssociation()
           
 ManyAssociationFunction<?> traversedManyAssociation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManyAssociationFunction

public ManyAssociationFunction(AssociationFunction<?> traversedAssociation,
                               ManyAssociationFunction<?> traversedManyAssociation,
                               java.lang.reflect.AccessibleObject accessor)
Method Detail

traversedAssociation

public AssociationFunction<?> traversedAssociation()

traversedManyAssociation

public ManyAssociationFunction<?> traversedManyAssociation()

accessor

public java.lang.reflect.AccessibleObject accessor()

map

public ManyAssociation<T> map(Composite entity)
Description copied from interface: Function
Map a single item from one type to another

Specified by:
map in interface Function<Composite,ManyAssociation<T>>
Parameters:
entity - the input item
Returns:
the mapped item

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object