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 URI
protected EntityInvocationHandler
protected Object
protected final Map<NavigationProperty,
Object> protected final Map<NavigationProperty,
Object> protected static final org.slf4j.Logger
Logger.protected AbstractService<?>
protected final Map<String,
EdmStreamValue> protected final Map<String,
EdmStreamValue> protected final Class<?>
protected URIBuilder
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractStructuredInvocationHandler
(Class<?> typeRef, Object internal, AbstractService<?> service) protected
AbstractStructuredInvocationHandler
(Class<?> typeRef, Object internal, EntityInvocationHandler entityHandler) protected
AbstractStructuredInvocationHandler
(Class<?> typeRef, AbstractService<?> service) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalProperty
(String name, Object value) protected void
addLinkChanges
(NavigationProperty navProp, Object value) protected void
addPropertyChanges
(String name, Object value) void
protected void
applyChanges
(Object cachedValue) protected void
protected void
attach()
protected void
attach
(AttachedEntityStatus status) protected void
attach
(AttachedEntityStatus status, boolean override) protected static URIBuilder
buildEntitySetURI
(Class<?> ref, AbstractService<?> service) protected static URIBuilder
buildEntitySetURI
(String entitySetName, AbstractService<?> service) void
void
delete()
void
protected <S extends EntityType<?>>
voiddeleteEntity
(EntityInvocationHandler handler, URI entitySetURI) boolean
void
protected EdmEnabledODataClient
protected ComplexType<?>
getComplex
(String name, ClientValue value, Class<?> ref, EntityInvocationHandler handler, URI baseURI, boolean collectionItem) protected Context
protected abstract <T extends ClientProperty>
List<T>protected abstract ClientProperty
getInternalProperty
(String name) protected abstract Object
getNavigationPropertyValue
(NavigationProperty property, Method getter) protected Object
getPropertyValue
(String name, Type type) protected AbstractStructuredInvocationHandler
Class<?>
protected boolean
hasCachedPropertyChanged
(Object cachedValue) protected boolean
int
hashCode()
protected boolean
protected Object
invokeSelfMethod
(Method method, Object[] args) boolean
protected boolean
isDeleted
(EntityInvocationHandler handler) protected boolean
isSelfMethod
(Method method) protected abstract void
load()
void
putNavPropAnnotatableHandler
(String navPropName, AnnotatableInvocationHandler handler) void
putPropAnnotatableHandler
(String propName, AnnotatableInvocationHandler handler) readAdditionalProperty
(String name) void
refs()
void
protected Object
retrieveNavigationProperty
(NavigationProperty property, Method getter) void
void
setEntityHandler
(EntityInvocationHandler entityHandler) protected void
setPropertyValue
(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
-