org.odata4j.producer.inmemory
Class EntityIdFunctionPropertyModelDelegate<TEntity,TKey>

java.lang.Object
  extended by org.odata4j.producer.inmemory.PropertyModelDelegate
      extended by org.odata4j.producer.inmemory.EntityIdFunctionPropertyModelDelegate<TEntity,TKey>
All Implemented Interfaces:
Delegate<PropertyModel>, PropertyModel

public class EntityIdFunctionPropertyModelDelegate<TEntity,TKey>
extends PropertyModelDelegate


Constructor Summary
EntityIdFunctionPropertyModelDelegate(PropertyModel propertyModel, String idPropertyName, Class<TKey> idPropertyType, Func1<TEntity,TKey> id)
           
 
Method Summary
 PropertyModel getDelegate()
           
 Iterable<String> getPropertyNames()
          gets the names of all properties defined by the model
 Class<?> getPropertyType(String propertyName)
           
 Object getPropertyValue(Object target, String propertyName)
           
 
Methods inherited from class org.odata4j.producer.inmemory.PropertyModelDelegate
getCollectionElementType, getCollectionNames, getCollectionValue, getDeclaredCollectionNames, getDeclaredPropertyNames, setCollectionValue, setPropertyValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityIdFunctionPropertyModelDelegate

public EntityIdFunctionPropertyModelDelegate(PropertyModel propertyModel,
                                             String idPropertyName,
                                             Class<TKey> idPropertyType,
                                             Func1<TEntity,TKey> id)
Method Detail

getDelegate

public PropertyModel getDelegate()

getPropertyNames

public Iterable<String> getPropertyNames()
Description copied from interface: PropertyModel
gets the names of all properties defined by the model

Specified by:
getPropertyNames in interface PropertyModel
Overrides:
getPropertyNames in class PropertyModelDelegate
Returns:
- property names

getPropertyType

public Class<?> getPropertyType(String propertyName)
Specified by:
getPropertyType in interface PropertyModel
Overrides:
getPropertyType in class PropertyModelDelegate

getPropertyValue

public Object getPropertyValue(Object target,
                               String propertyName)
Specified by:
getPropertyValue in interface PropertyModel
Overrides:
getPropertyValue in class PropertyModelDelegate


http://odata4j.org