Class AbstractStructuredInvocationHandler
java.lang.Object
org.apache.olingo.ext.proxy.commons.AbstractStructuredInvocationHandler
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
ComplexInvocationHandler,EntityInvocationHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected URIprotected EntityInvocationHandlerprotected Objectprotected final Map<NavigationProperty,Object> protected final Map<NavigationProperty,Object> protected static final org.slf4j.LoggerLogger.protected AbstractService<?>protected final Map<String,EdmStreamValue> protected final Map<String,EdmStreamValue> protected final Class<?>protected URIBuilder -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractStructuredInvocationHandler(Class<?> typeRef, Object internal, AbstractService<?> service) protectedAbstractStructuredInvocationHandler(Class<?> typeRef, Object internal, EntityInvocationHandler entityHandler) protectedAbstractStructuredInvocationHandler(Class<?> typeRef, AbstractService<?> service) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalProperty(String name, Object value) protected voidaddLinkChanges(NavigationProperty navProp, Object value) protected voidaddPropertyChanges(String name, Object value) voidprotected voidapplyChanges(Object cachedValue) protected voidprotected voidattach()protected voidattach(AttachedEntityStatus status) protected voidattach(AttachedEntityStatus status, boolean override) protected static URIBuilderbuildEntitySetURI(Class<?> ref, AbstractService<?> service) protected static URIBuilderbuildEntitySetURI(String entitySetName, AbstractService<?> service) voidvoiddelete()voidprotected <S extends EntityType<?>>
voiddeleteEntity(EntityInvocationHandler handler, URI entitySetURI) booleanvoidprotected EdmEnabledODataClientprotected ComplexType<?>getComplex(String name, ClientValue value, Class<?> ref, EntityInvocationHandler handler, URI baseURI, boolean collectionItem) protected Contextprotected abstract <T extends ClientProperty>
List<T>protected abstract ClientPropertygetInternalProperty(String name) protected abstract ObjectgetNavigationPropertyValue(NavigationProperty property, Method getter) protected ObjectgetPropertyValue(String name, Type type) protected AbstractStructuredInvocationHandlerClass<?>protected booleanhasCachedPropertyChanged(Object cachedValue) protected booleaninthashCode()protected booleanprotected ObjectinvokeSelfMethod(Method method, Object[] args) booleanprotected booleanisDeleted(EntityInvocationHandler handler) protected booleanisSelfMethod(Method method) protected abstract voidload()voidputNavPropAnnotatableHandler(String navPropName, AnnotatableInvocationHandler handler) voidputPropAnnotatableHandler(String propName, AnnotatableInvocationHandler handler) readAdditionalProperty(String name) voidrefs()voidprotected ObjectretrieveNavigationProperty(NavigationProperty property, Method getter) voidvoidsetEntityHandler(EntityInvocationHandler entityHandler) protected voidsetPropertyValue(Property property, Object value) toString()
-
Field Details
-
uri
-
baseURI
-
typeRef
-
entityHandler
-
internal
-
propertyChanges
-
propertyCache
-
linkChanges
-
linkCache
-
streamedPropertyChanges
-
streamedPropertyCache
-
LOG
protected static final org.slf4j.Logger LOGLogger. -
service
-
-
Constructor Details
-
AbstractStructuredInvocationHandler
-
AbstractStructuredInvocationHandler
protected AbstractStructuredInvocationHandler(Class<?> typeRef, Object internal, AbstractService<?> service) -
AbstractStructuredInvocationHandler
protected AbstractStructuredInvocationHandler(Class<?> typeRef, Object internal, EntityInvocationHandler entityHandler)
-
-
Method Details
-
getInternal
-
getEntityHandler
-
setEntityHandler
-
getTypeRef
-
invoke
- Throws:
Throwable
-
delete
-
delete
public void delete() -
attach
protected void attach() -
attach
-
attach
-
getPropertyValue
-
setPropertyValue
-
readAdditionalProperty
-
getPropertyChanges
-
hasCachedPropertyChanged
-
isChanged
public boolean isChanged() -
hasPropertyChanges
protected boolean hasPropertyChanges() -
hasDeepPropertyChanges
protected boolean hasDeepPropertyChanges() -
applyChanges
public void applyChanges() -
applyChangesOnChildren
protected void applyChangesOnChildren() -
applyChanges
-
getStructuredInvocationHandler
-
readAdditionalPropertyNames
-
addAdditionalProperty
-
getLinkChanges
-
removeAdditionalProperty
-
addPropertyChanges
-
getStreamedPropertyChanges
-
getPropAnnotatableHandlers
-
putPropAnnotatableHandler
-
expand
-
select
-
refs
public void refs() -
clearQueryOptions
public void clearQueryOptions() -
load
protected abstract void load() -
getInternalProperties
-
getInternalProperty
-
getClient
-
getContext
-
isSelfMethod
-
invokeSelfMethod
- Throws:
Throwable
-
getComplex
protected ComplexType<?> getComplex(String name, ClientValue value, Class<?> ref, EntityInvocationHandler handler, URI baseURI, boolean collectionItem) -
isDeleted
-
deleteEntity
protected <S extends EntityType<?>> void deleteEntity(EntityInvocationHandler handler, URI entitySetURI) -
buildEntitySetURI
-
buildEntitySetURI
-
equals
-
hashCode
public int hashCode() -
toString
-