Package com.mysql.cj.jdbc.result
Class ResultSetFactory
java.lang.Object
com.mysql.cj.jdbc.result.ResultSetFactory
- All Implemented Interfaces:
ProtocolEntityFactory<ResultSetImpl,NativePacketPayload>
public class ResultSetFactory extends java.lang.Object implements ProtocolEntityFactory<ResultSetImpl,NativePacketPayload>
-
Constructor Summary
Constructors Constructor Description ResultSetFactory(JdbcConnection connection, StatementImpl creatorStmt)
-
Method Summary
Modifier and Type Method Description ResultSetImpl
createFromProtocolEntity(ProtocolEntity protocolEntity)
Create object from protocol entity.ResultSetImpl
createFromResultsetRows(int resultSetConcurrency, int resultSetType, ResultsetRows rows)
Build ResultSet from ResultsetRowsint
getFetchSize()
Resultset.Concurrency
getResultSetConcurrency()
Resultset.Type
getResultSetType()
-
Constructor Details
-
ResultSetFactory
public ResultSetFactory(JdbcConnection connection, StatementImpl creatorStmt) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-
Method Details
-
getResultSetType
- Specified by:
getResultSetType
in interfaceProtocolEntityFactory<ResultSetImpl,NativePacketPayload>
-
getResultSetConcurrency
- Specified by:
getResultSetConcurrency
in interfaceProtocolEntityFactory<ResultSetImpl,NativePacketPayload>
-
getFetchSize
public int getFetchSize()- Specified by:
getFetchSize
in interfaceProtocolEntityFactory<ResultSetImpl,NativePacketPayload>
-
createFromProtocolEntity
Description copied from interface:ProtocolEntityFactory
Create object from protocol entity.- Specified by:
createFromProtocolEntity
in interfaceProtocolEntityFactory<ResultSetImpl,NativePacketPayload>
- Parameters:
protocolEntity
- theProtocolEntity
to create from- Returns:
- a new ProtocolEntity
-
createFromResultsetRows
public ResultSetImpl createFromResultsetRows(int resultSetConcurrency, int resultSetType, ResultsetRows rows) throws java.sql.SQLExceptionBuild ResultSet from ResultsetRows- Parameters:
resultSetType
- scrollability (TYPE_FORWARD_ONLY, TYPE_SCROLL_????)resultSetConcurrency
- the type of result set (CONCUR_UPDATABLE or READ_ONLY)rows
-ResultsetRows
- Returns:
- ResultSetImpl
- Throws:
java.sql.SQLException
- if an error occurs
-