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, uriaddAdditionalProperty, 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, setPropertyValueprotected 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 AbstractStructuredInvocationHandlerpublic 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 AbstractStructuredInvocationHandlerprotected void cacheLink(NavigationProperty navProp, Object value)
public void addAnnotation(Class<? extends AbstractTerm> term, Object value)
addAnnotation in interface Annotatablepublic void removeAnnotation(Class<? extends AbstractTerm> term)
removeAnnotation in interface Annotatablepublic Object readAnnotation(Class<? extends AbstractTerm> term)
readAnnotation in interface Annotatablepublic Collection<Class<? extends AbstractTerm>> readAnnotationTerms()
readAnnotationTerms in interface Annotatableprotected void load()
load in class AbstractStructuredInvocationHandlerprotected <T extends ClientProperty> List<T> getInternalProperties()
getInternalProperties in class AbstractStructuredInvocationHandlerprotected ClientProperty getInternalProperty(String name)
getInternalProperty in class AbstractStructuredInvocationHandlerpublic 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
Throwableprotected 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–2023 The Apache Software Foundation. All rights reserved.