- checkExecutedScriptsTable() - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
Checks if the version table and columns are available and if a record exists in which the version info is stored.
- checkIfScriptContainsCorrectDatabaseName(String, String, boolean) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
This method checks if a scriptfile is a file that should be used by every schema or if the scriptfile is a file for a specific schema.
- checkIfThereAreNoQualifiers(String) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
- checksumColumnName - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
The name of the database column in which the checksum calculated on the script content is stored
- checksumColumnSize - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- ClassPathDataLocator - Class in org.unitils.dbmaintainer.locator
-
Refactor this class to work with a strategy class for choosing resources.
- ClassPathDataLocator() - Constructor for class org.unitils.dbmaintainer.locator.ClassPathDataLocator
-
- ClassPathResourceLocator - Class in org.unitils.dbmaintainer.locator
-
Abstract class to locate resources on the classpath.
- ClassPathResourceLocator() - Constructor for class org.unitils.dbmaintainer.locator.ClassPathResourceLocator
-
- ClassPathScriptLocator - Class in org.unitils.dbmaintainer.locator
-
Locate db scripts.
- ClassPathScriptLocator() - Constructor for class org.unitils.dbmaintainer.locator.ClassPathScriptLocator
-
- cleanSchemas() - Method in interface org.unitils.dbmaintainer.clean.DBCleaner
-
Delete data from the database schema, that could cause problems when performing updates.
- cleanSchemas() - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
-
Deletes all data from the database, except for the tables that have been
configured as tablesToPreserve , and the table in which the database version is stored
- cleanTable(String, DbSupport) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
-
Deletes the data in the table with the given name.
- clear() - Method in class org.unitils.dbmaintainer.script.StatementBuilder
-
Clear the statement.
- clearAllExecutedScripts() - Method in interface org.unitils.dbmaintainer.version.ExecutedScriptInfoSource
-
Clears all script executions that have been registered.
- clearAllExecutedScripts() - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
Clears all script executions that have been registered.
- clearSchemas() - Method in interface org.unitils.dbmaintainer.clean.DBClearer
-
Clears the database schemas.
- clearSchemas() - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Clears the database schemas.
- compareTo(Script) - Method in class org.unitils.dbmaintainer.script.Script
-
Compares the given script to this script by comparing the versions.
- compareTo(Version) - Method in class org.unitils.dbmaintainer.version.Version
-
Compares the given version to this version using the index values.
- configuration - Variable in class org.unitils.dbmaintainer.util.BaseDatabaseAccessor
-
The unitils configuration
- constraintsDisabler - Variable in class org.unitils.dbmaintainer.DBMaintainer
-
Disabler of constraints
- ConstraintsDisabler - Interface in org.unitils.dbmaintainer.structure
-
A task for disabling all foreign key, check and not-null constraints on a database schema.
- containsOneOfQualifiers(String) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
Checks if the name of the script contains one of the qualifiers.
- containsQualifier(String, List<String>) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
- convertToScriptNameScriptMap(Set<ExecutedScript>) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
- createExecutedScriptsTable() - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
Creates the version table and inserts a version record.
- createInBlockCommentParsingState() - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
Factory method for the in-block comment (/ * comment * /) parsing state.
- createInDoubleQuotesParsingState() - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
Factory method for the double quotes ("text") literal parsing state.
- createInitialParsingState(boolean) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
Builds the initial parsing state.
- createInLineCommentParsingState() - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
Factory method for the in-line comment (-- comment) parsing state.
- createInSingleQuotesParsingState() - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
Factory method for the single quotes ('text') parsing state.
- createNormalParsingState() - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
Factory method for the normal parsing state.
- createNormalParsingState() - Method in class org.unitils.dbmaintainer.script.impl.OracleScriptParser
-
- createScript(File, String) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
Creates a script object for the given script file
- createScriptParser(String) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptRunner
-
Creates a script parser.
- createStatement() - Method in class org.unitils.dbmaintainer.script.impl.OracleScriptParser.OracleStatementBuilder
-
Overridden to remove carriage returns from statements.
- createStatement() - Method in class org.unitils.dbmaintainer.script.StatementBuilder
-
Creates the resulting statement out of the given characters.
- createStatementBuilder() - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
Factory method for the statement builder.
- createStatementBuilder() - Method in class org.unitils.dbmaintainer.script.impl.OracleScriptParser
-
Factory method for the statement builder.
- createVersion(List<Long>, File) - Method in class org.unitils.dbmaintainer.script.Script
-
Creates a version for the given script file.
- currentChar - Variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
The current parsed character
- currentParsingState - Variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
The current state.
- DatabaseAccessing - Interface in org.unitils.dbmaintainer.util
-
Task that can be performed on a database.
- DatabaseModuleConfigUtils - Class in org.unitils.dbmaintainer.util
-
- DatabaseModuleConfigUtils() - Constructor for class org.unitils.dbmaintainer.util.DatabaseModuleConfigUtils
-
- dataSetStructureGenerator - Variable in class org.unitils.dbmaintainer.DBMaintainer
-
Database DTD generator
- DataSetStructureGenerator - Interface in org.unitils.dbmaintainer.structure
-
Generator for structure files, such as dtd or xml schema, for a DbUnit flat-xml data set file.
- DBCleaner - Interface in org.unitils.dbmaintainer.clean
-
Defines the contract for implementations that delete data from the database, that could cause problems when performing
updates to the database, such as adding not null columns or foreign key constraints.
- dbCleaner - Variable in class org.unitils.dbmaintainer.DBMaintainer
-
Cleaner of the database (deletes all data from all tables before updating
- DBClearer - Interface in org.unitils.dbmaintainer.clean
-
Defines the contract for implementations that clear a database schema, so that it can for instance
be recreated from scratch by the
DBMaintainer
- dbClearer - Variable in class org.unitils.dbmaintainer.DBMaintainer
-
Clearer of the database (removed all tables, sequences, ...) before updating
- DBMaintainer - Class in org.unitils.dbmaintainer
-
A class for performing automatic maintenance of a database.
- DBMaintainer() - Constructor for class org.unitils.dbmaintainer.DBMaintainer
-
Default constructor for testing.
- DBMaintainer(Properties, SQLHandler, String, List<String>) - Constructor for class org.unitils.dbmaintainer.DBMaintainer
-
Create a new instance of DBMaintainer, The concrete implementations of all
helper classes are derived from the given Configuration object.
- dbSupports - Variable in class org.unitils.dbmaintainer.util.BaseDatabaseAccessor
-
DbSupport for all schemas
- DefaultConstraintsDisabler - Class in org.unitils.dbmaintainer.structure.impl
-
- DefaultConstraintsDisabler() - Constructor for class org.unitils.dbmaintainer.structure.impl.DefaultConstraintsDisabler
-
- DefaultDBCleaner - Class in org.unitils.dbmaintainer.clean.impl
-
- DefaultDBCleaner() - Constructor for class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
-
- DefaultDBClearer - Class in org.unitils.dbmaintainer.clean.impl
-
- DefaultDBClearer() - Constructor for class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
- defaultDbSupport - Variable in class org.unitils.dbmaintainer.util.BaseDatabaseAccessor
-
DbSupport for the default schema
- DefaultExecutedScriptInfoSource - Class in org.unitils.dbmaintainer.version.impl
-
Implementation of VersionSource that stores the version in the database.
- DefaultExecutedScriptInfoSource() - Constructor for class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- DefaultScriptParser - Class in org.unitils.dbmaintainer.script.impl
-
A class for parsing statements out of sql scripts.
- DefaultScriptParser() - Constructor for class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
- DefaultScriptRunner - Class in org.unitils.dbmaintainer.script.impl
-
Default implementation of a script runner.
- DefaultScriptRunner() - Constructor for class org.unitils.dbmaintainer.script.impl.DefaultScriptRunner
-
- DefaultScriptSource - Class in org.unitils.dbmaintainer.script.impl
-
Implementation of
ScriptSource that reads script files from the filesystem.
- DefaultScriptSource() - Constructor for class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
- DefaultSequenceUpdater - Class in org.unitils.dbmaintainer.structure.impl
-
- DefaultSequenceUpdater() - Constructor for class org.unitils.dbmaintainer.structure.impl.DefaultSequenceUpdater
-
- dialect - Variable in class org.unitils.dbmaintainer.DBMaintainer
-
- dialect - Variable in class org.unitils.dbmaintainer.util.BaseDatabaseAccessor
-
- disableConstraints() - Method in interface org.unitils.dbmaintainer.structure.ConstraintsDisabler
-
Disables all constraints of the database schemas.
- disableConstraints() - Method in class org.unitils.dbmaintainer.structure.impl.DefaultConstraintsDisabler
-
Disable every foreign key or not-null constraint
- disableConstraintsEnabled - Variable in class org.unitils.dbmaintainer.DBMaintainer
-
Indicates if foreign key and not null constraints should removed after updating the database
structure
- disableReferentialConstraints(DbSupport) - Method in class org.unitils.dbmaintainer.structure.impl.DefaultConstraintsDisabler
-
Disables all referential constraints (e.g. foreign keys) on all tables in the schema
- disableValueConstraints(DbSupport) - Method in class org.unitils.dbmaintainer.structure.impl.DefaultConstraintsDisabler
-
Disables all value constraints (e.g. not null) on all tables in the schema
- doClearAllExecutedScripts() - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- doGetExecutedScripts() - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
Precondition: The table dbmaintain_scripts must exist
- doInit(Properties) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
-
Configures this object.
- doInit(Properties) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Initializes the the DBClearer.
- doInit(Properties) - Method in class org.unitils.dbmaintainer.structure.impl.DefaultSequenceUpdater
-
Initializes the lowest acceptable sequence value using the given configuration object
- doInit(Properties) - Method in class org.unitils.dbmaintainer.structure.impl.DtdDataSetStructureGenerator
-
Initializes the generator by retrieving the name for the DTD file.
- doInit(Properties) - Method in class org.unitils.dbmaintainer.structure.impl.XsdDataSetStructureGenerator
-
Initializes the generator.
- doInit(Properties) - Method in class org.unitils.dbmaintainer.util.BaseDatabaseAccessor
-
Allows subclasses to perform some extra configuration using the given configuration.
- doInit(Properties) - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
Initializes the name of the version table and its columns using the given configuration.
- doRegisterExecutedScript(ExecutedScript) - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
Registers the fact that the given script has been executed on the database
Precondition: The table dbmaintain_scripts must exist
- doSaveExecutedScript(ExecutedScript) - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
Saves the given registered script
Precondition: The table dbmaintain_scripts must exist
- doUpdateExecutedScript(ExecutedScript) - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
Updates the given registered script
Precondition: The table dbmaintain_scripts must exist
- dropMaterializedViews(DbSupport) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Drops all materialized views.
- dropSequences(DbSupport) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Drops all sequences
- dropSynonyms(DbSupport) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Drops all synonyms
- dropTables(DbSupport) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Drops all tables.
- dropTriggers(DbSupport) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Drops all triggers
- dropTypes(DbSupport) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Drops all types.
- dropViews(DbSupport) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Drops all views.
- DtdDataSetStructureGenerator - Class in org.unitils.dbmaintainer.structure.impl
-
Implementation of
DataSetStructureGenerator for the DbUnit
FlatXmlDataSet XML test data files format
todo test and fix for hsqldb (see sample project)
- DtdDataSetStructureGenerator() - Constructor for class org.unitils.dbmaintainer.structure.impl.DtdDataSetStructureGenerator
-
- generateDatabaseSchemaXsd(DbSupport, File) - Method in class org.unitils.dbmaintainer.structure.impl.XsdDataSetStructureGenerator
-
Generates an XSD for the database schema of the given db support.
- generateDataSetStructure() - Method in interface org.unitils.dbmaintainer.structure.DataSetStructureGenerator
-
Generates the data set structure files, eg DTD or XSD
- generateDataSetStructure() - Method in class org.unitils.dbmaintainer.structure.impl.DtdDataSetStructureGenerator
-
- generateDataSetStructure() - Method in class org.unitils.dbmaintainer.structure.impl.XsdDataSetStructureGenerator
-
- generateDataSetXsd(File) - Method in class org.unitils.dbmaintainer.structure.impl.XsdDataSetStructureGenerator
-
Generates a general dataset xsd that will refer to database schema specific dataset XSDs.
- generateDtdContent() - Method in class org.unitils.dbmaintainer.structure.impl.DtdDataSetStructureGenerator
-
Generates the actual content of the DTD file as an in-memory string.
- getAllUpdateScripts(String, String, boolean) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
Gets a list of all available update scripts.
- getAllUpdateScripts(String, String, boolean) - Method in interface org.unitils.dbmaintainer.script.ScriptSource
-
- getCheckSum() - Method in class org.unitils.dbmaintainer.script.Script
-
- getCheckSum() - Method in class org.unitils.dbmaintainer.script.ScriptContentHandle
-
- getConfiguredDatabaseTaskInstance(Class<T>, Properties, SQLHandler, String, List<String>) - Static method in class org.unitils.dbmaintainer.util.DatabaseModuleConfigUtils
-
Retrieves the concrete instance of the class with the given type as configured by the given Configuration.
- getCreateExecutedScriptsTableStatement() - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- getDataResource(String, ResourcePickingStrategie) - Method in class org.unitils.dbmaintainer.locator.ClassPathDataLocator
-
- getDbSupport(String) - Method in class org.unitils.dbmaintainer.util.BaseDatabaseAccessor
-
Gets the db support for the given schema.
- getExecutedAt() - Method in class org.unitils.dbmaintainer.script.ExecutedScript
-
- getExecutedScripts() - Method in interface org.unitils.dbmaintainer.version.ExecutedScriptInfoSource
-
- getExecutedScripts() - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- getFileLastModifiedAt() - Method in class org.unitils.dbmaintainer.script.Script
-
- getFileName() - Method in class org.unitils.dbmaintainer.script.Script
-
- getHexPresentation(byte[]) - Method in class org.unitils.dbmaintainer.script.ScriptContentHandle
-
- getHighestExecutedScriptVersion(Set<ExecutedScript>) - Method in class org.unitils.dbmaintainer.DBMaintainer
-
- getIncrementalScripts(String, String, boolean) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
- getIndexes() - Method in class org.unitils.dbmaintainer.version.Version
-
An empty list if no version is defined.
- getIndexesString() - Method in class org.unitils.dbmaintainer.version.Version
-
Gets a string representation of the indexes as followes:
1, null, 2, null => 1.x.2.x
- getItemsToPreserve(String, boolean) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
-
Gets the list of items to preserve.
- getItemsToPreserve(String) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Gets the list of items to preserve per schema.
- getLength() - Method in class org.unitils.dbmaintainer.script.StatementBuilder
-
Returns the length (character count) of the statement.
- getMaterializedViewsToPreserve() - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Gets the list of all materialized views to preserve per schema.
- getNewScripts(Version, Set<ExecutedScript>, String, String, boolean) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
Returns a list of scripts with a higher version or whose contents were changed.
- getNewScripts(Version, Set<ExecutedScript>, String, String, boolean) - Method in interface org.unitils.dbmaintainer.script.ScriptSource
-
Returns a list of scripts including the ones that:
have a higher version than the given version
are unversioned, and they weren't yet applied on the database
are unversioned, and their contents differ from the one currently applied to the database
The scripts are returned in the order in which they should be executed.
- getNextParsingState(char, char, char, StatementBuilder) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.BaseParsingState
-
Determines the next state.
- getNextParsingState(char, char, char, StatementBuilder) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.InBlockCommentParsingState
-
Determines whether the end of the block comment is reached.
- getNextParsingState(char, char, char, StatementBuilder) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.InDoubleQuotesParsingState
-
Determines whether the end of the literal is reached.
- getNextParsingState(char, char, char, StatementBuilder) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.InLineCommentParsingState
-
Determines whether the end of the line comment is reached.
- getNextParsingState(char, char, char, StatementBuilder) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.InSingleQuotesParsingState
-
Determines whether the end of the literal is reached.
- getNextParsingState(char, char, char, StatementBuilder) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.NormalParsingState
-
Determines the next state.
- getNextParsingState(char, char, char, StatementBuilder) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.OracleNormalParsingState
-
Overridden to also correctly identify the starting of PL/SQL code blocks and to handle slashes / to end a statement.
- getNextStatement() - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
Parses the next statement out of the given script stream.
- getNextStatement() - Method in interface org.unitils.dbmaintainer.script.ScriptParser
-
Gets the next statement out of the given script stream.
- getNextStatementImpl() - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
Actual implementation of getNextStatement.
- getPostProcessingScripts(String, String, boolean) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
Gets the configured post-processing script files and verfies that they on the file system.
- getPostProcessingScripts(String, String, boolean) - Method in interface org.unitils.dbmaintainer.script.ScriptSource
-
Gets a list of all post processing scripts.
- getResourcePickingStrategie() - Method in class org.unitils.dbmaintainer.script.impl.ResourceScriptSource
-
use unitil propertie instead of hardcoding
- getSchemasToPreserve(Properties) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Gets the list of all schemas to preserve.
- getScript() - Method in class org.unitils.dbmaintainer.script.ExecutedScript
-
- getScriptContentHandle() - Method in class org.unitils.dbmaintainer.script.Script
-
- getScriptDigest() - Method in class org.unitils.dbmaintainer.script.ScriptContentHandle
-
- getScriptExtensions() - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
Gets the configured extensions for the script files.
- getScriptIndex() - Method in class org.unitils.dbmaintainer.version.Version
-
Gets the last index in the list.
- getScriptInputStream() - Method in class org.unitils.dbmaintainer.script.ScriptContentHandle
-
- getScriptInputStream() - Method in class org.unitils.dbmaintainer.script.ScriptContentHandle.StringScriptContentHandle
-
Opens a stream to the content of the script.
- getScriptInputStream() - Method in class org.unitils.dbmaintainer.script.ScriptContentHandle.UrlScriptContentHandle
-
Opens a stream to the content of the script.
- getScriptsAt(List<Script>, String, String, String, boolean) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
Adds all scripts available in the given directory or one of its subdirectories to the
given List of files
- getScriptsAt(List<Script>, String, String, String, boolean) - Method in class org.unitils.dbmaintainer.script.impl.ResourceScriptSource
-
- getSequencesToPreserve() - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Gets the list of all sequences to preserve per schema.
- getSynonymsToPreserve() - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Gets the list of all synonym to preserve per schema.
- getTablesToPreserve() - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Gets the list of all tables to preserve per schema.
- getTrailingSeparatorCharsToRemove() - Method in class org.unitils.dbmaintainer.script.impl.OracleScriptParser.OracleStatementBuilder
-
Overridden to add a forward slash (/) as a separator.
- getTrailingSeparatorCharsToRemove() - Method in class org.unitils.dbmaintainer.script.StatementBuilder
-
Returns the characters that should be removed from the statements.
- getTriggersToPreserve() - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Gets the list of all triggers to preserve per schema.
- getTypesToPreserve() - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Gets the list of all types to preserve per schema.
- getVersion() - Method in class org.unitils.dbmaintainer.script.Script
-
- getVersionFromPath(String) - Method in class org.unitils.dbmaintainer.script.Script
-
- getViewsToPreserve() - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Gets the list of all views to preserve per schema.
- InBlockCommentParsingState - Class in org.unitils.dbmaintainer.script.parsingstate.impl
-
A state for parsing an in-block comment (/ * comment * /) part of a script.
- InBlockCommentParsingState() - Constructor for class org.unitils.dbmaintainer.script.parsingstate.impl.InBlockCommentParsingState
-
- inBlockCommentParsingState - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.NormalParsingState
-
The in a block comment (/ * comment * /) state.
- InDoubleQuotesParsingState - Class in org.unitils.dbmaintainer.script.parsingstate.impl
-
A state for parsing double quotes ("text") literal part of a script.
- InDoubleQuotesParsingState() - Constructor for class org.unitils.dbmaintainer.script.parsingstate.impl.InDoubleQuotesParsingState
-
- inDoubleQuotesParsingState - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.NormalParsingState
-
The in double quotes ("text") state.
- init(Properties, Reader) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
Initializes the parser with the given configuration settings.
- init(ParsingState) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.InBlockCommentParsingState
-
Initializes the state with the normal parsing state, that should be returned when the comment end is reached..
- init(ParsingState, boolean) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.InDoubleQuotesParsingState
-
Initializes the state with the normal parsing state, that should be returned when the end of the literal is reached.
- init(ParsingState) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.InLineCommentParsingState
-
Initializes the state with the normal parsing state, that should be returned when the comment end is reached..
- init(ParsingState, boolean) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.InSingleQuotesParsingState
-
Initializes the state with the normal parsing state, that should be returned when the end of the literal is reached..
- init(ParsingState, ParsingState, ParsingState, ParsingState, boolean) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.NormalParsingState
-
Initializes the state with the given parsing states.
- init(Properties, Reader) - Method in interface org.unitils.dbmaintainer.script.ScriptParser
-
Initializes the parser with the given configuration settings.
- init(Properties, SQLHandler, String, List<String>) - Method in class org.unitils.dbmaintainer.util.BaseDatabaseAccessor
-
Initializes the database operation class with the given
Properties,
DataSource.
- init(Properties, SQLHandler, String, List<String>) - Method in interface org.unitils.dbmaintainer.util.DatabaseAccessing
-
- initialParsingState - Variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
The starting state.
- InLineCommentParsingState - Class in org.unitils.dbmaintainer.script.parsingstate.impl
-
A state for parsing an in-line comment (-- comment) part of a script.
- InLineCommentParsingState() - Constructor for class org.unitils.dbmaintainer.script.parsingstate.impl.InLineCommentParsingState
-
- inLineCommentParsingState - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.NormalParsingState
-
The in an in-line comment (-- comment) state.
- InSingleQuotesParsingState - Class in org.unitils.dbmaintainer.script.parsingstate.impl
-
A state for parsing single quotes ('text') part of a script.
- InSingleQuotesParsingState() - Constructor for class org.unitils.dbmaintainer.script.parsingstate.impl.InSingleQuotesParsingState
-
- inSingleQuotesParsingState - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.NormalParsingState
-
The in single quotes ('text') state.
- isExecutable() - Method in class org.unitils.dbmaintainer.script.StatementBuilder
-
- isExecutedScriptsTableValid() - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
Checks if the version table and columns are available and if a record exists in which the version info is stored.
- isExistingIndexedScriptModified(Version, Set<ExecutedScript>, String, String, boolean) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
Returns true if one or more scripts that have a version index equal to or lower than
the index specified by the given version object has been modified since the timestamp specfied by
the given version.
- isExistingIndexedScriptModified(Version, Set<ExecutedScript>, String, String, boolean) - Method in interface org.unitils.dbmaintainer.script.ScriptSource
-
Returns true if one or more scripts that have a version index equal to or lower than
the index specified by the given version object has been modified since the timestamp specfied by
the given version.
- isFromScratchUpdateRecommended() - Method in interface org.unitils.dbmaintainer.version.ExecutedScriptInfoSource
-
This method returns whether a from scratch update is recommended: It will return true
if the database is in it's initial state (i.e. no scripts were executed yet) and the
autoCreateExecutedScriptsTable property is set to true.
- isFromScratchUpdateRecommended() - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
This method returns whether a from scratch update is recommended: It will return true
if the database is in it's initial state (i.e. the dbmaintain_scripts table doesn't exist yet
or is invalid) and the autoCreateExecutedScriptsTable property is set to true.
- isIncremental() - Method in class org.unitils.dbmaintainer.script.Script
-
- isItemToPreserve(String, Set<String>) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
-
Checks whether the given item is one of the items to preserve.
- isItemToPreserve(String, Set<String>) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Checks whether the given item is one of the items to preserve.
- isPostProcessingScript(Script) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
- isScriptContentEqualTo(Script, boolean) - Method in class org.unitils.dbmaintainer.script.Script
-
- isScriptFile(String) - Method in class org.unitils.dbmaintainer.locator.ClassPathScriptLocator
-
Vefiry's of the location ends with a valid file-extension.
- isScriptFile(File) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
Indicates if the given file is a database update script file
- isStartOfCodeStatement(StringBuilder) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.OracleNormalParsingState
-
Checks whether the statment contains the starting letters of a code statement (eg CREATE PACKAGE).
- isSucceeded() - Method in class org.unitils.dbmaintainer.script.ExecutedScript
-
- itemToPreserveExists(String, Set<String>) - Method in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Checks whether the given item to preserve is one of the items.
- parsingCodeBlock - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.OracleNormalParsingState
-
True if a code block is being parsed
- ParsingState - Interface in org.unitils.dbmaintainer.script.parsingstate
-
A state of a parser that can handle a character and knows when the state ends and is transfered to another state.
- path - Variable in class org.unitils.dbmaintainer.locator.ClassPathScriptLocator
-
- PROPERTY_AUTO_CREATE_EXECUTED_SCRIPTS_TABLE - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPERTY_CHECKSUM_COLUMN_NAME - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPERTY_CHECKSUM_COLUMN_SIZE - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPERTY_EXECUTED_AT_COLUMN_NAME - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPERTY_EXECUTED_AT_COLUMN_SIZE - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPERTY_EXECUTED_SCRIPTS_TABLE_NAME - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPERTY_FILE_LAST_MODIFIED_AT_COLUMN_NAME - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPERTY_FILE_NAME_COLUMN_NAME - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPERTY_FILE_NAME_COLUMN_SIZE - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPERTY_SCRIPT_VERSION_COLUMN_NAME - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPERTY_SCRIPT_VERSION_COLUMN_SIZE - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPERTY_SUCCEEDED_COLUMN_NAME - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPERTY_TIMESTAMP_FORMAT - Static variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
- PROPKEY_BACKSLASH_ESCAPING_ENABLED - Static variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
Property indicating if the characters can be escaped by using backslashes.
- PROPKEY_CLEAR_DB_CODE_ENABLED - Static variable in class org.unitils.dbmaintainer.DBMaintainer
-
Property indicating if database code should be cleared before installing a new version of
the code or when updating the database from scratch
- PROPKEY_DATABASE_DIALECT - Static variable in class org.unitils.dbmaintainer.util.DatabaseModuleConfigUtils
-
Property key of the SQL dialect of the underlying DBMS implementation
- PROPKEY_DB_CLEANER_ENABLED - Static variable in class org.unitils.dbmaintainer.DBMaintainer
-
Property indicating if deleting all data from all tables before updating is enabled
- PROPKEY_DISABLE_CONSTRAINTS_ENABLED - Static variable in class org.unitils.dbmaintainer.DBMaintainer
-
Property indicating if the database constraints should org disabled after updating the database
- PROPKEY_DTD_FILENAME - Static variable in class org.unitils.dbmaintainer.structure.impl.DtdDataSetStructureGenerator
-
- PROPKEY_EXCLUDE_QUALIFIERS - Static variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
- PROPKEY_FROM_SCRATCH_ENABLED - Static variable in class org.unitils.dbmaintainer.DBMaintainer
-
Property indicating if updating the database from scratch is enabled
- PROPKEY_GENERATE_DATA_SET_STRUCTURE_ENABLED - Static variable in class org.unitils.dbmaintainer.DBMaintainer
-
Property that indicates if a data set DTD or XSD is to be generated or not
- PROPKEY_INCLUDE_QUALIFIERS - Static variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
- PROPKEY_KEEP_RETRYING_AFTER_ERROR_ENABLED - Static variable in class org.unitils.dbmaintainer.DBMaintainer
-
Property indicating if an retry of an update should only be performed when changes to script files were made
- PROPKEY_LOWEST_ACCEPTABLE_SEQUENCE_VALUE - Static variable in class org.unitils.dbmaintainer.structure.impl.DefaultSequenceUpdater
-
- PROPKEY_POSTPROCESSINGSCRIPT_DIRNAME - Static variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
Property key for the directory in which the code script files are located
- PROPKEY_PRESERVE_DATA_SCHEMAS - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
-
Property key for schemas in which none of the tables should be cleaned
- PROPKEY_PRESERVE_DATA_TABLES - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
-
Property key for the tables that should not be cleaned
- PROPKEY_PRESERVE_MATERIALIZED_VIEWS - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
The key of the property that specifies which materialized views should not be dropped
- PROPKEY_PRESERVE_SCHEMAS - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
The key of the property that specifies of which schemas nothing should be dropped
- PROPKEY_PRESERVE_SEQUENCES - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
The key of the property that specifies which sequences should not be dropped
- PROPKEY_PRESERVE_SYNONYMS - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
The key of the property that specifies which synonyms should not be dropped
- PROPKEY_PRESERVE_TABLES - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
-
Property that specifies which tables should not be dropped (should also not be cleaned)
- PROPKEY_PRESERVE_TABLES - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
The key of the property that specifies which tables should not be dropped
- PROPKEY_PRESERVE_TRIGGERS - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
The key of the property that specifies which triggers should not be dropped
- PROPKEY_PRESERVE_TYPES - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
The key of the property that specifies which types should not be dropped
- PROPKEY_PRESERVE_VIEWS - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
The key of the property that specifies which views should not be dropped
- PROPKEY_QUALIFIERS - Static variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
- PROPKEY_SCRIPT_EXTENSIONS - Static variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
Property key for the extension of the script files
- PROPKEY_SCRIPT_LOCATIONS - Static variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
Property key for the directory in which the script files are located
- PROPKEY_UPDATE_SEQUENCES_ENABLED - Static variable in class org.unitils.dbmaintainer.DBMaintainer
-
Property indicating if the database constraints should org disabled after updating the database
- PROPKEY_USESCRIPTFILELASTMODIFICATIONDATES - Static variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
-
- PROPKEY_VERSION_TABLE_NAME - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
-
The key of the property that specifies the name of the datase table in which the
DB version is stored.
- PROPKEY_VERSION_TABLE_NAME - Static variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
The key of the property that specifies the name of the datase table in which the
DB version is stored.
- PROPKEY_XSD_COMPLEX_TYPE_SUFFIX - Static variable in class org.unitils.dbmaintainer.structure.impl.XsdDataSetStructureGenerator
-
- PROPKEY_XSD_DIR_NAME - Static variable in class org.unitils.dbmaintainer.structure.impl.XsdDataSetStructureGenerator
-
- schema - Variable in class org.unitils.dbmaintainer.locator.ClassPathScriptLocator
-
- schemasToPreserve - Variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
-
Names of schemas that should left untouched.
- schemasToPreserve - Variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Names of schemas that should left untouched.
- Script - Class in org.unitils.dbmaintainer.script
-
A class representing a script file and it's content.
- Script(String, Long, ScriptContentHandle) - Constructor for class org.unitils.dbmaintainer.script.Script
-
Creates a script with the given script fileName, whose content is provided by the given handle.
- Script(String, Long, String) - Constructor for class org.unitils.dbmaintainer.script.Script
-
Creates a script with the given fileName and content checksum.
- ScriptContentHandle - Class in org.unitils.dbmaintainer.script
-
A handle for getting the script content as a stream.
- ScriptContentHandle() - Constructor for class org.unitils.dbmaintainer.script.ScriptContentHandle
-
- ScriptContentHandle.StringScriptContentHandle - Class in org.unitils.dbmaintainer.script
-
A handle for getting the script content as a stream.
- ScriptContentHandle.StringScriptContentHandle(String) - Constructor for class org.unitils.dbmaintainer.script.ScriptContentHandle.StringScriptContentHandle
-
Creates a content handle.
- ScriptContentHandle.UrlScriptContentHandle - Class in org.unitils.dbmaintainer.script
-
A handle for getting the script content as a stream.
- ScriptContentHandle.UrlScriptContentHandle(URL) - Constructor for class org.unitils.dbmaintainer.script.ScriptContentHandle.UrlScriptContentHandle
-
Creates a content handle.
- scriptExtensions - Variable in class org.unitils.dbmaintainer.locator.ClassPathScriptLocator
-
- scriptList - Variable in class org.unitils.dbmaintainer.locator.ClassPathScriptLocator
-
- ScriptParser - Interface in org.unitils.dbmaintainer.script
-
An interface for a parser that can parse statements out of a script.
- scriptReader - Variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
-
The reader for the script content stream.
- scriptRunner - Variable in class org.unitils.dbmaintainer.DBMaintainer
-
Executer of the scripts
- ScriptRunner - Interface in org.unitils.dbmaintainer.script
-
Runs a given database script.
- scriptSource - Variable in class org.unitils.dbmaintainer.DBMaintainer
-
Provider of scripts for updating the database to a higher version
- ScriptSource - Interface in org.unitils.dbmaintainer.script
-
A source that provides scripts for updating the database to a given state.
- searchResources(URL) - Method in class org.unitils.dbmaintainer.locator.ClassPathResourceLocator
-
Will use the Spring PathMatchingResourcePatternResolver to find a resource that corresponds to the url.
- sequencesToPreserve - Variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Names of sequences that should not be dropped per schema.
- sequenceUpdater - Variable in class org.unitils.dbmaintainer.DBMaintainer
-
Database sequence updater
- SequenceUpdater - Interface in org.unitils.dbmaintainer.structure
-
Defines the contract for implementation classes that update all sequences and identity columns of a database to
a sufficiently high value, so that test data be inserted easily.
- setDialect(String) - Method in class org.unitils.dbmaintainer.DBMaintainer
-
- setExecutable(boolean) - Method in class org.unitils.dbmaintainer.script.StatementBuilder
-
Change the statement executable flag.
- setIndexes(List<Long>) - Method in class org.unitils.dbmaintainer.version.Version
-
Sets the indexes.
- setSuccessful(Boolean) - Method in class org.unitils.dbmaintainer.script.ExecutedScript
-
- shouldUpdateDatabaseFromScratch(Version, Set<ExecutedScript>, String, boolean) - Method in class org.unitils.dbmaintainer.DBMaintainer
-
Checks whether the database should be updated from scratch or just incrementally.
- sqlHandler - Variable in class org.unitils.dbmaintainer.util.BaseDatabaseAccessor
-
Provides connections to the unit test database
- statementBuffer - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.OracleNormalParsingState
-
Contains the current statement letters (no signs..) with all double whitespace and newlines converted to single whitespace
- StatementBuilder - Class in org.unitils.dbmaintainer.script
-
A class for building statements.
- StatementBuilder() - Constructor for class org.unitils.dbmaintainer.script.StatementBuilder
-
- succeededColumnName - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
-
The name of the database column in which the script name is stored
- synonymsToPreserve - Variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
-
Names of synonyms that should not be dropped per schema.