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.LoggerLogger.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 TypeMethodDescriptionvoidaddAnnotation(Class<? extends AbstractTerm> term, Object value) protected static URIBuilderbuildEntitySetURI(Class<?> ref, AbstractService<?> service) protected static URIBuilderbuildEntitySetURI(String entitySetName, AbstractService<?> service) protected voidcacheLink(NavigationProperty navProp, Object value) protected <S extends EntityType<?>>
voiddeleteEntity(EntityInvocationHandler handler, URI entitySetURI) booleanMap<Class<? extends AbstractTerm>,Object> protected EdmEnabledODataClientprotected ComplexType<?>getComplex(String name, ClientValue value, Class<?> ref, EntityInvocationHandler handler, URI baseURI, boolean collectionItem) protected Contextfinal ClientEntitygetETag()Gets the current ETag defined into the wrapped entity.static EntityInvocationHandlergetInstance(Class<?> typeRef, AbstractService<?> service) static EntityInvocationHandlergetInstance(URI entityURI, Class<?> typeRef, AbstractService<?> service) static EntityInvocationHandlergetInstance(ClientEntity entity, URI entitySetURI, Class<?> typeRef, AbstractService<?> service) static EntityInvocationHandlergetInstance(ClientEntity entity, URI entitySetURI, URI entityURI, Class<?> typeRef, AbstractService<?> service) protected <T extends ClientProperty>
List<T>protected ClientPropertygetInternalProperty(String name) protected ObjectgetNavigationPropertyValue(NavigationProperty property, Method getter) getUUID()inthashCode()protected ObjectinvokeSelfMethod(Method method, Object[] args) booleanbooleanisChanged(boolean considerStreamProperties) protected booleanisDeleted(EntityInvocationHandler handler) protected booleanisSelfMethod(Method method) protected voidload()readAnnotation(Class<? extends AbstractTerm> term) Collection<Class<? extends AbstractTerm>>voidremoveAnnotation(Class<? extends AbstractTerm> term) voidsetEntity(ClientEntity entity) voidOverrides ETag value defined into the wrapped entity.toString()updateEntityUUID(URI entitySetURI, Class<?> type, ClientEntity entity) updateUUID(URI entitySetURI, Class<?> type, Object key) voiduploadStream(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:
isChangedin classAbstractStructuredInvocationHandler
-
isChanged
public boolean isChanged(boolean considerStreamProperties) -
uploadStream
-
getStreamChanges
-
loadStream
-
addAnnotation
- Specified by:
addAnnotationin interfaceAnnotatable
-
removeAnnotation
- Specified by:
removeAnnotationin interfaceAnnotatable
-
readAnnotation
- Specified by:
readAnnotationin interfaceAnnotatable
-
readAnnotationTerms
- Specified by:
readAnnotationTermsin interfaceAnnotatable
-
load
protected void load()- Specified by:
loadin classAbstractStructuredInvocationHandler
-
getInternalProperties
- Specified by:
getInternalPropertiesin classAbstractStructuredInvocationHandler
-
getInternalProperty
- Specified by:
getInternalPropertyin 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
-