T - The type of the entity modelE - The implementing subclass of this classF - The type of TypedEntityList.AvailableFieldsG - The type of TypedEntityList.SortableFieldspublic abstract class GetTypedEntities<T extends TypedEntityModel,E extends GetTypedEntities,F extends TypedEntityList.AvailableFields,G extends TypedEntityList.SortableFields> extends TypedEntityList.TypedEntityRequest<T>
for the non typed version| Modifier | Constructor and Description |
|---|---|
protected |
GetTypedEntities(Class<T> typedEntityModelClass,
OctaneHttpClient octaneHttpClient,
String baseDomain) |
| Modifier and Type | Method and Description |
|---|---|
E |
addFields(F... fields)
Adds fields of type F
|
E |
addOrderBy(G sortableField,
boolean asc)
Add OrderBy parameters
|
OctaneCollection<T> |
execute()
Carries out the execution and returns the entities
|
OctaneCollection<T> |
execute(APIMode header)
Carries out the execution and returns the entities, using a custom api mode
|
E |
limit(int limit)
Add Limit parameter
|
E |
offset(int offset)
Add offset parameter
|
E |
query(Query query) |
getEntityInstanceprotected GetTypedEntities(Class<T> typedEntityModelClass, OctaneHttpClient octaneHttpClient, String baseDomain)
public final OctaneCollection<T> execute()
public final OctaneCollection<T> execute(APIMode header)
public final E addFields(F... fields)
fields - Array of fieldspublic final E limit(int limit)
limit - The entity limitpublic final E offset(int offset)
offset - The entity limit offsetpublic final E addOrderBy(G sortableField, boolean asc)
sortableField - The string which determines how the entities should be orderedasc - - true=ascending/false=descendingCopyright © 2021 Micro Focus. All rights reserved.