@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public class StreamingGenericConfigurationDTORetriever extends BaseStreamingRetriever<Long,String,GenericConfigurationDTO>
| Constructor and Description |
|---|
StreamingGenericConfigurationDTORetriever(QueryDslAccessor qdslAccessor,
DatabaseAccessor dbAccessor) |
| Modifier and Type | Method and Description |
|---|---|
static com.querydsl.sql.SQLQuery<?> |
getBaseQuery(DbConnection connection,
DatabaseAccessor dbAccessor,
String descriptionSubstring) |
protected List<GenericConfigurationDTO> |
getEntitiesBatchByIds(List<Long> idsBatch)
The implementation should return the entities based on provided ids list
|
protected List<Long> |
getEntityIds(String descriptionSubstring)
The implementation should return all the ids of entities which will be then returned in batches
|
java.util.stream.Stream<List<GenericConfigurationDTO>> |
stream(String descriptionSubstring,
int batchSize)
Returns stream of batches ActionDTOs whose bodies contain specified text
Note that the returned entities are sorted by the id of the issue they belong to
|
public StreamingGenericConfigurationDTORetriever(QueryDslAccessor qdslAccessor, DatabaseAccessor dbAccessor)
public java.util.stream.Stream<List<GenericConfigurationDTO>> stream(String descriptionSubstring, int batchSize)
BaseStreamingRetrieverstream in class BaseStreamingRetriever<Long,String,GenericConfigurationDTO>descriptionSubstring - parameter for the query returning entity ids from the databasebatchSize - size of single entity batch to be returnedNote that the returned entities are sorted by the id of the issue they belong toprotected List<Long> getEntityIds(String descriptionSubstring)
BaseStreamingRetrievergetEntityIds in class BaseStreamingRetriever<Long,String,GenericConfigurationDTO>descriptionSubstring - the parameter which is used to find the entitiesprotected List<GenericConfigurationDTO> getEntitiesBatchByIds(List<Long> idsBatch)
BaseStreamingRetrievergetEntitiesBatchByIds in class BaseStreamingRetriever<Long,String,GenericConfigurationDTO>idsBatch - the batch of ids for the entities to be returnedpublic static com.querydsl.sql.SQLQuery<?> getBaseQuery(DbConnection connection, DatabaseAccessor dbAccessor, String descriptionSubstring)
Copyright © 2002-2024 Atlassian. All Rights Reserved.