public abstract class AbstractCollectionInvocationHandler<T extends Serializable,EC extends Collection<T>> extends Object implements Collection<T>
Modifier and Type | Field and Description |
---|---|
protected List<ODataAnnotation> |
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 CommonURIBuilder<?> |
uri |
Constructor and Description |
---|
AbstractCollectionInvocationHandler(AbstractService<?> service,
Collection<T> items,
Class<T> itemRef,
CommonURIBuilder<?> 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 CommonURIBuilder<?> |
buildEntitySetURI(Class<?> ref,
AbstractService<?> service) |
protected static CommonURIBuilder<?> |
buildEntitySetURI(String containerNS,
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<ODataAnnotation>> |
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 CommonEdmEnabledODataClient<?> |
getClient() |
protected ComplexType<?> |
getComplex(String name,
ODataValue 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) |
boolean |
isChanged() |
protected boolean |
isDeleted(EntityInvocationHandler handler) |
boolean |
isEmpty() |
protected boolean |
isSelfMethod(Method method,
Object[] args) |
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<ODataAnnotation> annotations) |
int |
size() |
void |
skip(int skip) |
Object[] |
toArray() |
<U> U[] |
toArray(U[] array) |
void |
top(int top) |
String |
toString() |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode
invoke
protected URI nextPageURI
protected Collection<T extends Serializable> items
protected Collection<String> referenceItems
protected final URI baseURI
protected CommonURIBuilder<?> uri
protected final Class<T extends Serializable> itemRef
protected final List<ODataAnnotation> annotations
protected static final org.slf4j.Logger LOG
protected AbstractService<?> service
public AbstractCollectionInvocationHandler(AbstractService<?> service, Collection<T> items, Class<T> itemRef, CommonURIBuilder<?> uri)
public Future<Collection<T>> executeAsync()
public Collection<T> execute()
public abstract org.apache.commons.lang3.tuple.Triple<List<T>,URI,List<ODataAnnotation>> fetchPartial(URI uri, Class<T> typeRef)
public void setAnnotations(List<ODataAnnotation> 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()
public boolean isChanged()
protected CommonEdmEnabledODataClient<?> getClient()
protected Context getContext()
protected Object invokeSelfMethod(Method method, Object[] args) throws Throwable
Throwable
protected ComplexType<?> getComplex(String name, ODataValue 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 CommonURIBuilder<?> buildEntitySetURI(Class<?> ref, AbstractService<?> service)
protected static CommonURIBuilder<?> buildEntitySetURI(String containerNS, String entitySetName, AbstractService<?> service)
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.