类 ResultSetFactory
- java.lang.Object
-
- com.mysql.cj.jdbc.result.ResultSetFactory
-
- 所有已实现的接口:
ProtocolEntityFactory<ResultSetImpl,NativePacketPayload>
public class ResultSetFactory extends Object implements ProtocolEntityFactory<ResultSetImpl,NativePacketPayload>
-
-
构造器概要
构造器 构造器 说明 ResultSetFactory(JdbcConnection connection, StatementImpl creatorStmt)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ResultSetImplcreateFromProtocolEntity(ProtocolEntity protocolEntity)Create object from protocol entity.ResultSetImplcreateFromResultsetRows(int resultSetConcurrency, int resultSetType, ResultsetRows rows)Build ResultSet from ResultsetRowsintgetFetchSize()Resultset.ConcurrencygetResultSetConcurrency()Resultset.TypegetResultSetType()-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.mysql.cj.protocol.ProtocolEntityFactory
createFromMessage
-
-
-
-
构造器详细资料
-
ResultSetFactory
public ResultSetFactory(JdbcConnection connection, StatementImpl creatorStmt) throws SQLException
- 抛出:
SQLException
-
-
方法详细资料
-
getResultSetType
public Resultset.Type getResultSetType()
-
getResultSetConcurrency
public Resultset.Concurrency getResultSetConcurrency()
-
getFetchSize
public int getFetchSize()
-
createFromProtocolEntity
public ResultSetImpl createFromProtocolEntity(ProtocolEntity protocolEntity)
从接口复制的说明:ProtocolEntityFactoryCreate object from protocol entity.- 指定者:
createFromProtocolEntity在接口中ProtocolEntityFactory<ResultSetImpl,NativePacketPayload>- 参数:
protocolEntity- theProtocolEntityto create from- 返回:
- a new ProtocolEntity
-
createFromResultsetRows
public ResultSetImpl createFromResultsetRows(int resultSetConcurrency, int resultSetType, ResultsetRows rows) throws SQLException
Build ResultSet from ResultsetRows- 参数:
resultSetType- scrollability (TYPE_FORWARD_ONLY, TYPE_SCROLL_????)resultSetConcurrency- the type of result set (CONCUR_UPDATABLE or READ_ONLY)rows-ResultsetRows- 返回:
- ResultSetImpl
- 抛出:
SQLException- if an error occurs
-
-