@Component(value="cuba_QueryResultsManager") public class QueryResultsManager extends java.lang.Object implements QueryResultsManagerAPI
Modifier and Type | Field and Description |
---|---|
protected static int |
BATCH_SIZE |
protected ClusterManagerAPI |
clusterManager |
protected Configuration |
configuration |
protected static int |
DELETE_BATCH_SIZE |
protected static int |
INACTIVE_DELETION_MAX |
protected Metadata |
metadata |
protected Persistence |
persistence |
protected UserSessionsAPI |
userSessions |
protected UserSessionSource |
userSessionSource |
NAME
Constructor and Description |
---|
QueryResultsManager() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int queryKey) |
protected void |
delete(java.util.List<java.lang.Long> ids) |
void |
deleteForCurrentSession() |
void |
deleteForInactiveSessions() |
void |
insert(int queryKey,
java.util.List idList) |
void |
internalDeleteForInactiveSessions() |
protected boolean |
resultsAlreadySaved(java.lang.Integer queryKey,
LoadContext.Query query) |
void |
savePreviousQueryResults(LoadContext loadContext) |
@Inject protected Persistence persistence
@Inject protected UserSessionSource userSessionSource
@Inject protected UserSessionsAPI userSessions
@Inject protected ClusterManagerAPI clusterManager
@Inject protected Configuration configuration
@Inject protected Metadata metadata
protected static final int BATCH_SIZE
protected static final int DELETE_BATCH_SIZE
protected static final int INACTIVE_DELETION_MAX
public void savePreviousQueryResults(LoadContext loadContext)
savePreviousQueryResults
in interface QueryResultsManagerAPI
protected boolean resultsAlreadySaved(java.lang.Integer queryKey, LoadContext.Query query)
public void insert(int queryKey, java.util.List idList)
insert
in interface QueryResultsManagerAPI
public void delete(int queryKey)
delete
in interface QueryResultsManagerAPI
public void deleteForCurrentSession()
deleteForCurrentSession
in interface QueryResultsManagerAPI
public void deleteForInactiveSessions()
deleteForInactiveSessions
in interface QueryResultsManagerAPI
public void internalDeleteForInactiveSessions()
protected void delete(java.util.List<java.lang.Long> ids)