private SortedMap<String, Object>[] getRows() { if (_data == null) { return null; } return _data.getRows(); }
/** * Converts a <code>ResultSet</code> object to a <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * * @return The <code>Result</code> object created from the <code>ResultSet</code> */ public static Result toResult(ResultSet rs) { try { return new ResultImpl(rs, -1, -1); } catch (SQLException ex) { return null; } }
private SortedMap[] getRows() { if(_data==null) return null; return _data.getRows(); }
/** * Converts a <code>ResultSet</code> object to a <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * @return The <code>Result</code> object created from the <code>ResultSet</code> */ public static Result toResult(ResultSet rs) { try { return new ResultImpl(rs, -1, -1); } catch (SQLException ex) { return null; } }
public void setWrappedData(Object data) { if (data == null) { setRowIndex(-1); } else { result = (Result) data; rows_ = result.getRows(); setRowIndex(0); } }
/** * Converts a <code>ResultSet</code> object to a <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * * @return The <code>Result</code> object created from the <code>ResultSet</code> */ public static Result toResult(ResultSet rs) { try { return new ResultImpl(rs, -1, -1); } catch (SQLException ex) { return null; } }
/** * @throws ClassCastException if <code>data</code> is * non-<code>null</code> and is not a <code>Result</code> */ @Override public void setWrappedData(Object data) { if (data == null) { result = null; rows = null; setRowIndex(-1); } else { result = (Result) data; rows = result.getRows(); index = -1; setRowIndex(0); } }
/** * Converts a <code>ResultSet</code> object to a <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * * @return The <code>Result</code> object created from the <code>ResultSet</code> */ public static Result toResult(ResultSet rs) { try { return new ResultImpl(rs, -1, -1); } catch (SQLException ex) { return null; } }
/** * @throws ClassCastException if <code>data</code> is * non-<code>null</code> and is not a <code>Result</code> */ public void setWrappedData(Object data) { if (data == null) { result = null; rows = null; setRowIndex(-1); } else { result = (Result) data; rows = result.getRows(); index = -1; setRowIndex(0); } }
/** * Converts a <code>ResultSet</code> object to a <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * @return The <code>Result</code> object created from the <code>ResultSet</code> */ public static Result toResult(ResultSet rs) { try { return new ResultImpl(rs, -1, -1); } catch (SQLException ex) { return null; } }
/** * @throws ClassCastException if <code>data</code> is * non-<code>null</code> and is not a <code>Result</code> */ public void setWrappedData(Object data) { if (data == null) { result = null; rows = null; setRowIndex(-1); } else { result = (Result) data; rows = result.getRows(); index = -1; setRowIndex(0); } }
/** * Converts a <code>ResultSet</code> object to a <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * * @return The <code>Result</code> object created from the <code>ResultSet</code> */ public static Result toResult(ResultSet rs) { try { return new ResultImpl(rs, -1, -1); } catch (SQLException ex) { return null; } }
/** * Converts <code>maxRows</code> of a <code>ResultSet</code> object to a * <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * @param maxRows the maximum number of rows to be cached into the <code>Result</code> object. * @return The <code>Result</code> object created from the <code>ResultSet</code>, * limited by <code>maxRows</code> */ public static Result toResult(ResultSet rs, int maxRows) { try { return new ResultImpl(rs, -1, maxRows); } catch (SQLException ex) { return null; } }
/** * Converts a <code>ResultSet</code> object to a <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * * @return The <code>Result</code> object created from the <code>ResultSet</code> */ public static Result toResult(ResultSet rs) { try { return new ResultImpl(rs, -1, -1); } catch (SQLException ex) { return null; } }
/** * Converts <code>maxRows</code> of a <code>ResultSet</code> object to a * <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * @param maxRows the maximum number of rows to be cached into the <code>Result</code> object. * * @return The <code>Result</code> object created from the <code>ResultSet</code>, * limited by <code>maxRows</code> */ public static Result toResult(ResultSet rs, int maxRows) { try { return new ResultImpl(rs, -1, maxRows); } catch (SQLException ex) { return null; } }
/** * Converts <code>maxRows</code> of a <code>ResultSet</code> object to a * <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * @param maxRows the maximum number of rows to be cached into the <code>Result</code> object. * * @return The <code>Result</code> object created from the <code>ResultSet</code>, * limited by <code>maxRows</code> */ public static Result toResult(ResultSet rs, int maxRows) { try { return new ResultImpl(rs, -1, maxRows); } catch (SQLException ex) { return null; } }
/** * Converts <code>maxRows</code> of a <code>ResultSet</code> object to a * <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * @param maxRows the maximum number of rows to be cached into the <code>Result</code> object. * * @return The <code>Result</code> object created from the <code>ResultSet</code>, * limited by <code>maxRows</code> */ public static Result toResult(ResultSet rs, int maxRows) { try { return new ResultImpl(rs, -1, maxRows); } catch (SQLException ex) { return null; } }
/** * Converts <code>maxRows</code> of a <code>ResultSet</code> object to a * <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * @param maxRows the maximum number of rows to be cached into the <code>Result</code> object. * @return The <code>Result</code> object created from the <code>ResultSet</code>, * limited by <code>maxRows</code> */ public static Result toResult(ResultSet rs, int maxRows) { try { return new ResultImpl(rs, -1, maxRows); } catch (SQLException ex) { return null; } }
/** * Converts <code>maxRows</code> of a <code>ResultSet</code> object to a * <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * @param maxRows the maximum number of rows to be cached into the <code>Result</code> object. * * @return The <code>Result</code> object created from the <code>ResultSet</code>, * limited by <code>maxRows</code> */ public static Result toResult(ResultSet rs, int maxRows) { try { return new ResultImpl(rs, -1, maxRows); } catch (SQLException ex) { return null; } }
/** * Converts <code>maxRows</code> of a <code>ResultSet</code> object to a * <code>Result</code> object. * * @param rs the <code>ResultSet</code> object * @param maxRows the maximum number of rows to be cached into the <code>Result</code> object. * * @return The <code>Result</code> object created from the <code>ResultSet</code>, * limited by <code>maxRows</code> */ public static Result toResult(ResultSet rs, int maxRows) { try { return new ResultImpl(rs, -1, maxRows); } catch (SQLException ex) { return null; } }