@Component(value="data_QueryResultsManager") public class QueryResultsManagerImpl extends java.lang.Object implements QueryResultsManager
Modifier and Type | Field and Description |
---|---|
protected static int |
BATCH_SIZE |
protected io.jmix.core.security.CurrentAuthentication |
currentAuthentication |
protected DbmsSpecifics |
dbmsSpecifics |
protected static int |
DELETE_BATCH_SIZE |
protected static int |
INACTIVE_DELETION_MAX |
protected org.springframework.jdbc.core.JdbcTemplate |
jdbcTemplate |
protected org.springframework.beans.factory.ObjectProvider<JpqlQueryBuilder> |
jpqlQueryBuilderProvider |
protected io.jmix.core.Metadata |
metadata |
protected QueryTransformerFactory |
queryTransformerFactory |
protected org.springframework.transaction.support.TransactionTemplate |
transaction |
Constructor and Description |
---|
QueryResultsManagerImpl() |
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,
io.jmix.core.LoadContext.Query query) |
void |
savePreviousQueryResults(io.jmix.core.LoadContext loadContext) |
protected void |
setDataSource(javax.sql.DataSource dataSource) |
protected void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) |
@Autowired protected DbmsSpecifics dbmsSpecifics
@Autowired protected io.jmix.core.security.CurrentAuthentication currentAuthentication
@Autowired protected io.jmix.core.Metadata metadata
@Autowired protected QueryTransformerFactory queryTransformerFactory
@Autowired protected org.springframework.beans.factory.ObjectProvider<JpqlQueryBuilder> jpqlQueryBuilderProvider
protected org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
protected org.springframework.transaction.support.TransactionTemplate transaction
protected static final int BATCH_SIZE
protected static final int DELETE_BATCH_SIZE
protected static final int INACTIVE_DELETION_MAX
@Autowired protected void setDataSource(javax.sql.DataSource dataSource)
@Autowired protected void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public void savePreviousQueryResults(io.jmix.core.LoadContext loadContext)
savePreviousQueryResults
in interface QueryResultsManager
protected boolean resultsAlreadySaved(java.lang.Integer queryKey, io.jmix.core.LoadContext.Query query)
public void insert(int queryKey, java.util.List idList)
insert
in interface QueryResultsManager
public void delete(int queryKey)
delete
in interface QueryResultsManager
public void deleteForCurrentSession()
deleteForCurrentSession
in interface QueryResultsManager
public void deleteForInactiveSessions()
deleteForInactiveSessions
in interface QueryResultsManager
public void internalDeleteForInactiveSessions()
protected void delete(java.util.List<java.lang.Long> ids)