Package gudusoft.gsqlparser.sqlcmds
Class TSqlCmdsOdbc
Object
gudusoft.gsqlparser.sqlcmds.AbstractSqlCmds
gudusoft.gsqlparser.sqlcmds.TSqlCmdsOdbc
- All Implemented Interfaces:
ISqlCmds
Odbc SQL command resolver (stub implementation).
TODO: Extract vendor-specific logic from TSqlCmds
- Since:
- 3.1.0.9
-
Field Summary
Fields inherited from class gudusoft.gsqlparser.sqlcmds.AbstractSqlCmds
gnewsqlstatementtype, initialized, initLock, sqlCmdList, vendor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInitialize vendor-specific commands.issql(TSourceToken token, EFindSqlStateType state, TCustomSqlStatement currentStatement) Identifies the SQL statement type from a token stream.Methods inherited from class gudusoft.gsqlparser.sqlcmds.AbstractSqlCmds
addCmd, addCmd, addCmd, addCmd, addCmd, addCmd, addCmd, ensureInitialized, findcte, finddbcmd, getSqlCmdList, getStatementTypeForToken, getToken1Str, getVendor
-
Constructor Details
-
TSqlCmdsOdbc
public TSqlCmdsOdbc()
-
-
Method Details
-
initializeCommands
Description copied from class:AbstractSqlCmdsInitialize vendor-specific commands. Subclasses must implement this to populate sqlCmdList.- Specified by:
initializeCommandsin classAbstractSqlCmds
-
issql
public TCustomSqlStatement issql(TSourceToken token, EFindSqlStateType state, TCustomSqlStatement currentStatement) Description copied from interface:ISqlCmdsIdentifies 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:
token- Current token being analyzedstate- Current parsing state (start, in body, or in exception)currentStatement- Current statement being built (may be modified)- Returns:
- The identified or modified SQL statement
-