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 ResultSetImplcreateFromProtocolEntity(ProtocolEntity protocolEntity)Create object from protocol entity.ResultSetImplcreateFromResultsetRows(int resultSetConcurrency, int resultSetType, ResultsetRows rows)Build ResultSet from ResultsetRowsintgetFetchSize()Resultset.ConcurrencygetResultSetConcurrency()Resultset.TypegetResultSetType()
-
Constructor Details
-
ResultSetFactory
public ResultSetFactory(JdbcConnection connection, StatementImpl creatorStmt) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-
Method Details
-
getResultSetType
- Specified by:
getResultSetTypein interfaceProtocolEntityFactory<ResultSetImpl,NativePacketPayload>
-
getResultSetConcurrency
- Specified by:
getResultSetConcurrencyin interfaceProtocolEntityFactory<ResultSetImpl,NativePacketPayload>
-
getFetchSize
public int getFetchSize()- Specified by:
getFetchSizein interfaceProtocolEntityFactory<ResultSetImpl,NativePacketPayload>
-
createFromProtocolEntity
Description copied from interface:ProtocolEntityFactoryCreate object from protocol entity.- Specified by:
createFromProtocolEntityin interfaceProtocolEntityFactory<ResultSetImpl,NativePacketPayload>- Parameters:
protocolEntity- theProtocolEntityto 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
-