-// * The executed statement is
-// *
-// * @throws DataAccessException This exception is thrown if
-// *
-// * SELECT [fields] FROM [table]
-// * WHERE [primary key fields = primary key values]
+ * A successful refresh results in the following: + *
false+ * Refreshing can trigger any of the following actions: + *
ResultSet is available.SELECT statement, if this is an
+ * {@link UpdatableRecord}.
+ * This is the same as calling record.refresh(record.fields())
+ *
+ * @throws DataAccessException This exception is thrown if
+ *
- * This is in fact the same as calling
- * refresh(getFields().toArray(new Field[0]))
- *
- * The executed statement is
- *
- * @throws DataAccessException This exception is thrown if
- *
- * SELECT * FROM [table]
- * WHERE [primary key fields = primary key values]
- * The executed statement is
- *
- * @throws DataAccessException This exception is thrown if
- *
- * SELECT [fields] FROM [table]
- * WHERE [primary key fields = primary key values]
+ * Subclasses may override this + */ + @Override + public void refresh(Field>... f) throws DataAccessException { if (rs != null) { try { // [#2265] TODO: This code is prototypical. fetchLazy() is not // the best way to fetch a record rs.absolute(rsIndex - 1); - Record record = create().fetchLazy(rs).fetchOne(); + AbstractRecord record = (AbstractRecord) create().fetchLazy(rs).fetchOne(); - for (int i = 0; i < record.size(); i++) { - setValue(i, new Value