Class EntityInvocationHandler
java.lang.Object
org.apache.olingo.ext.proxy.commons.AbstractStructuredInvocationHandler
org.apache.olingo.ext.proxy.commons.EntityInvocationHandler
- All Implemented Interfaces:
Serializable
,InvocationHandler
,Annotatable
public class EntityInvocationHandler
extends AbstractStructuredInvocationHandler
implements Annotatable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.slf4j.Logger
Logger.protected AbstractService<?>
Fields inherited from class org.apache.olingo.ext.proxy.commons.AbstractStructuredInvocationHandler
baseURI, entityHandler, internal, linkCache, linkChanges, propertyCache, propertyChanges, streamedPropertyCache, streamedPropertyChanges, typeRef, uri
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotation
(Class<? extends AbstractTerm> term, Object value) protected static URIBuilder
buildEntitySetURI
(Class<?> ref, AbstractService<?> service) protected static URIBuilder
buildEntitySetURI
(String entitySetName, AbstractService<?> service) protected void
cacheLink
(NavigationProperty navProp, Object value) protected <S extends EntityType<?>>
voiddeleteEntity
(EntityInvocationHandler handler, URI entitySetURI) boolean
Map<Class<? extends AbstractTerm>,
Object> protected EdmEnabledODataClient
protected ComplexType<?>
getComplex
(String name, ClientValue value, Class<?> ref, EntityInvocationHandler handler, URI baseURI, boolean collectionItem) protected Context
final ClientEntity
getETag()
Gets the current ETag defined into the wrapped entity.static EntityInvocationHandler
getInstance
(Class<?> typeRef, AbstractService<?> service) static EntityInvocationHandler
getInstance
(URI entityURI, Class<?> typeRef, AbstractService<?> service) static EntityInvocationHandler
getInstance
(ClientEntity entity, URI entitySetURI, Class<?> typeRef, AbstractService<?> service) static EntityInvocationHandler
getInstance
(ClientEntity entity, URI entitySetURI, URI entityURI, Class<?> typeRef, AbstractService<?> service) protected <T extends ClientProperty>
List<T>protected ClientProperty
getInternalProperty
(String name) protected Object
getNavigationPropertyValue
(NavigationProperty property, Method getter) getUUID()
int
hashCode()
protected Object
invokeSelfMethod
(Method method, Object[] args) boolean
boolean
isChanged
(boolean considerStreamProperties) protected boolean
isDeleted
(EntityInvocationHandler handler) protected boolean
isSelfMethod
(Method method) protected void
load()
readAnnotation
(Class<? extends AbstractTerm> term) Collection<Class<? extends AbstractTerm>>
void
removeAnnotation
(Class<? extends AbstractTerm> term) void
setEntity
(ClientEntity entity) void
Overrides ETag value defined into the wrapped entity.toString()
updateEntityUUID
(URI entitySetURI, Class<?> type, ClientEntity entity) updateUUID
(URI entitySetURI, Class<?> type, Object key) void
uploadStream
(EdmStreamValue stream) Methods inherited from class org.apache.olingo.ext.proxy.commons.AbstractStructuredInvocationHandler
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
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOGLogger. -
service
-
-
Method Details
-
getInstance
public static EntityInvocationHandler getInstance(ClientEntity entity, URI entitySetURI, Class<?> typeRef, AbstractService<?> service) -
getInstance
public static EntityInvocationHandler getInstance(ClientEntity entity, URI entitySetURI, URI entityURI, Class<?> typeRef, AbstractService<?> service) -
getInstance
public static EntityInvocationHandler getInstance(URI entityURI, Class<?> typeRef, AbstractService<?> service) -
getInstance
-
setEntity
-
getUUID
-
updateEntityUUID
-
updateUUID
-
getEntitySetURI
-
getEntity
-
getEntityURI
-
getETag
Gets the current ETag defined into the wrapped entity.- Returns:
- the current etag
-
setETag
Overrides ETag value defined into the wrapped entity.- Parameters:
eTag
- ETag.
-
getAnnotations
-
isChanged
public boolean isChanged()- Overrides:
isChanged
in classAbstractStructuredInvocationHandler
-
isChanged
public boolean isChanged(boolean considerStreamProperties) -
uploadStream
-
getStreamChanges
-
loadStream
-
addAnnotation
- Specified by:
addAnnotation
in interfaceAnnotatable
-
removeAnnotation
- Specified by:
removeAnnotation
in interfaceAnnotatable
-
readAnnotation
- Specified by:
readAnnotation
in interfaceAnnotatable
-
readAnnotationTerms
- Specified by:
readAnnotationTerms
in interfaceAnnotatable
-
load
protected void load()- Specified by:
load
in classAbstractStructuredInvocationHandler
-
getInternalProperties
- Specified by:
getInternalProperties
in classAbstractStructuredInvocationHandler
-
getInternalProperty
- Specified by:
getInternalProperty
in classAbstractStructuredInvocationHandler
-
readEntityReferenceID
-
toString
-
hashCode
public int hashCode() -
equals
-
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
-