Package org.apache.olingo.ext.proxy.api
Interface EntityCollection<T extends StructuredType<?>,EC extends Collection<T>,CT extends StructuredCollection<T,EC,?>>
- All Superinterfaces:
Collection<T>
,GenericCollection<T,
,EC> Iterable<T>
,Serializable
,StructuredCollection<T,
EC, CT>
public interface EntityCollection<T extends StructuredType<?>,EC extends Collection<T>,CT extends StructuredCollection<T,EC,?>>
extends StructuredCollection<T,EC,CT>
-
Method Summary
Modifier and TypeMethodDescription<ET extends EntityType<?>>
booleanaddRef
(ET element) Add entity by its reference ID.refs()
Appends ref segment to the URI.Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
Methods inherited from interface org.apache.olingo.ext.proxy.api.GenericCollection
execute, executeAsync
Methods inherited from interface org.apache.olingo.ext.proxy.api.StructuredCollection
hasNextPage, nextPage
-
Method Details
-
refs
CT refs()Appends ref segment to the URI.- Returns:
- the same query instance.
-
addRef
Add entity by its reference ID.- Parameters:
element
- entity to be linked.- Returns:
- TRUE if correctly added; FALSE otherwise.
-