Class FormattedSqlChangeLogParser
java.lang.Object
liquibase.parser.AbstractFormattedChangeLogParser
liquibase.parser.core.formattedsql.FormattedSqlChangeLogParser
- All Implemented Interfaces:
ChangeLogParser
,LiquibaseParser
,PrioritizedService
-
Field Summary
Fields 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, CHANGE_SET_PATTERN, CHANGE_SET_REGEX, COMMENT_PATTERN, COMMENT_REGEX, CONTEXT_FILTER_PATTERN, CONTEXT_FILTER_REGEX, CONTEXT_PATTERN, CONTEXT_REGEX, DBMS_PATTERN, DBMS_REGEX, DOUBLE_QUOTE_RESULT_REGEX, 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, IGNORE_LINES_PATTERN, IGNORE_LINES_REGEX, IGNORE_PATTERN, IGNORE_REGEX, INVALID_EMPTY_PRECONDITION_PATTERN, INVALID_EMPTY_PRECONDITION_REGEX, LABELS_PATTERN, LABELS_REGEX, 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_PATTERN, PROPERTY_REGEX, 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_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_PATTERN, RUN_WITH_REGEX, RUN_WITH_SPOOL_FILE_PATTERN, RUN_WITH_SPOOL_FILE_REGEX, SCHEMA_NAME_STATEMENT_PATTERN, SCHEMA_NAME_STATEMENT_REGEX, SINGLE_QUOTE_RESULT_REGEX, SPLIT_STATEMENTS_PATTERN, SPLIT_STATEMENTS_REGEX, 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_REGEX
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractSQLChange
protected String
protected String
protected String
protected String
protected String
protected String
protected void
handleInvalidEmptyPreconditionCase
(ChangeLogParameters changeLogParameters, ChangeSet changeSet, Matcher preconditionMatcher) protected void
handlePreconditionCase
(ChangeLogParameters changeLogParameters, ChangeSet changeSet, Matcher preconditionMatcher) protected void
handlePreconditionsCase
(ChangeSet changeSet, int count, Matcher preconditionsMatcher) protected boolean
isNotEndDelimiter
(AbstractSQLChange change) protected void
setChangeSequence
(AbstractSQLChange change, String finalCurrentSequence) protected void
setChangeSequence
(ChangeLogParameters changeLogParameters, StringBuilder currentSequence, ChangeSet changeSet, AbstractSQLChange change) protected boolean
supportsExtension
(String changelogFile) Methods inherited from class liquibase.parser.AbstractFormattedChangeLogParser
configureChangeSet, configureChangeSet, configureChangeSet, configureChangeSet, getPriority, handleAdditionalLines, handleChangeSet, handleDbms, handleEndDelimiter, handleSplitStatements, handleStripComments, openChangeLogFile, parse, parseBoolean, parseString, resetSequences, setLogicalFilePath, supports
-
Constructor Details
-
FormattedSqlChangeLogParser
public FormattedSqlChangeLogParser()
-
-
Method Details
-
getSingleLineCommentOneCharacter
- Specified by:
getSingleLineCommentOneCharacter
in classAbstractFormattedChangeLogParser
-
getStartMultiLineCommentSequence
- Specified by:
getStartMultiLineCommentSequence
in classAbstractFormattedChangeLogParser
-
getEndMultiLineCommentSequence
- Specified by:
getEndMultiLineCommentSequence
in classAbstractFormattedChangeLogParser
-
getSingleLineCommentSequence
- Specified by:
getSingleLineCommentSequence
in classAbstractFormattedChangeLogParser
-
supportsExtension
- Specified by:
supportsExtension
in classAbstractFormattedChangeLogParser
-
handlePreconditionsCase
protected void handlePreconditionsCase(ChangeSet changeSet, int count, Matcher preconditionsMatcher) throws ChangeLogParseException - Specified by:
handlePreconditionsCase
in classAbstractFormattedChangeLogParser
- Throws:
ChangeLogParseException
-
handlePreconditionCase
protected void handlePreconditionCase(ChangeLogParameters changeLogParameters, ChangeSet changeSet, Matcher preconditionMatcher) throws ChangeLogParseException - Specified by:
handlePreconditionCase
in classAbstractFormattedChangeLogParser
- Throws:
ChangeLogParseException
-
getChange
- Specified by:
getChange
in classAbstractFormattedChangeLogParser
-
getDocumentationLink
- Specified by:
getDocumentationLink
in classAbstractFormattedChangeLogParser
-
getSequenceName
- Specified by:
getSequenceName
in classAbstractFormattedChangeLogParser
-
setChangeSequence
- Specified by:
setChangeSequence
in classAbstractFormattedChangeLogParser
-
isNotEndDelimiter
- Specified by:
isNotEndDelimiter
in classAbstractFormattedChangeLogParser
-
setChangeSequence
protected void setChangeSequence(ChangeLogParameters changeLogParameters, StringBuilder currentSequence, ChangeSet changeSet, AbstractSQLChange change) - Specified by:
setChangeSequence
in classAbstractFormattedChangeLogParser
-
handleInvalidEmptyPreconditionCase
protected void handleInvalidEmptyPreconditionCase(ChangeLogParameters changeLogParameters, ChangeSet changeSet, Matcher preconditionMatcher) throws ChangeLogParseException - Overrides:
handleInvalidEmptyPreconditionCase
in classAbstractFormattedChangeLogParser
- Throws:
ChangeLogParseException
-