public class DefaultDatabaseStorageChecker extends AbstractDatabaseStorage implements StorageChecker
dataSource, dbResourceAccessor, jdbcTemplate, resourceAccessor, resourceLoader, transactionManager| Constructor and Description |
|---|
DefaultDatabaseStorageChecker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
existPatchAndSqlTable()
Looks at table schema and return true if tables DARWIN_PATCH and DARWIN_SQL exist
|
boolean |
existsPatchAndSqlTableNoCache() |
boolean |
guessPatchAlreadyApplied(String componentName,
DarwinStorage darwinStorage,
VersionDescriptor checkedVersion)
Executes script that allows to guess if particular patch is already present in database.
|
VersionDescriptor |
guessVersion(String componentName,
DarwinStorage darwinStorage)
Executes script that allows to guess existing version of the data layer.
|
afterPropertiesSet, getPlatform, setDataSource, setResourceLoaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlatformpublic VersionDescriptor guessVersion(String componentName, DarwinStorage darwinStorage)
StorageCheckerguessVersion in interface StorageCheckercomponentName - unique name of the componentdarwinStorage - storage implementationpublic boolean guessPatchAlreadyApplied(String componentName, DarwinStorage darwinStorage, VersionDescriptor checkedVersion)
StorageCheckerguessPatchAlreadyApplied in interface StorageCheckercomponentName - unique name of the componentdarwinStorage - storage implementationcheckedVersion - version identification that is required to be detected from the current DB schemapublic boolean existPatchAndSqlTable()
StorageCheckerexistPatchAndSqlTable in interface StorageCheckerpublic boolean existsPatchAndSqlTableNoCache()
Copyright © 2020 FG Forrest, a.s.. All rights reserved.