org.qi4j.api.query.grammar
Class PropertyFunction<T>
java.lang.Object
org.qi4j.api.query.grammar.PropertyFunction<T>
- All Implemented Interfaces:
- Function<Composite,Property<T>>
public class PropertyFunction<T>
- extends java.lang.Object
- implements Function<Composite,Property<T>>
Function to get Entity Properties.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PropertyFunction
public PropertyFunction(PropertyFunction<?> traversedProperty,
AssociationFunction<?> traversedAssociation,
ManyAssociationFunction<?> traversedManyAssociation,
java.lang.reflect.AccessibleObject accessor)
traversedProperty
public PropertyFunction<?> traversedProperty()
traversedAssociation
public AssociationFunction<?> traversedAssociation()
traversedManyAssociation
public ManyAssociationFunction<?> traversedManyAssociation()
accessor
public java.lang.reflect.AccessibleObject accessor()
map
public Property<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,Property<T>>
- Parameters:
entity
- the input item
- Returns:
- the mapped item
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object