public abstract class AbstractStructuredInvocationHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected URI |
baseURI |
protected EntityInvocationHandler |
entityHandler |
protected Object |
internal |
protected Map<NavigationProperty,Object> |
linkCache |
protected Map<NavigationProperty,Object> |
linkChanges |
protected static org.slf4j.Logger |
LOG
Logger.
|
protected Map<String,Object> |
propertyCache |
protected Map<String,Object> |
propertyChanges |
protected AbstractService<?> |
service |
protected Map<String,EdmStreamValue> |
streamedPropertyCache |
protected Map<String,EdmStreamValue> |
streamedPropertyChanges |
protected Class<?> |
typeRef |
protected URIBuilder |
uri |
Modifier | Constructor and Description |
---|---|
protected |
AbstractStructuredInvocationHandler(Class<?> typeRef,
AbstractService<?> service) |
protected |
AbstractStructuredInvocationHandler(Class<?> typeRef,
Object internal,
AbstractService<?> service) |
protected |
AbstractStructuredInvocationHandler(Class<?> typeRef,
Object internal,
EntityInvocationHandler entityHandler) |
protected URIBuilder uri
protected URI baseURI
protected final Class<?> typeRef
protected EntityInvocationHandler entityHandler
protected Object internal
protected final Map<NavigationProperty,Object> linkChanges
protected final Map<NavigationProperty,Object> linkCache
protected final Map<String,EdmStreamValue> streamedPropertyChanges
protected final Map<String,EdmStreamValue> streamedPropertyCache
protected static final org.slf4j.Logger LOG
protected AbstractService<?> service
protected AbstractStructuredInvocationHandler(Class<?> typeRef, AbstractService<?> service)
protected AbstractStructuredInvocationHandler(Class<?> typeRef, Object internal, AbstractService<?> service)
protected AbstractStructuredInvocationHandler(Class<?> typeRef, Object internal, EntityInvocationHandler entityHandler)
public Object getInternal()
public EntityInvocationHandler getEntityHandler()
public void setEntityHandler(EntityInvocationHandler entityHandler)
public Class<?> getTypeRef()
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
Throwable
public void delete(String name)
public void delete()
protected void attach()
protected void attach(AttachedEntityStatus status)
protected void attach(AttachedEntityStatus status, boolean override)
protected abstract Object getNavigationPropertyValue(NavigationProperty property, Method getter)
protected Object retrieveNavigationProperty(NavigationProperty property, Method getter)
protected boolean hasCachedPropertyChanged(Object cachedValue)
public boolean isChanged()
protected boolean hasPropertyChanges()
protected boolean hasDeepPropertyChanges()
public void applyChanges()
protected void applyChangesOnChildren()
protected void applyChanges(Object cachedValue)
protected AbstractStructuredInvocationHandler getStructuredInvocationHandler(Object value)
public Collection<String> readAdditionalPropertyNames()
public Map<NavigationProperty,Object> getLinkChanges()
public void removeAdditionalProperty(String name)
protected void addLinkChanges(NavigationProperty navProp, Object value)
public Map<String,EdmStreamValue> getStreamedPropertyChanges()
public Map<String,AnnotatableInvocationHandler> getPropAnnotatableHandlers()
public void putPropAnnotatableHandler(String propName, AnnotatableInvocationHandler handler)
public Map<String,AnnotatableInvocationHandler> getNavPropAnnotatableHandlers()
public void putNavPropAnnotatableHandler(String navPropName, AnnotatableInvocationHandler handler)
public void expand(String... expand)
public void select(String... select)
public void refs()
public void clearQueryOptions()
protected abstract void load()
protected abstract <T extends ClientProperty> List<T> getInternalProperties()
protected abstract ClientProperty getInternalProperty(String name)
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.