A B C D E F G H I K L M N O P R S T U V X

A

addMostRecent(List<URL>, URL, String) - Method in class org.unitils.dbmaintainer.locator.resourcepickingstrategie.impl.UniqueMostRecentPickingStrategie
Will look to add the urlNew in the filteredResource. if duplicate exists (based on resourceSearchName) it will look at last modification date and take the most recent one.
addToScriptList(List<URL>) - Method in class org.unitils.dbmaintainer.locator.ClassPathScriptLocator
 
allPostProcessingScripts - Variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
 
allUpdateScripts - Variable in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
 
append(char) - Method in class org.unitils.dbmaintainer.script.StatementBuilder
Append a character to the statement.
assertNoDuplicateIndexes(List<Script>) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
Asserts that, in the given list of database update scripts, there are no two indexed scripts with the same version.
autoCreateExecutedScriptsTable - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
True if the scripts table should be created automatically if it does not exist yet

B

backSlashEscapingEnabled - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.InDoubleQuotesParsingState
Determines whether backslashes can be used to escape characters, e.g. \" for a double quote (= "")
backSlashEscapingEnabled - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.InSingleQuotesParsingState
Determines whether backslashes can be used to escape characters, e.g. \' for a single quote (= '')
backSlashEscapingEnabled - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.NormalParsingState
Determines whether backslashes can be used to escape characters, e.g. \" for a double quote (= "")
BaseDatabaseAccessor - Class in org.unitils.dbmaintainer.util
Base class for implementations that access the test database
BaseDatabaseAccessor() - Constructor for class org.unitils.dbmaintainer.util.BaseDatabaseAccessor
 
BaseParsingState - Class in org.unitils.dbmaintainer.script.parsingstate.impl
Base class for a parsing state.
BaseParsingState() - Constructor for class org.unitils.dbmaintainer.script.parsingstate.impl.BaseParsingState
 

C

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.
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.
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.

D

DatabaseAccessing - Interface in org.unitils.dbmaintainer.util
Task that can be performed on a database.
DatabaseModuleConfigUtils - Class in org.unitils.dbmaintainer.util
Class containing configuration utility methods specifically for the database.DatabaseModule and related modules
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
Default implementation of ConstraintsDisabler.
DefaultConstraintsDisabler() - Constructor for class org.unitils.dbmaintainer.structure.impl.DefaultConstraintsDisabler
 
DefaultDBCleaner - Class in org.unitils.dbmaintainer.clean.impl
Implementation of DBCleaner.
DefaultDBCleaner() - Constructor for class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
 
DefaultDBClearer - Class in org.unitils.dbmaintainer.clean.impl
Implementation of DBClearer.
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
Implementation of SequenceUpdater.
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
 

E

equals(Object) - Method in class org.unitils.dbmaintainer.script.ExecutedScript
 
equals(Object) - Method in class org.unitils.dbmaintainer.script.Script
 
equals(Object) - Method in class org.unitils.dbmaintainer.version.Version
 
errorInIndexedScriptDuringLastUpdate(Set<ExecutedScript>) - Method in class org.unitils.dbmaintainer.DBMaintainer
 
escaping - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.InDoubleQuotesParsingState
True if the next character should be escaped
escaping - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.InSingleQuotesParsingState
True if the next character should be escaped
escaping - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.NormalParsingState
True if the next character should be escaped
execute(ScriptContentHandle) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptRunner
Executes the given script.
execute(ScriptContentHandle) - Method in interface org.unitils.dbmaintainer.script.ScriptRunner
Executes the given script
executedAtColumnName - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
The name of the database column in which the script execution timestamp is stored
executedAtColumnSize - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
 
ExecutedScript - Class in org.unitils.dbmaintainer.script
 
ExecutedScript(Script, Date, Boolean) - Constructor for class org.unitils.dbmaintainer.script.ExecutedScript
 
ExecutedScriptInfoSource - Interface in org.unitils.dbmaintainer.version
Interface that enables registering which scripts were executed on the database and retrieving this information afterwards.
executedScripts - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
 
executedScriptsTableName - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
The name of the database table in which the executed script info is stored
executePostProcessingScripts(List<Script>) - Method in class org.unitils.dbmaintainer.DBMaintainer
Executes the given post processing scripts on the database.
executeScripts(List<Script>) - Method in class org.unitils.dbmaintainer.DBMaintainer
Executes the given scripts and updates the database version and state appropriatly.
extractIndex(String) - Method in class org.unitils.dbmaintainer.script.Script
Extracts the index part out of a given file name.
extractIndexes(String) - Method in class org.unitils.dbmaintainer.version.Version
Extracts the indexes out of the given string as followes: 1.x.2.x => 1, null, 2, null

F

fileLastModifiedAtColumnName - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
The name of the database column in which the file last modification timestamp is stored
fileNameColumnName - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
The name of the database column in which the script name is stored
fileNameColumnSize - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
 
filter(List<URL>, String) - Method in class org.unitils.dbmaintainer.locator.resourcepickingstrategie.impl.UniqueMostRecentPickingStrategie
 
filter(List<URL>, String) - Method in interface org.unitils.dbmaintainer.locator.resourcepickingstrategie.ResourcePickingStrategie
 
fromScratchEnabled - Variable in class org.unitils.dbmaintainer.DBMaintainer
Indicates whether updating the database from scratch is enabled.

G

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
Generates the DTD, and writes it to the file specified by the property DtdDataSetStructureGenerator.PROPKEY_DTD_FILENAME.
generateDataSetStructure() - Method in class org.unitils.dbmaintainer.structure.impl.XsdDataSetStructureGenerator
Generates the XSDs, and writes them to the target directory specified by the property XsdDataSetStructureGenerator.PROPKEY_XSD_DIR_NAME.
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) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
Gets a list of all available update scripts.
getAllUpdateScripts(String) - 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
The resources are loaded and than does the ResourcePickingStrategie the first filtering.
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) - 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) - 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) - 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) - 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) - 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) - 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) - 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.

H

handleNextChar(char, char, char, StatementBuilder) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.BaseParsingState
Handles the next character by adding it to the statement builder.
handleNextChar(char, char, char, StatementBuilder) - Method in interface org.unitils.dbmaintainer.script.parsingstate.ParsingState
Handles the next character in the script.
hashCode() - Method in class org.unitils.dbmaintainer.script.ExecutedScript
 
hashCode() - Method in class org.unitils.dbmaintainer.script.Script
 
hashCode() - Method in class org.unitils.dbmaintainer.version.Version
 

I

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
Initializes the database operation class with the given Properties, SQLHandler.
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) - 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) - 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.

K

keepRetryingAfterError - Variable in class org.unitils.dbmaintainer.DBMaintainer
Indicates whether a from scratch update should be performed when the previous update failed, but none of the scripts were modified since that last update.

L

lineBuffer - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.OracleNormalParsingState
Contains the current line
loadAllScripts(String) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
 
loadAllScripts(String) - Method in class org.unitils.dbmaintainer.script.impl.ResourceScriptSource
 
loadAndOrganizeAllScripts(String) - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
Loads all scripts and organizes them: Splits them into update and postprocessing scripts, sorts them in their execution order, and makes sure there are no 2 update or postprocessing scripts with the same index.
loadResources(String, Boolean) - Method in class org.unitils.dbmaintainer.locator.ClassPathResourceLocator
Load resources from the classpath.
loadScripts(List<Script>, String, ResourcePickingStrategie, List<String>) - Method in class org.unitils.dbmaintainer.locator.ClassPathScriptLocator
 
lowestAcceptableSequenceValue - Variable in class org.unitils.dbmaintainer.structure.impl.DefaultSequenceUpdater
 

M

matches(String, StringBuilder) - Method in class org.unitils.dbmaintainer.script.parsingstate.impl.OracleNormalParsingState
Utility method to check whether the given statement starts with the letters of the given text.
materializedViewsToPreserve - Variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
Names of materialized views that should not be dropped per schema.

N

normalParsingState - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.InBlockCommentParsingState
The normal parsing state, that should be returned when the comment end is reached.
normalParsingState - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.InDoubleQuotesParsingState
The normal parsing state, that should be returned when the quote end is reached.
normalParsingState - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.InLineCommentParsingState
The normal parsing state, that should be returned when the comment end is reached.
normalParsingState - Variable in class org.unitils.dbmaintainer.script.parsingstate.impl.InSingleQuotesParsingState
The normal, not in quotes, not in comment state.
NormalParsingState - Class in org.unitils.dbmaintainer.script.parsingstate.impl
The default initial parsing state that is able to recognize the beginning of line comments, block comments, single and double quote literals and the ending of a statment.
NormalParsingState() - Constructor for class org.unitils.dbmaintainer.script.parsingstate.impl.NormalParsingState
 

O

openScriptContentReader() - Method in class org.unitils.dbmaintainer.script.ScriptContentHandle
Opens a stream to the content of the script.
OracleNormalParsingState - Class in org.unitils.dbmaintainer.script.parsingstate.impl
The initial state for Oracle.
OracleNormalParsingState() - Constructor for class org.unitils.dbmaintainer.script.parsingstate.impl.OracleNormalParsingState
 
OracleScriptParser - Class in org.unitils.dbmaintainer.script.impl
A parser that can handle Oracle specific things like PL/SQL and a forward slash (/) as separator.
OracleScriptParser() - Constructor for class org.unitils.dbmaintainer.script.impl.OracleScriptParser
 
OracleScriptParser.OracleStatementBuilder - Class in org.unitils.dbmaintainer.script.impl
A statement builder with special handling for Oracle
OracleScriptParser.OracleStatementBuilder() - Constructor for class org.unitils.dbmaintainer.script.impl.OracleScriptParser.OracleStatementBuilder
 
org.unitils.dbmaintainer - package org.unitils.dbmaintainer
 
org.unitils.dbmaintainer.clean - package org.unitils.dbmaintainer.clean
 
org.unitils.dbmaintainer.clean.impl - package org.unitils.dbmaintainer.clean.impl
 
org.unitils.dbmaintainer.locator - package org.unitils.dbmaintainer.locator
 
org.unitils.dbmaintainer.locator.resourcepickingstrategie - package org.unitils.dbmaintainer.locator.resourcepickingstrategie
 
org.unitils.dbmaintainer.locator.resourcepickingstrategie.impl - package org.unitils.dbmaintainer.locator.resourcepickingstrategie.impl
 
org.unitils.dbmaintainer.script - package org.unitils.dbmaintainer.script
 
org.unitils.dbmaintainer.script.impl - package org.unitils.dbmaintainer.script.impl
 
org.unitils.dbmaintainer.script.parsingstate - package org.unitils.dbmaintainer.script.parsingstate
 
org.unitils.dbmaintainer.script.parsingstate.impl - package org.unitils.dbmaintainer.script.parsingstate.impl
 
org.unitils.dbmaintainer.structure - package org.unitils.dbmaintainer.structure
 
org.unitils.dbmaintainer.structure.impl - package org.unitils.dbmaintainer.structure.impl
 
org.unitils.dbmaintainer.util - package org.unitils.dbmaintainer.util
 
org.unitils.dbmaintainer.version - package org.unitils.dbmaintainer.version
 
org.unitils.dbmaintainer.version.impl - package org.unitils.dbmaintainer.version.impl
 

P

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_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_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_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
 

R

readScript() - Method in class org.unitils.dbmaintainer.script.ScriptContentHandle
 
registerExecutedScript(ExecutedScript) - Method in interface org.unitils.dbmaintainer.version.ExecutedScriptInfoSource
Registers the fact that the given script has been executed on the database
registerExecutedScript(ExecutedScript) - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
Registers the fact that the given script has been executed on the database
resetDatabaseState() - Method in class org.unitils.dbmaintainer.DBMaintainer
Updates the database version to the current version of the update scripts, without changing anything else in the database.
resourceList - Variable in class org.unitils.dbmaintainer.locator.ClassPathResourceLocator
 
ResourcePickingStrategie - Interface in org.unitils.dbmaintainer.locator.resourcepickingstrategie
Defines a Strategie for picking out resources.
ResourceScriptSource - Class in org.unitils.dbmaintainer.script.impl
Implementation of ScriptSource that reads script files from the classpath.
ResourceScriptSource() - Constructor for class org.unitils.dbmaintainer.script.impl.ResourceScriptSource
 

S

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>) - 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.

T

tablesToPreserve - Variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBCleaner
The tables that should not be cleaned
tablesToPreserve - Variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
Names of tables that should not be dropped per schema.
timestampFormat - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
Format of the contents of the executed_at column
toString() - Method in class org.unitils.dbmaintainer.script.Script
Gets a string representation of this script.
toString() - Method in class org.unitils.dbmaintainer.version.Version
 
triggersToPreserve - Variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
Names of triggers that should not be dropped per schema.
typesToPreserve - Variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
Names of types that should not be dropped per schema.

U

UniqueMostRecentPickingStrategie - Class in org.unitils.dbmaintainer.locator.resourcepickingstrategie.impl
Implementation of the @link{ResourcePickingStrategie}.
UniqueMostRecentPickingStrategie() - Constructor for class org.unitils.dbmaintainer.locator.resourcepickingstrategie.impl.UniqueMostRecentPickingStrategie
 
updateDatabase() - Method in class org.unitils.dbmaintainer.DBMaintainer
Checks if the new scripts are available to update the version of the database.
updateDatabase(List<Script>) - Method in class org.unitils.dbmaintainer.DBMaintainer
Updates the state of the database using the given scripts.
updateExecutedScript(ExecutedScript) - Method in interface org.unitils.dbmaintainer.version.ExecutedScriptInfoSource
Updates the given registered script
updateExecutedScript(ExecutedScript) - Method in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
Updates the given registered script
updateSequences() - Method in class org.unitils.dbmaintainer.structure.impl.DefaultSequenceUpdater
Updates all database sequences and identity columns to a sufficiently high value, so that test data be inserted easily.
updateSequences() - Method in interface org.unitils.dbmaintainer.structure.SequenceUpdater
Updates all database sequences and identity columns to a sufficiently high value, so that test data be inserted easily.
useScriptFileLastModificationDates() - Method in class org.unitils.dbmaintainer.script.impl.DefaultScriptSource
 

V

Version - Class in org.unitils.dbmaintainer.version
Class representing the version of a database or the version of a script.
Version(List<Long>) - Constructor for class org.unitils.dbmaintainer.version.Version
Creates a new version.
Version(String) - Constructor for class org.unitils.dbmaintainer.version.Version
Creates a new version.
versionColumnName - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
The name of the database column in which the script version is stored
versionColumnSize - Variable in class org.unitils.dbmaintainer.version.impl.DefaultExecutedScriptInfoSource
 
versionSource - Variable in class org.unitils.dbmaintainer.DBMaintainer
Provider of the current version of the database, and means to increment it
viewsToPreserve - Variable in class org.unitils.dbmaintainer.clean.impl.DefaultDBClearer
Names of views that should not be dropped per schema.

X

XsdDataSetStructureGenerator - Class in org.unitils.dbmaintainer.structure.impl
Implementation of DataSetStructureGenerator that generates xml schema files for data sets.
XsdDataSetStructureGenerator() - Constructor for class org.unitils.dbmaintainer.structure.impl.XsdDataSetStructureGenerator
 

A B C D E F G H I K L M N O P R S T U V X

Copyright © 2014. All Rights Reserved.