public class TSqlCmdsOceanbaseOracle extends TSqlCmdsOracle
Extends the stock TSqlCmdsOracle to add recognition for
OceanBase-specific DDL that parses through the Oracle-mode fork:
currently the CREATE/ALTER/DROP TABLEGROUP family (Batch 6).
This class keeps OceanBase-specific prefix registrations out of the
shared TSqlCmdsOracle so base-Oracle semantics remain
unchanged and backportable. OceanBaseOracleSqlParser
selects this subclass in its constructor.
initialized, initLock, sqlCmdList, vendor| Constructor and Description |
|---|
TSqlCmdsOceanbaseOracle() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initializeCommands()
Initialize vendor-specific commands.
|
TCustomSqlStatement |
issql(TSourceToken token,
EFindSqlStateType state,
TCustomSqlStatement currentStatement)
Intercept the
TUnknownSqlStatement produced by
TSqlCmdsOracle.issql(gudusoft.gsqlparser.TSourceToken, gudusoft.gsqlparser.EFindSqlStateType, gudusoft.gsqlparser.TCustomSqlStatement) for the OceanBase tablegroup types
and swap in the proper statement class so downstream tools switch
on the real type rather than the opaque unknown shell. |
getToken1StraddCmd, addCmd, addCmd, addCmd, addCmd, addCmd, addCmd, addCmd, ensureInitialized, findcte, finddbcmd, getSqlCmdList, getStatementTypeForToken, getVendorpublic TSqlCmdsOceanbaseOracle()
protected void initializeCommands()
AbstractSqlCmdsinitializeCommands in class TSqlCmdsOraclepublic TCustomSqlStatement issql(TSourceToken token, EFindSqlStateType state, TCustomSqlStatement currentStatement)
TUnknownSqlStatement produced by
TSqlCmdsOracle.issql(gudusoft.gsqlparser.TSourceToken, gudusoft.gsqlparser.EFindSqlStateType, gudusoft.gsqlparser.TCustomSqlStatement) for the OceanBase tablegroup types
and swap in the proper statement class so downstream tools switch
on the real type rather than the opaque unknown shell.issql in interface ISqlCmdsissql in class TSqlCmdsOracletoken - Current token being analyzedstate - Current parsing state (start, in body, or in exception)currentStatement - Current statement being built (may be modified)