Class FormattedSqlChangeLogParser
java.lang.Object
liquibase.parser.AbstractFormattedChangeLogParser
liquibase.parser.core.formattedsql.FormattedSqlChangeLogParser
- All Implemented Interfaces:
ChangeLogParser,LiquibaseParser,PrioritizedService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class liquibase.parser.AbstractFormattedChangeLogParser
ALT_CHANGE_SET_NO_OTHER_INFO_PATTERN, ALT_CHANGE_SET_NO_OTHER_INFO_REGEX, ALT_CHANGE_SET_ONE_CHARACTER_PATTERN, ALT_CHANGE_SET_ONE_CHARACTER_REGEX, ALT_COMMENT_ONE_CHARACTER_PATTERN, ALT_COMMENT_ONE_CHARACTER_REGEX, ALT_COMMENT_PLURAL_PATTERN, ALT_COMMENT_PLURAL_REGEX, ALT_IGNORE_LINES_ONE_CHARACTER_PATTERN, ALT_IGNORE_LINES_ONE_CHARACTER_REGEX, ALT_IGNORE_PATTERN, ALT_IGNORE_REGEX, ALT_PRECONDITION_ONE_CHARACTER_PATTERN, ALT_PRECONDITION_ONE_CHARACTER_REGEX, ALT_PRECONDITIONS_ONE_CHARACTER_PATTERN, ALT_PRECONDITIONS_ONE_CHARACTER_REGEX, ALT_PROPERTY_ONE_CHARACTER_PATTERN, ALT_PROPERTY_ONE_CHARACTER_REGEX, ALT_ROLLBACK_ONE_CHARACTER_PATTERN, ALT_ROLLBACK_ONE_CHARACTER_REGEX, ALT_VALID_CHECK_SUM_ONE_CHARACTER_PATTERN, ALT_VALID_CHECK_SUM_ONE_CHARACTER_REGEX, AUTHOR, CHANGE_SET_AUTHOR, CHANGE_SET_ID, CHANGE_SET_PATH, CHANGE_SET_PATTERN, CHANGE_SET_REGEX, COMMENT_PATTERN, COMMENT_REGEX, CONTEXT, CONTEXT_FILTER, CONTEXT_FILTER_PATTERN, CONTEXT_FILTER_REGEX, CONTEXT_PATTERN, CONTEXT_REGEX, DBMS, DBMS_PATTERN, DBMS_REGEX, DOUBLE_QUOTE_RESULT_REGEX, END_DELIMITER, END_DELIMITER_PATTERN, END_DELIMITER_REGEX, EXCEPTION_MESSAGE, FAIL_ON_ERROR_PATTERN, FAIL_ON_ERROR_REGEX, FIRST_LINE_PATTERN, FIRST_LINE_REGEX, GLOBAL_PATTERN, GLOBAL_REGEX, ID, IGNORE, IGNORE_LINES_PATTERN, IGNORE_LINES_REGEX, IGNORE_PATTERN, IGNORE_REGEX, INCLUDE, INCLUDE_ALL, INVALID_EMPTY_PRECONDITION_PATTERN, INVALID_EMPTY_PRECONDITION_REGEX, LABELS, LABELS_PATTERN, LABELS_REGEX, LOGICAL_FILE_PATH, LOGICAL_FILE_PATH_PATTERN, LOGICAL_FILE_PATH_REGEX, NAME_PATTERN, NAME_REGEX, ON_ERROR_PATTERN, ON_ERROR_REGEX, ON_FAIL_PATTERN, ON_FAIL_REGEX, PRECONDITION_PATTERN, PRECONDITION_REGEX, PRECONDITIONS_PATTERN, PRECONDITIONS_REGEX, PROPERTY_CONTEXT, PROPERTY_CONTEXT_FILTER, PROPERTY_NAME, PROPERTY_PATTERN, PROPERTY_REGEX, PROPERTY_VALUE, ROLLBACK_CHANGE_SET_AUTHOR_PATTERN, ROLLBACK_CHANGE_SET_AUTHOR_REGEX, ROLLBACK_CHANGE_SET_ID_PATTERN, ROLLBACK_CHANGE_SET_ID_REGEX, ROLLBACK_CHANGE_SET_PATH_PATTERN, ROLLBACK_CHANGE_SET_PATH_REGEX, ROLLBACK_END_DELIMITER, ROLLBACK_END_DELIMITER_PATTERN, ROLLBACK_END_DELIMITER_REGEX, ROLLBACK_MULTI_LINE_END_PATTERN, ROLLBACK_MULTI_LINE_END_REGEX, ROLLBACK_MULTI_LINE_START_PATTERN, ROLLBACK_MULTI_LINE_START_REGEX, ROLLBACK_PATTERN, ROLLBACK_REGEX, ROLLBACK_SPLIT_STATEMENTS_PATTERN, ROLLBACK_SPLIT_STATEMENTS_REGEX, RUN_ALWAYS_PATTERN, RUN_ALWAYS_REGEX, RUN_IN_TRANSACTION_PATTERN, RUN_IN_TRANSACTION_REGEX, RUN_ON_CHANGE_PATTERN, RUN_ON_CHANGE_REGEX, RUN_WITH, RUN_WITH_PATTERN, RUN_WITH_REGEX, RUN_WITH_SPOOL_FILE, RUN_WITH_SPOOL_FILE_PATTERN, RUN_WITH_SPOOL_FILE_REGEX, SCHEMA_NAME_STATEMENT_PATTERN, SCHEMA_NAME_STATEMENT_REGEX, SINGLE_QUOTE_RESULT_REGEX, SPLIT_STATEMENTS, SPLIT_STATEMENTS_PATTERN, SPLIT_STATEMENTS_REGEX, STRIP_COMMENTS, STRIP_COMMENTS_PATTERN, STRIP_COMMENTS_REGEX, TABLE_NAME_STATEMENT_PATTERN, TABLE_NAME_STATEMENT_REGEX, VALID_CHECK_SUM_PATTERN, VALID_CHECK_SUM_REGEX, VALUE_PATTERN, VALUE_REGEX, VIEW_NAME_STATEMENT_PATTERN, VIEW_NAME_STATEMENT_REGEX, WORD_AND_QUOTING_PATTERNS, WORD_RESULT_REGEXFields inherited from interface liquibase.parser.ChangeLogParser
DATABASE_CHANGE_LOGFields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractSQLChangeprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected voidhandleInvalidEmptyPreconditionCase(ChangeLogParameters changeLogParameters, ChangeSet changeSet, Matcher preconditionMatcher) protected voidhandlePreconditionCase(ChangeLogParameters changeLogParameters, ChangeSet changeSet, Matcher preconditionMatcher) protected voidhandlePreconditionsCase(ChangeSet changeSet, int count, Matcher preconditionsMatcher) protected static booleanisFirstSqlLine(StringBuilder currentSequence, AbstractSQLChange change) protected booleanisNotEndDelimiter(AbstractSQLChange change) protected voidsetChangeSequence(AbstractSQLChange change, String finalCurrentSequence) protected voidsetChangeSequence(ChangeLogParameters changeLogParameters, StringBuilder currentSequence, ChangeSet changeSet, AbstractSQLChange change) protected booleansupportsExtension(String changelogFile) Methods inherited from class liquibase.parser.AbstractFormattedChangeLogParser
configureChangeSet, configureChangeSet, configureChangeSet, configureChangeSet, getPriority, handleAdditionalLines, handleAdditionalLines, handleChangeSet, handleDbms, handleEndDelimiter, handleSplitStatements, handleStripComments, logMatch, openChangeLogFile, parse, parseBoolean, parseBoolean, parseBooleanObject, parseString, resetSequences, setLogicalFilePath, supports
-
Field Details
-
ON_FAIL
- See Also:
-
ON_ERROR
- See Also:
-
ON_SQL_OUTPUT
- See Also:
-
ON_UPDATE
- See Also:
-
SQL_CHECK
- See Also:
-
TABLE_EXISTS
- See Also:
-
VIEW_EXISTS
- See Also:
-
-
Constructor Details
-
FormattedSqlChangeLogParser
public FormattedSqlChangeLogParser()
-
-
Method Details
-
isFirstSqlLine
-
getSingleLineCommentOneCharacter
- Specified by:
getSingleLineCommentOneCharacterin classAbstractFormattedChangeLogParser
-
getStartMultiLineCommentSequence
- Specified by:
getStartMultiLineCommentSequencein classAbstractFormattedChangeLogParser
-
getEndMultiLineCommentSequence
- Specified by:
getEndMultiLineCommentSequencein classAbstractFormattedChangeLogParser
-
getSingleLineCommentSequence
- Specified by:
getSingleLineCommentSequencein classAbstractFormattedChangeLogParser
-
supportsExtension
- Specified by:
supportsExtensionin classAbstractFormattedChangeLogParser
-
handlePreconditionsCase
protected void handlePreconditionsCase(ChangeSet changeSet, int count, Matcher preconditionsMatcher) throws ChangeLogParseException - Specified by:
handlePreconditionsCasein classAbstractFormattedChangeLogParser- Throws:
ChangeLogParseException
-
handlePreconditionCase
protected void handlePreconditionCase(ChangeLogParameters changeLogParameters, ChangeSet changeSet, Matcher preconditionMatcher) throws ChangeLogParseException - Specified by:
handlePreconditionCasein classAbstractFormattedChangeLogParser- Throws:
ChangeLogParseException
-
getChange
- Specified by:
getChangein classAbstractFormattedChangeLogParser
-
getDocumentationLink
- Specified by:
getDocumentationLinkin classAbstractFormattedChangeLogParser
-
getSequenceName
- Specified by:
getSequenceNamein classAbstractFormattedChangeLogParser
-
setChangeSequence
- Specified by:
setChangeSequencein classAbstractFormattedChangeLogParser
-
isNotEndDelimiter
- Specified by:
isNotEndDelimiterin classAbstractFormattedChangeLogParser
-
setChangeSequence
protected void setChangeSequence(ChangeLogParameters changeLogParameters, StringBuilder currentSequence, ChangeSet changeSet, AbstractSQLChange change) - Specified by:
setChangeSequencein classAbstractFormattedChangeLogParser
-
handleInvalidEmptyPreconditionCase
protected void handleInvalidEmptyPreconditionCase(ChangeLogParameters changeLogParameters, ChangeSet changeSet, Matcher preconditionMatcher) throws ChangeLogParseException - Overrides:
handleInvalidEmptyPreconditionCasein classAbstractFormattedChangeLogParser- Throws:
ChangeLogParseException
-