public class EntityInvocationHandler extends AbstractStructuredInvocationHandler implements Annotatable
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG
Logger.
|
protected AbstractService<?> |
service |
baseURI, entityHandler, internal, linkCache, linkChanges, linksTag, propertiesTag, propertyCache, propertyChanges, streamedPropertyCache, streamedPropertyChanges, typeRef, uri
addAdditionalProperty, addLinkChanges, addPropertyChanges, attach, attach, attach, clearQueryOptions, delete, delete, expand, getEntityHandler, getInternal, getLinkChanges, getNavPropAnnotatableHandlers, getPropAnnotatableHandlers, getPropertyChanges, getPropertyValue, getStreamedPropertyChanges, getTypeRef, invoke, putNavPropAnnotatableHandler, putPropAnnotatableHandler, readAdditionalProperty, readAdditionalPropertyNames, refs, removeAdditionalProperty, retrieveNavigationProperty, select, setEntityHandler, setPropertyValue, updateLinksTag, updatePropertiesTag
protected static final org.slf4j.Logger LOG
protected AbstractService<?> service
public static EntityInvocationHandler getInstance(CommonODataEntity entity, URI entitySetURI, Class<?> typeRef, AbstractService<?> service)
public static EntityInvocationHandler getInstance(CommonODataEntity entity, URI entitySetURI, URI entityURI, Class<?> typeRef, AbstractService<?> service)
public static EntityInvocationHandler getInstance(URI entityURI, Class<?> typeRef, AbstractService<?> service)
public static EntityInvocationHandler getInstance(Class<?> typeRef, AbstractService<?> service)
public void setEntity(CommonODataEntity entity)
public EntityUUID getUUID()
public EntityUUID updateEntityUUID(URI entitySetURI, Class<?> type, CommonODataEntity entity)
public EntityUUID updateUUID(URI entitySetURI, Class<?> type, Object key)
public URI getEntitySetURI()
public final CommonODataEntity getEntity()
public URI getEntityURI()
public String getETag()
public void setETag(String eTag)
eTag
- ETag.public Map<Class<? extends AbstractTerm>,Object> getAnnotations()
public boolean isChanged()
isChanged
in class AbstractStructuredInvocationHandler
public boolean isChanged(boolean deep)
public void uploadStream(EdmStreamValue stream)
public EdmStreamValue getStreamChanges()
public EdmStreamValue loadStream()
protected Object getNavigationPropertyValue(NavigationProperty property, Method getter)
getNavigationPropertyValue
in class AbstractStructuredInvocationHandler
protected void cacheLink(NavigationProperty navProp, Object value)
public void addAnnotation(Class<? extends AbstractTerm> term, Object value)
addAnnotation
in interface Annotatable
public void removeAnnotation(Class<? extends AbstractTerm> term)
removeAnnotation
in interface Annotatable
public Object readAnnotation(Class<? extends AbstractTerm> term)
readAnnotation
in interface Annotatable
public Collection<Class<? extends AbstractTerm>> readAnnotationTerms()
readAnnotationTerms
in interface Annotatable
protected void load()
load
in class AbstractStructuredInvocationHandler
protected <T extends CommonODataProperty> List<T> getInternalProperties()
getInternalProperties
in class AbstractStructuredInvocationHandler
protected CommonODataProperty getInternalProperty(String name)
getInternalProperty
in class AbstractStructuredInvocationHandler
public String readEntityReferenceID()
public String toString()
public int hashCode()
public boolean equals(Object obj)
protected CommonEdmEnabledODataClient<?> getClient()
protected Context getContext()
protected Object invokeSelfMethod(Method method, Object[] args) throws Throwable
Throwable
protected ComplexType<?> getComplex(String name, ODataValue value, Class<?> ref, EntityInvocationHandler handler, URI baseURI, boolean collectionItem)
protected boolean isDeleted(EntityInvocationHandler handler)
protected <S extends EntityType<?>> void deleteEntity(EntityInvocationHandler handler, URI entitySetURI)
protected static CommonURIBuilder<?> buildEntitySetURI(Class<?> ref, AbstractService<?> service)
protected static CommonURIBuilder<?> buildEntitySetURI(String containerNS, String entitySetName, AbstractService<?> service)
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.