类 SqlUpdateResult
- java.lang.Object
-
- com.mysql.cj.xdevapi.UpdateResult
-
- com.mysql.cj.xdevapi.SqlUpdateResult
-
- 所有已实现的接口:
QueryResult,FetchResult<Row>,InsertResult,Result,RowResult,SqlResult,Iterable<Row>,Iterator<Row>
public class SqlUpdateResult extends UpdateResult implements SqlResult
SqlResultfor insert, update, delete and DDL statements.
-
-
字段概要
-
从类继承的字段 com.mysql.cj.xdevapi.UpdateResult
ok
-
-
构造器概要
构造器 构造器 说明 SqlUpdateResult(StatementExecuteOk ok)Constructor.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 longcount()How many items are in this result?List<Row>fetchAll()Create a list of all elements in the result forcing internal buffering.LonggetAutoIncrementValue()Get the auto-increment value if one was generated from a row insert statement.intgetColumnCount()Count of columns.List<String>getColumnNames()Names of columns.List<Column>getColumns()Metadata.booleanhasData()Does this result have data?booleanhasNext()Rownext()booleannextResult()Move to the next result.-
从类继承的方法 com.mysql.cj.xdevapi.UpdateResult
getAffectedItemsCount, getWarnings, getWarningsCount
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.mysql.cj.xdevapi.FetchResult
fetchOne, iterator
-
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
从接口继承的方法 java.util.Iterator
forEachRemaining, remove
-
从接口继承的方法 com.mysql.cj.xdevapi.Result
getAffectedItemsCount, getWarnings, getWarningsCount
-
-
-
-
构造器详细资料
-
SqlUpdateResult
public SqlUpdateResult(StatementExecuteOk ok)
Constructor.- 参数:
ok-StatementExecuteOkinstance.
-
-
方法详细资料
-
hasData
public boolean hasData()
从接口复制的说明:FetchResultDoes this result have data? This indicates that the result was produced from a data-returning query. It does not indicate whether there are more than 0 rows in the result.- 指定者:
hasData在接口中FetchResult<Row>- 返回:
- true if has data
-
nextResult
public boolean nextResult()
从接口复制的说明:SqlResultMove to the next result. This method has no effect after returningfalsefor the first time.- 指定者:
nextResult在接口中SqlResult- 返回:
- was there a next result that we moved to?
-
fetchAll
public List<Row> fetchAll()
从接口复制的说明:FetchResultCreate a list of all elements in the result forcing internal buffering.- 指定者:
fetchAll在接口中FetchResult<Row>- 返回:
- list of result elements
-
getColumnCount
public int getColumnCount()
从接口复制的说明:RowResultCount of columns.- 指定者:
getColumnCount在接口中RowResult- 返回:
- count
-
getColumns
public List<Column> getColumns()
从接口复制的说明:RowResultMetadata.- 指定者:
getColumns在接口中RowResult- 返回:
- list of result
Columnobjects
-
getColumnNames
public List<String> getColumnNames()
从接口复制的说明:RowResultNames of columns.- 指定者:
getColumnNames在接口中RowResult- 返回:
- list of result column names
-
count
public long count()
从接口复制的说明:FetchResultHow many items are in this result? This method forces internal buffering of the entire result.- 指定者:
count在接口中FetchResult<Row>- 返回:
- number of elements in result
-
getAutoIncrementValue
public Long getAutoIncrementValue()
从接口复制的说明:InsertResultGet the auto-increment value if one was generated from a row insert statement.- 指定者:
getAutoIncrementValue在接口中InsertResult- 指定者:
getAutoIncrementValue在接口中SqlResult- 返回:
- auto-increment value
-
-