Class TSqlCmdsAdapter

Object
gudusoft.gsqlparser.sqlcmds.TSqlCmdsAdapter
All Implemented Interfaces:
ISqlCmds

public class TSqlCmdsAdapter extends Object implements ISqlCmds
Adapter class that wraps the monolithic TSqlCmds for gradual migration. This allows us to migrate vendors one at a time while maintaining compatibility.
Since:
3.1.0.9
  • Constructor Details

  • Method Details

    • issql

      public TCustomSqlStatement issql(TSourceToken token, EFindSqlStateType state, TCustomSqlStatement currentStatement)
      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.
      Specified by:
      issql in interface ISqlCmds
      Parameters:
      token - Current token being analyzed
      state - Current parsing state (start, in body, or in exception)
      currentStatement - Current statement being built (may be modified)
      Returns:
      The identified or modified SQL statement
    • getStatementTypeForToken

      Description copied from interface: ISqlCmds
      Finds SQL command type for yacc parser integration. Used by vendor-specific yacc parsers to identify statement types.
      Specified by:
      getStatementTypeForToken in interface ISqlCmds
      Parameters:
      token - Token to analyze
      Returns:
      SQL statement type, or sstunknown if not recognized
    • getVendor

      public EDbVendor getVendor()
      Description copied from interface: ISqlCmds
      Gets the vendor this command resolver handles.
      Specified by:
      getVendor in interface ISqlCmds
      Returns:
      Database vendor
    • getSqlCmdList

      Description copied from interface: ISqlCmds
      Gets the command list for this vendor (for compatibility and debugging).
      Specified by:
      getSqlCmdList in interface ISqlCmds
      Returns:
      Command list containing all recognized commands
    • findSybaseCmdInternal

      Internal helper for Sybase to find command type. Called by TSqlCmdsSybase.findCmdUsedByYacc() until Sybase is fully migrated.