/** * Constructor for MysqliResult * * @param metaData the corresponding result set meta data * @param conn the corresponding connection */ public MysqliResult(ResultSetMetaData metaData, Mysqli conn) { super(metaData); _conn = conn; }
/** * Constructor for MysqliResult * * @param stmt the corresponding statement * @param rs the corresponding result set * @param conn the corresponding connection */ public MysqliResult(Statement stmt, ResultSet rs, Mysqli conn) { super(rs); _conn = conn; // getNumRows() @is efficient for MySQL _resultSetSize = getNumRows(); this.num_rows = _resultSetSize; }
/** * Constructor for MysqliStatement * * @param conn a Mysqli connection */ MysqliStatement(Mysqli conn) { super(conn); }