Class SQLServerParser


  • public class SQLServerParser
    extends org.flywaydb.core.internal.parser.Parser
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.flywaydb.core.internal.parser.Parser

        org.flywaydb.core.internal.parser.Parser.ParserSqlStatementIterator
    • Field Summary

      • Fields inherited from class org.flywaydb.core.internal.parser.Parser

        configuration, parsingContext
    • Constructor Summary

      Constructors 
      Constructor Description
      SQLServerParser​(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void adjustBlockDepth​(org.flywaydb.core.internal.parser.ParserContext context, java.util.List<org.flywaydb.core.internal.parser.Token> tokens, org.flywaydb.core.internal.parser.Token keyword, org.flywaydb.core.internal.parser.PeekingReader reader)  
      protected java.lang.Boolean detectCanExecuteInTransaction​(java.lang.String simplifiedStatement, java.util.List<org.flywaydb.core.internal.parser.Token> keywords)  
      protected char getClosingIdentifierSymbol()  
      protected org.flywaydb.core.internal.sqlscript.Delimiter getDefaultDelimiter()  
      protected char getOpeningIdentifierSymbol()  
      protected int getTransactionalDetectionCutoff()  
      protected boolean isDelimiter​(java.lang.String peek, org.flywaydb.core.internal.parser.ParserContext context, int col, int colIgnoringWhitespace)  
      protected java.lang.String readKeyword​(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.sqlscript.Delimiter delimiter, org.flywaydb.core.internal.parser.ParserContext context)  
      protected boolean shouldAdjustBlockDepth​(org.flywaydb.core.internal.parser.ParserContext context, java.util.List<org.flywaydb.core.internal.parser.Token> tokens, org.flywaydb.core.internal.parser.Token token)  
      • Methods inherited from class org.flywaydb.core.internal.parser.Parser

        adjustDelimiter, createStatement, detectStatementType, doTokensMatchPattern, getAlternativeIdentifierQuote, getAlternativeStringLiteralQuote, getIdentifierQuote, getLastKeywordIndex, getLastKeywordIndex, getNextStatement, getPreviousToken, getValidKeywords, handleAlternativeStringLiteral, handleCommentDirective, handleDelimiter, handleKeyword, handleStringLiteral, isAlternativeStringLiteral, isCommentDirective, isKeyword, isLetter, isSingleLineComment, lastTokenIs, lastTokenIsOnLine, parse, parse, readIdentifier, replacePlaceholders, resetDelimiter, shouldDiscard, supportsPeekingMultipleLines, supportsReferencedSqlScripts, tokenAtIndexIs
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SQLServerParser

        public SQLServerParser​(org.flywaydb.core.api.configuration.Configuration configuration,
                               org.flywaydb.core.internal.parser.ParsingContext parsingContext)
    • Method Detail

      • getDefaultDelimiter

        protected org.flywaydb.core.internal.sqlscript.Delimiter getDefaultDelimiter()
        Overrides:
        getDefaultDelimiter in class org.flywaydb.core.internal.parser.Parser
      • isDelimiter

        protected boolean isDelimiter​(java.lang.String peek,
                                      org.flywaydb.core.internal.parser.ParserContext context,
                                      int col,
                                      int colIgnoringWhitespace)
        Overrides:
        isDelimiter in class org.flywaydb.core.internal.parser.Parser
      • readKeyword

        protected java.lang.String readKeyword​(org.flywaydb.core.internal.parser.PeekingReader reader,
                                               org.flywaydb.core.internal.sqlscript.Delimiter delimiter,
                                               org.flywaydb.core.internal.parser.ParserContext context)
                                        throws java.io.IOException
        Overrides:
        readKeyword in class org.flywaydb.core.internal.parser.Parser
        Throws:
        java.io.IOException
      • detectCanExecuteInTransaction

        protected java.lang.Boolean detectCanExecuteInTransaction​(java.lang.String simplifiedStatement,
                                                                  java.util.List<org.flywaydb.core.internal.parser.Token> keywords)
        Overrides:
        detectCanExecuteInTransaction in class org.flywaydb.core.internal.parser.Parser
      • shouldAdjustBlockDepth

        protected boolean shouldAdjustBlockDepth​(org.flywaydb.core.internal.parser.ParserContext context,
                                                 java.util.List<org.flywaydb.core.internal.parser.Token> tokens,
                                                 org.flywaydb.core.internal.parser.Token token)
        Overrides:
        shouldAdjustBlockDepth in class org.flywaydb.core.internal.parser.Parser
      • adjustBlockDepth

        protected void adjustBlockDepth​(org.flywaydb.core.internal.parser.ParserContext context,
                                        java.util.List<org.flywaydb.core.internal.parser.Token> tokens,
                                        org.flywaydb.core.internal.parser.Token keyword,
                                        org.flywaydb.core.internal.parser.PeekingReader reader)
                                 throws java.io.IOException
        Overrides:
        adjustBlockDepth in class org.flywaydb.core.internal.parser.Parser
        Throws:
        java.io.IOException
      • getTransactionalDetectionCutoff

        protected int getTransactionalDetectionCutoff()
        Overrides:
        getTransactionalDetectionCutoff in class org.flywaydb.core.internal.parser.Parser
      • getOpeningIdentifierSymbol

        protected char getOpeningIdentifierSymbol()
        Overrides:
        getOpeningIdentifierSymbol in class org.flywaydb.core.internal.parser.Parser
      • getClosingIdentifierSymbol

        protected char getClosingIdentifierSymbol()
        Overrides:
        getClosingIdentifierSymbol in class org.flywaydb.core.internal.parser.Parser