Class PrimitiveCollectionInvocationHandler<T extends Serializable>
java.lang.Object
org.apache.olingo.ext.proxy.commons.AbstractCollectionInvocationHandler<T,PrimitiveCollection<T>>
org.apache.olingo.ext.proxy.commons.PrimitiveCollectionInvocationHandler<T>
- All Implemented Interfaces:
Iterable<T>
,InvocationHandler
,Collection<T>
public class PrimitiveCollectionInvocationHandler<T extends Serializable>
extends AbstractCollectionInvocationHandler<T,PrimitiveCollection<T>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.slf4j.Logger
Logger.protected AbstractService<?>
Fields inherited from class org.apache.olingo.ext.proxy.commons.AbstractCollectionInvocationHandler
annotations, baseURI, itemRef, items, nextPageURI, referenceItems, uri
-
Constructor Summary
ConstructorsConstructorDescriptionPrimitiveCollectionInvocationHandler
(AbstractService<?> service, Class<T> itemRef) PrimitiveCollectionInvocationHandler
(AbstractService<?> service, Class<T> itemRef, URIBuilder uri) PrimitiveCollectionInvocationHandler
(AbstractService<?> service, Collection<T> items, Class<T> itemRef, URIBuilder uri) -
Method Summary
Modifier and TypeMethodDescriptionprotected static URIBuilder
buildEntitySetURI
(Class<?> ref, AbstractService<?> service) protected static URIBuilder
buildEntitySetURI
(String entitySetName, AbstractService<?> service) void
delete()
protected <S extends EntityType<?>>
voiddeleteEntity
(EntityInvocationHandler handler, URI entitySetURI) boolean
org.apache.commons.lang3.tuple.Triple<List<T>,
URI, List<ClientAnnotation>> fetchPartial
(URI uri, Class<T> typeRef) 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.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
parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOGLogger. -
service
-
-
Constructor Details
-
PrimitiveCollectionInvocationHandler
-
PrimitiveCollectionInvocationHandler
public PrimitiveCollectionInvocationHandler(AbstractService<?> service, Class<T> itemRef, URIBuilder uri) -
PrimitiveCollectionInvocationHandler
public PrimitiveCollectionInvocationHandler(AbstractService<?> service, Collection<T> items, Class<T> itemRef, URIBuilder uri)
-
-
Method Details
-
invoke
- Throws:
Throwable
-
fetchPartial
public org.apache.commons.lang3.tuple.Triple<List<T>,URI, fetchPartialList<ClientAnnotation>> (URI uri, Class<T> typeRef) - Specified by:
fetchPartial
in classAbstractCollectionInvocationHandler<T extends Serializable,
PrimitiveCollection<T extends Serializable>>
-
delete
public void delete() -
equals
- Specified by:
equals
in interfaceCollection<T extends Serializable>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<T extends Serializable>
-
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
-
toString
-