Class CursorStatementContext
- java.lang.Object
-
- org.apache.shardingsphere.infra.binder.statement.CommonSQLStatementContext
-
- org.apache.shardingsphere.infra.binder.statement.ddl.CursorStatementContext
-
- All Implemented Interfaces:
CursorDefinition,SQLStatementContext,CursorAvailable,TableAvailable,WhereAvailable
public final class CursorStatementContext extends CommonSQLStatementContext implements CursorAvailable, TableAvailable, WhereAvailable, CursorDefinition
Cursor statement context.
-
-
Constructor Summary
Constructors Constructor Description CursorStatementContext(ShardingSphereMetaData metaData, List<Object> params, org.apache.shardingsphere.sql.parser.sql.dialect.statement.opengauss.ddl.OpenGaussCursorStatement sqlStatement, String defaultDatabaseName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment>getAllTables()Get all table segments.Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.ColumnSegment>getColumnSegments()Get column segments.Optional<org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.cursor.CursorNameSegment>getCursorName()Get cursor name segment.org.apache.shardingsphere.sql.parser.sql.dialect.statement.opengauss.ddl.OpenGaussCursorStatementgetSqlStatement()Get SQL statement.Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.predicate.WhereSegment>getWhereSegments()Get where segments.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.shardingsphere.infra.binder.statement.SQLStatementContext
getDatabaseType, getTablesContext
-
Methods inherited from interface org.apache.shardingsphere.infra.binder.type.TableAvailable
getTablesContext
-
-
-
-
Constructor Detail
-
CursorStatementContext
public CursorStatementContext(ShardingSphereMetaData metaData, List<Object> params, org.apache.shardingsphere.sql.parser.sql.dialect.statement.opengauss.ddl.OpenGaussCursorStatement sqlStatement, String defaultDatabaseName)
-
-
Method Detail
-
getSqlStatement
public org.apache.shardingsphere.sql.parser.sql.dialect.statement.opengauss.ddl.OpenGaussCursorStatement getSqlStatement()
Description copied from interface:SQLStatementContextGet SQL statement.- Specified by:
getSqlStatementin interfaceSQLStatementContext- Returns:
- SQL statement
-
getAllTables
public Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> getAllTables()
Description copied from interface:TableAvailableGet all table segments.- Specified by:
getAllTablesin interfaceTableAvailable- Returns:
- all table segments
-
getCursorName
public Optional<org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.cursor.CursorNameSegment> getCursorName()
Description copied from interface:CursorAvailableGet cursor name segment.- Specified by:
getCursorNamein interfaceCursorAvailable- Returns:
- cursor name segment
-
getWhereSegments
public Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.predicate.WhereSegment> getWhereSegments()
Description copied from interface:WhereAvailableGet where segments.- Specified by:
getWhereSegmentsin interfaceWhereAvailable- Returns:
- where segments
-
getColumnSegments
public Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.ColumnSegment> getColumnSegments()
Description copied from interface:WhereAvailableGet column segments.- Specified by:
getColumnSegmentsin interfaceWhereAvailable- Returns:
- column segments
-
-