Class TSqlCmdsGreenplum

Object
gudusoft.gsqlparser.sqlcmds.AbstractSqlCmds
gudusoft.gsqlparser.sqlcmds.TSqlCmdsGreenplum
All Implemented Interfaces:
ISqlCmds

public class TSqlCmdsGreenplum extends AbstractSqlCmds
Greenplum SQL command resolver. Extracted from TSqlCmds monolith for modular architecture.
Since:
3.1.0.9
  • Constructor Details

  • Method Details

    • initializeCommands

      protected void initializeCommands()
      Description copied from class: AbstractSqlCmds
      Initialize vendor-specific commands. Subclasses must implement this to populate sqlCmdList.
      Specified by:
      initializeCommands in class AbstractSqlCmds
    • getToken1Str

      protected String getToken1Str(int token1)
      Description copied from class: AbstractSqlCmds
      Get the string representation for vendor-specific token codes. Subclasses should override this method to provide mappings for vendor-specific reserved words (tokens > TBaseType.rrw_abort).
      Overrides:
      getToken1Str in class AbstractSqlCmds
      Parameters:
      token1 - Token code
      Returns:
      String representation of the token, or null if not applicable
    • issql

      Description copied from interface: ISqlCmds
      Identifies the SQL statement type from a token stream. This method is called repeatedly during parsing to identify statement boundaries and types in complex SQL scripts.
      Parameters:
      pcst - Current token being analyzed
      pstate - Current parsing state (start, in body, or in exception)
      psqlstatement - Current statement being built (may be modified)
      Returns:
      The identified or modified SQL statement