Class FetchStatementContext
- java.lang.Object
-
- org.apache.shardingsphere.infra.binder.statement.CommonSQLStatementContext
-
- org.apache.shardingsphere.infra.binder.statement.ddl.FetchStatementContext
-
- All Implemented Interfaces:
CursorDefinitionAware,SQLStatementContext,CursorAvailable,WhereAvailable
public final class FetchStatementContext extends CommonSQLStatementContext implements CursorAvailable, WhereAvailable, CursorDefinitionAware
Fetch statement context.
-
-
Constructor Summary
Constructors Constructor Description FetchStatementContext(org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.FetchStatement sqlStatement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.common.statement.ddl.FetchStatementgetSqlStatement()Get SQL statement.Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.predicate.WhereSegment>getWhereSegments()Get where segments.voidsetUpCursorDefinition(CursorStatementContext cursorStatementContext)Set up cursor definition.-
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
-
-
-
-
Method Detail
-
getSqlStatement
public org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.FetchStatement getSqlStatement()
Description copied from interface:SQLStatementContextGet SQL statement.- Specified by:
getSqlStatementin interfaceSQLStatementContext- Returns:
- SQL statement
-
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
-
setUpCursorDefinition
public void setUpCursorDefinition(CursorStatementContext cursorStatementContext)
Description copied from interface:CursorDefinitionAwareSet up cursor definition.- Specified by:
setUpCursorDefinitionin interfaceCursorDefinitionAware- Parameters:
cursorStatementContext- cursor statement context
-
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
-
-