Class AbstractCollectionInvocationHandler<T extends Serializable,EC extends Collection<T>>
java.lang.Object
org.apache.olingo.ext.proxy.commons.AbstractCollectionInvocationHandler<T,EC>
- All Implemented Interfaces:
Iterable<T>,InvocationHandler,Collection<T>
- Direct Known Subclasses:
AbstractEntityCollectionInvocationHandler,ComplexCollectionInvocationHandler,PrimitiveCollectionInvocationHandler
public abstract class AbstractCollectionInvocationHandler<T extends Serializable,EC extends Collection<T>>
extends Object
implements Collection<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<ClientAnnotation>protected final URIprotected Collection<T>protected static final org.slf4j.LoggerLogger.protected URIprotected Collection<String>protected AbstractService<?>protected URIBuilder -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCollectionInvocationHandler(AbstractService<?> service, Collection<T> items, Class<T> itemRef, URIBuilder uri) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> collection) <ET extends EntityType<?>>
booleanaddRef(ET element) protected static URIBuilderbuildEntitySetURI(Class<?> ref, AbstractService<?> service) protected static URIBuilderbuildEntitySetURI(String entitySetName, AbstractService<?> service) voidclear()voidbooleanbooleancontainsAll(Collection<?> collection) protected <S extends EntityType<?>>
voiddeleteEntity(EntityInvocationHandler handler, URI entitySetURI) booleanexecute()voidabstract org.apache.commons.lang3.tuple.Triple<List<T>,URI, List<ClientAnnotation>> fetchPartial(URI uri, Class<T> typeRef) voidvoidgetAnnotation(Class<? extends AbstractTerm> term) Collection<Class<? extends AbstractTerm>>protected EdmEnabledODataClientprotected ComplexType<?>getComplex(String name, ClientValue value, Class<?> ref, EntityInvocationHandler handler, URI baseURI, boolean collectionItem) protected Contextprotected URIgetURI()inthashCode()booleanprotected ObjectinvokeSelfMethod(Method method, Object[] args) protected booleanisDeleted(EntityInvocationHandler handler) booleanisEmpty()protected booleanisSelfMethod(Method method) iterator()voidnextPage()voidvoidvoidrefs()booleanbooleanremoveAll(Collection<?> collection) booleanretainAll(Collection<?> collection) voidvoidsetAnnotations(List<ClientAnnotation> annotations) intsize()voidskip(int skip) Object[]toArray()<U> U[]toArray(U[] array) voidtop(int top) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArrayMethods inherited from interface java.lang.reflect.InvocationHandler
invoke
-
Field Details
-
nextPageURI
-
items
-
referenceItems
-
baseURI
-
uri
-
itemRef
-
annotations
-
LOG
protected static final org.slf4j.Logger LOGLogger. -
service
-
-
Constructor Details
-
AbstractCollectionInvocationHandler
public AbstractCollectionInvocationHandler(AbstractService<?> service, Collection<T> items, Class<T> itemRef, URIBuilder uri)
-
-
Method Details
-
executeAsync
-
execute
-
fetchPartial
-
setAnnotations
-
getTypeRef
-
getURI
-
nextPage
public void nextPage() -
hasNextPage
public boolean hasNextPage() -
getAnnotation
-
add
- Specified by:
addin interfaceCollection<T extends Serializable>
-
addRef
-
refs
public void refs() -
size
public int size()- Specified by:
sizein interfaceCollection<T extends Serializable>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T extends Serializable>
-
contains
- Specified by:
containsin interfaceCollection<T extends Serializable>
-
iterator
- Specified by:
iteratorin interfaceCollection<T extends Serializable>- Specified by:
iteratorin interfaceIterable<T extends Serializable>
-
toArray
- Specified by:
toArrayin interfaceCollection<T extends Serializable>
-
toArray
public <U> U[] toArray(U[] array) - Specified by:
toArrayin interfaceCollection<T extends Serializable>
-
getAnnotationTerms
-
remove
- Specified by:
removein interfaceCollection<T extends Serializable>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends Serializable>
-
addAll
- Specified by:
addAllin interfaceCollection<T extends Serializable>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T extends Serializable>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T extends Serializable>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T extends Serializable>
-
filter
-
filter
-
orderBy
-
orderBy
-
top
- Throws:
IllegalArgumentException
-
skip
- Throws:
IllegalArgumentException
-
expand
-
select
-
getRequestURI
-
clearQueryOptions
public void clearQueryOptions() -
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
-