Class JDBCKeyIterator<K>

  • All Implemented Interfaces:
    java.util.Iterator<K>

    public class JDBCKeyIterator<K>
    extends java.lang.Object
    implements java.util.Iterator<K>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private K currentKey  
      private java.lang.Class<?> keyClass  
      private java.sql.ResultSet rs  
    • Constructor Summary

      Constructors 
      Constructor Description
      JDBCKeyIterator​(java.sql.ResultSet rs, java.lang.Class<?> keyClass)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      K next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • rs

        private final java.sql.ResultSet rs
      • keyClass

        private final java.lang.Class<?> keyClass
      • currentKey

        private K currentKey
    • Constructor Detail

      • JDBCKeyIterator

        public JDBCKeyIterator​(java.sql.ResultSet rs,
                               java.lang.Class<?> keyClass)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<K>
      • next

        public K next()
        Specified by:
        next in interface java.util.Iterator<K>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<K>