*/
package org.mxchange.jcore.database.result;
+import java.sql.SQLWarning;
import java.util.Iterator;
import org.mxchange.jcore.FrameworkInterface;
import org.mxchange.jcore.database.storage.Storeable;
* @param <T> Anything that is storeable
*/
public interface Result<T extends Storeable> extends FrameworkInterface, Iterator<T>, Iterable<T> {
+
+ /**
+ * Given Storeable instance as a query result.
+ *
+ * @param storeable An instance of a Storeable class
+ */
+ public void add (final Storeable storeable);
+
+ /**
+ * Setter for warnings
+ *
+ * @param warnings SQLQarning from ResultSet instance
+ */
+ public void setWarnings (final SQLWarning warnings);
+
+ /**
+ * Getter for warnings
+ *
+ * @return SQLQarning from ResultSet instance
+ */
+ public SQLWarning getWarnings ();
+
+ /**
+ * Returns size of result
+ *
+ * @return Size of result
+ */
+ public int size ();
}