Class AbstractLoader<T extends IDatabase>
java.lang.Object
org.pgcodekeeper.core.database.base.loader.AbstractLoader<T>
- All Implemented Interfaces:
ILoader
- Direct Known Subclasses:
AbstractDumpLoader,AbstractJdbcLoader,AbstractLibraryLoader,AbstractProjectLoader
Base database loader
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisAllowedSchema(String schemaName) load()Loads the database schema.Loads the database and performs full expression analysis.
-
Method Details
-
load
Description copied from interface:ILoaderLoads the database schema.- Specified by:
loadin interfaceILoader- Returns:
- loaded database
- Throws:
IOExceptionInterruptedException
-
getDatabase
- Specified by:
getDatabasein interfaceILoader- Returns:
- previously loaded database, or null if
ILoader.load()has not been called
-
getErrors
-
addError
-
loadAndAnalyze
Loads the database and performs full expression analysis.- Specified by:
loadAndAnalyzein interfaceILoader- Returns:
- fully loaded and analyzed database
- Throws:
IOException- if database loading failsInterruptedException- if the loading process is interrupted
-
getDatabaseName
- Specified by:
getDatabaseNamein interfaceILoader- Returns:
- name identifying the database source (database name, file name, or project directory name)
-
getSettings
- Specified by:
getSettingsin interfaceILoader- Returns:
- configuration settings
-
getMonitor
-
isAllowedSchema
-