public abstract class AbstractCollectionInvocationHandler<T extends Serializable,EC extends Collection<T>> extends Object implements Collection<T>
Modifier and Type | Field and Description |
---|---|
protected List<ClientAnnotation> |
annotations |
protected URI |
baseURI |
protected Class<T> |
itemRef |
protected Collection<T> |
items |
protected static org.slf4j.Logger |
LOG
Logger.
|
protected URI |
nextPageURI |
protected Collection<String> |
referenceItems |
protected AbstractService<?> |
service |
protected URIBuilder |
uri |
Constructor and Description |
---|
AbstractCollectionInvocationHandler(AbstractService<?> service,
Collection<T> items,
Class<T> itemRef,
URIBuilder uri) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T element) |
boolean |
addAll(Collection<? extends T> collection) |
<ET extends EntityType<?>> |
addRef(ET element) |
protected static URIBuilder |
buildEntitySetURI(Class<?> ref,
AbstractService<?> service) |
protected static URIBuilder |
buildEntitySetURI(String entitySetName,
AbstractService<?> service) |
void |
clear() |
void |
clearQueryOptions() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> collection) |
protected <S extends EntityType<?>> |
deleteEntity(EntityInvocationHandler handler,
URI entitySetURI) |
boolean |
equals(Object obj) |
Collection<T> |
execute() |
Future<Collection<T>> |
executeAsync() |
void |
expand(String... expand) |
abstract org.apache.commons.lang3.tuple.Triple<List<T>,URI,List<ClientAnnotation>> |
fetchPartial(URI uri,
Class<T> typeRef) |
void |
filter(String filter) |
void |
filter(URIFilter filter) |
Object |
getAnnotation(Class<? extends AbstractTerm> term) |
Collection<Class<? extends AbstractTerm>> |
getAnnotationTerms() |
protected EdmEnabledODataClient |
getClient() |
protected ComplexType<?> |
getComplex(String name,
ClientValue value,
Class<?> ref,
EntityInvocationHandler handler,
URI baseURI,
boolean collectionItem) |
protected Context |
getContext() |
URI |
getRequestURI() |
protected Class<T> |
getTypeRef() |
protected URI |
getURI() |
int |
hashCode() |
boolean |
hasNextPage() |
protected Object |
invokeSelfMethod(Method method,
Object[] args) |
protected boolean |
isDeleted(EntityInvocationHandler handler) |
boolean |
isEmpty() |
protected boolean |
isSelfMethod(Method method) |
Iterator<T> |
iterator() |
void |
nextPage() |
void |
orderBy(Sort... sort) |
void |
orderBy(String orderBy) |
void |
refs() |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
void |
select(String... select) |
void |
setAnnotations(List<ClientAnnotation> annotations) |
int |
size() |
void |
skip(int skip) |
Object[] |
toArray() |
<U> U[] |
toArray(U[] array) |
void |
top(int top) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
invoke
protected URI nextPageURI
protected Collection<T extends Serializable> items
protected Collection<String> referenceItems
protected final URI baseURI
protected URIBuilder uri
protected final Class<T extends Serializable> itemRef
protected final List<ClientAnnotation> annotations
protected static final org.slf4j.Logger LOG
protected AbstractService<?> service
public AbstractCollectionInvocationHandler(AbstractService<?> service, Collection<T> items, Class<T> itemRef, URIBuilder uri)
public Future<Collection<T>> executeAsync()
public Collection<T> execute()
public abstract org.apache.commons.lang3.tuple.Triple<List<T>,URI,List<ClientAnnotation>> fetchPartial(URI uri, Class<T> typeRef)
public void setAnnotations(List<ClientAnnotation> annotations)
protected URI getURI()
public void nextPage()
public boolean hasNextPage()
public Object getAnnotation(Class<? extends AbstractTerm> term)
public boolean add(T element)
add
in interface Collection<T extends Serializable>
public <ET extends EntityType<?>> boolean addRef(ET element)
public void refs()
public int size()
size
in interface Collection<T extends Serializable>
public boolean isEmpty()
isEmpty
in interface Collection<T extends Serializable>
public boolean contains(Object object)
contains
in interface Collection<T extends Serializable>
public Iterator<T> iterator()
iterator
in interface Iterable<T extends Serializable>
iterator
in interface Collection<T extends Serializable>
public Object[] toArray()
toArray
in interface Collection<T extends Serializable>
public <U> U[] toArray(U[] array)
toArray
in interface Collection<T extends Serializable>
public Collection<Class<? extends AbstractTerm>> getAnnotationTerms()
public boolean remove(Object object)
remove
in interface Collection<T extends Serializable>
public boolean containsAll(Collection<?> collection)
containsAll
in interface Collection<T extends Serializable>
public boolean addAll(Collection<? extends T> collection)
addAll
in interface Collection<T extends Serializable>
public boolean removeAll(Collection<?> collection)
removeAll
in interface Collection<T extends Serializable>
public boolean retainAll(Collection<?> collection)
retainAll
in interface Collection<T extends Serializable>
public void clear()
clear
in interface Collection<T extends Serializable>
public void filter(String filter)
public void filter(URIFilter filter)
public void orderBy(Sort... sort)
public void orderBy(String orderBy)
public void top(int top) throws IllegalArgumentException
IllegalArgumentException
public void skip(int skip) throws IllegalArgumentException
IllegalArgumentException
public void expand(String... expand)
public void select(String... select)
public URI getRequestURI()
public void clearQueryOptions()
protected EdmEnabledODataClient getClient()
protected Context getContext()
protected boolean isSelfMethod(Method method)
protected Object invokeSelfMethod(Method method, Object[] args) throws Throwable
Throwable
protected ComplexType<?> getComplex(String name, ClientValue value, Class<?> ref, EntityInvocationHandler handler, URI baseURI, boolean collectionItem)
protected boolean isDeleted(EntityInvocationHandler handler)
protected <S extends EntityType<?>> void deleteEntity(EntityInvocationHandler handler, URI entitySetURI)
protected static URIBuilder buildEntitySetURI(Class<?> ref, AbstractService<?> service)
protected static URIBuilder buildEntitySetURI(String entitySetName, AbstractService<?> service)
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.