Class EntityCollectionInvocationHandler<T extends EntityType<?>>
java.lang.Object
org.apache.olingo.ext.proxy.commons.AbstractCollectionInvocationHandler<T,EC>
org.apache.olingo.ext.proxy.commons.AbstractEntityCollectionInvocationHandler<T,EntityCollection<T,?,?>>
org.apache.olingo.ext.proxy.commons.EntityCollectionInvocationHandler<T>
- All Implemented Interfaces:
Iterable<T>
,InvocationHandler
,Collection<T>
public class EntityCollectionInvocationHandler<T extends EntityType<?>>
extends AbstractEntityCollectionInvocationHandler<T,EntityCollection<T,?,?>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.slf4j.Logger
Logger.protected AbstractService<?>
Fields inherited from class org.apache.olingo.ext.proxy.commons.AbstractEntityCollectionInvocationHandler
collItemRef, targetEntitySetURI
Fields inherited from class org.apache.olingo.ext.proxy.commons.AbstractCollectionInvocationHandler
annotations, baseURI, itemRef, items, nextPageURI, referenceItems, uri
-
Constructor Summary
ConstructorsConstructorDescriptionEntityCollectionInvocationHandler
(AbstractService<?> service, Class<? extends EntityCollection<T, ?, ?>> collItemRef) EntityCollectionInvocationHandler
(AbstractService<?> service, Collection<T> items, Class<? extends EntityCollection<T, ?, ?>> collItemRef, URI targetEntitySetURI, URIBuilder uri) -
Method Summary
Modifier and TypeMethodDescriptionprotected static URIBuilder
buildEntitySetURI
(Class<?> ref, AbstractService<?> service) protected static URIBuilder
buildEntitySetURI
(String entitySetName, AbstractService<?> service) protected <S extends EntityType<?>>
voiddeleteEntity
(EntityInvocationHandler handler, URI entitySetURI) boolean
protected EdmEnabledODataClient
protected ComplexType<?>
getComplex
(String name, ClientValue value, Class<?> ref, EntityInvocationHandler handler, URI baseURI, boolean collectionItem) protected Context
int
hashCode()
protected Object
invokeSelfMethod
(Method method, Object[] args) protected boolean
isDeleted
(EntityInvocationHandler handler) protected boolean
isSelfMethod
(Method method) toString()
Methods inherited from class org.apache.olingo.ext.proxy.commons.AbstractEntityCollectionInvocationHandler
fetchPartial
Methods inherited from class org.apache.olingo.ext.proxy.commons.AbstractCollectionInvocationHandler
add, addAll, addRef, clear, clearQueryOptions, contains, containsAll, execute, executeAsync, expand, filter, filter, getAnnotation, getAnnotationTerms, getRequestURI, getTypeRef, getURI, hasNextPage, isEmpty, iterator, nextPage, orderBy, orderBy, refs, remove, removeAll, retainAll, select, setAnnotations, size, skip, toArray, toArray, top
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOGLogger. -
service
-
-
Constructor Details
-
EntityCollectionInvocationHandler
public EntityCollectionInvocationHandler(AbstractService<?> service, Class<? extends EntityCollection<T, ?, ?>> collItemRef) -
EntityCollectionInvocationHandler
public EntityCollectionInvocationHandler(AbstractService<?> service, Collection<T> items, Class<? extends EntityCollection<T, ?, ?>> collItemRef, URI targetEntitySetURI, URIBuilder uri)
-
-
Method Details
-
invoke
- Throws:
Throwable
-
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
-