Package io.jmix.data.impl
Class QueryResultsManagerImpl
java.lang.Object
io.jmix.data.impl.QueryResultsManagerImpl
- All Implemented Interfaces:
QueryResultsManager
@Component("data_QueryResultsManager")
public class QueryResultsManagerImpl
extends Object
implements QueryResultsManager
Supports functionality that allows queries from previously selected results.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected CurrentAuthentication
protected DbmsSpecifics
protected static final int
protected static final int
protected org.springframework.jdbc.core.JdbcTemplate
protected org.springframework.beans.factory.ObjectProvider<JpqlQueryBuilder>
protected Metadata
protected QueryTransformerFactory
protected org.springframework.transaction.support.TransactionTemplate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(int queryKey) protected void
void
void
void
void
protected boolean
resultsAlreadySaved
(Integer queryKey, LoadContext.Query query) void
savePreviousQueryResults
(LoadContext loadContext) protected void
setDataSource
(DataSource dataSource) protected void
setTransactionManager
(org.springframework.transaction.PlatformTransactionManager transactionManager)
-
Field Details
-
dbmsSpecifics
-
currentAuthentication
-
metadata
-
queryTransformerFactory
-
jpqlQueryBuilderProvider
@Autowired protected org.springframework.beans.factory.ObjectProvider<JpqlQueryBuilder> jpqlQueryBuilderProvider -
jdbcTemplate
protected org.springframework.jdbc.core.JdbcTemplate jdbcTemplate -
transaction
protected org.springframework.transaction.support.TransactionTemplate transaction -
BATCH_SIZE
protected static final int BATCH_SIZE- See Also:
-
DELETE_BATCH_SIZE
protected static final int DELETE_BATCH_SIZE- See Also:
-
INACTIVE_DELETION_MAX
protected static final int INACTIVE_DELETION_MAX- See Also:
-
-
Constructor Details
-
QueryResultsManagerImpl
public QueryResultsManagerImpl()
-
-
Method Details
-
setDataSource
-
setTransactionManager
@Autowired protected void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) -
savePreviousQueryResults
- Specified by:
savePreviousQueryResults
in interfaceQueryResultsManager
-
resultsAlreadySaved
-
insert
- Specified by:
insert
in interfaceQueryResultsManager
-
delete
public void delete(int queryKey) - Specified by:
delete
in interfaceQueryResultsManager
-
deleteForCurrentSession
public void deleteForCurrentSession()- Specified by:
deleteForCurrentSession
in interfaceQueryResultsManager
-
deleteForInactiveSessions
public void deleteForInactiveSessions()- Specified by:
deleteForInactiveSessions
in interfaceQueryResultsManager
-
internalDeleteForInactiveSessions
public void internalDeleteForInactiveSessions() -
delete
-