Package org.cyclos.impl.sql
Class BaseNativeQueryHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.sql.BaseNativeQueryHandlerImpl
-
- All Implemented Interfaces:
CustomBean,NativeQueryHandler
- Direct Known Subclasses:
PostgresqlQueryHandlerImpl
public abstract class BaseNativeQueryHandlerImpl extends Object implements NativeQueryHandler
Base implementation forNativeQueryHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classBaseNativeQueryHandlerImpl.DatabaseInfoImpl-
Nested classes/interfaces inherited from interface org.cyclos.impl.sql.NativeQueryHandler
NativeQueryHandler.DatabaseInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationContextapplicationContextprotected JdbcTemplatejdbcTemplateprotected RawDataSourceProviderrawDataSourceProviderprotected RawEntityManagerHandlerrawEntityManagerHandler
-
Constructor Summary
Constructors Constructor Description BaseNativeQueryHandlerImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DbLockHandlergetDbLockHandler()Returns the handler for the db_lock.protected DataSourcegetRawDataSource()protected SessionDatagetSessionData()voidinitialize()protected abstract BaseDbLockHandlerImplinstantiateDbLockHandler()voidshutdownDbLockHandler()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.impl.sql.NativeQueryHandler
closeAccountBalances, copyLargeObject, countUsersByUrl, deleteLargeObject, fixInconsistentAccountBalances, getAccountBalanceHistory, getAccountStatuses, getDatabaseInfo, getJpaQueryTemplates, getNextTransactionNumber, getObjectId, getRunningVacuumStart, getSearchHandler, getVacuumInfo, insertArchiveAccountFees, insertArchiveBulkActions, insertBackgroundTaskExecution, insertEntityNotificationProcessingBackgroundTasks, insertReindexBackgroundTasks, insertTransferInitialStatus, insertUserAccountFeeLogs, insertUserIncomingMessages, insertUsersForBulkAction, iterateRecords, iterateUserIds, iterateUsers, nextAccountIdsToClose, openLargeObject, purgeRemovedBuiltinLanguages, rebuildClosedAccountBalances, setObjectId, supportsBlobsInReadOnlyTransactions, tryLock, tryLock, updateAccountStatuses, userAccounts, vacuum, writeLargeObject
-
-
-
-
Field Detail
-
rawDataSourceProvider
@Autowired protected RawDataSourceProvider rawDataSourceProvider
-
applicationContext
@Autowired protected ApplicationContext applicationContext
-
jdbcTemplate
@Autowired @Lazy protected JdbcTemplate jdbcTemplate
-
rawEntityManagerHandler
@Autowired @Lazy protected RawEntityManagerHandler rawEntityManagerHandler
-
-
Method Detail
-
getDbLockHandler
public DbLockHandler getDbLockHandler()
Description copied from interface:NativeQueryHandlerReturns the handler for the db_lock. Don't confuse this withNativeQueryHandler.tryLock(LockKey), which has a key. This one is for the database itself, so 2 instances don't use the same database.- Specified by:
getDbLockHandlerin interfaceNativeQueryHandler
-
initialize
@PostConstruct public void initialize()
-
shutdownDbLockHandler
@PreDestroy public void shutdownDbLockHandler()
-
getRawDataSource
protected DataSource getRawDataSource()
-
getSessionData
protected SessionData getSessionData()
-
instantiateDbLockHandler
protected abstract BaseDbLockHandlerImpl instantiateDbLockHandler()
-
-