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, propertyCache, propertyChanges, streamedPropertyCache, streamedPropertyChanges, typeRef, uri
addAdditionalProperty, addLinkChanges, addPropertyChanges, applyChanges, applyChanges, applyChangesOnChildren, attach, attach, attach, clearQueryOptions, delete, delete, expand, getEntityHandler, getInternal, getLinkChanges, getNavPropAnnotatableHandlers, getPropAnnotatableHandlers, getPropertyChanges, getPropertyValue, getStreamedPropertyChanges, getStructuredInvocationHandler, getTypeRef, hasCachedPropertyChanged, hasDeepPropertyChanges, hasPropertyChanges, invoke, putNavPropAnnotatableHandler, putPropAnnotatableHandler, readAdditionalProperty, readAdditionalPropertyNames, refs, removeAdditionalProperty, retrieveNavigationProperty, select, setEntityHandler, setPropertyValue
protected static final org.slf4j.Logger LOG
protected AbstractService<?> service
public static EntityInvocationHandler getInstance(ClientEntity entity, URI entitySetURI, Class<?> typeRef, AbstractService<?> service)
public static EntityInvocationHandler getInstance(ClientEntity 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(ClientEntity entity)
public EntityUUID getUUID()
public EntityUUID updateEntityUUID(URI entitySetURI, Class<?> type, ClientEntity entity)
public EntityUUID updateUUID(URI entitySetURI, Class<?> type, Object key)
public URI getEntitySetURI()
public final ClientEntity 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 considerStreamProperties)
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 ClientProperty> List<T> getInternalProperties()
getInternalProperties
in class AbstractStructuredInvocationHandler
protected ClientProperty getInternalProperty(String name)
getInternalProperty
in class AbstractStructuredInvocationHandler
public String readEntityReferenceID()
public String toString()
public int hashCode()
public boolean equals(Object obj)
protected EdmEnabledODataClient getClient()
protected Context getContext()
protected boolean isSelfMethod(Method method)
protected Object invokeSelfMethod(Method method, Object[] args) throws Throwable
Throwable
protected ComplexType<?> getComplex(String name, ClientValue 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 URIBuilder buildEntitySetURI(Class<?> ref, AbstractService<?> service)
protected static URIBuilder buildEntitySetURI(String entitySetName, AbstractService<?> service)
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.