]> git.mxchange.org Git - jcore.git/blobdiff - src/org/mxchange/jcore/database/result/Result.java
Sorted members
[jcore.git] / src / org / mxchange / jcore / database / result / Result.java
index 32b00dd4540db1aac431dc7db8d7fb93742a620b..4c8217ba7ac1c12355f450fa368bbadd3c5ee787 100644 (file)
@@ -16,6 +16,7 @@
  */
 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;
@@ -27,4 +28,32 @@ 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 ();
 }