1 24 25 package com.mckoi.database; 26 27 36 37 public final class SimpleRowEnumeration implements RowEnumeration { 38 39 42 private int index = 0; 43 44 47 final int row_count_store; 48 49 52 public SimpleRowEnumeration(int row_count) { 53 row_count_store = row_count; 54 } 55 56 public final boolean hasMoreRows() { 57 return (index < row_count_store); 58 } 59 60 public final int nextRowIndex() { 61 ++index; 62 return index - 1; 63 } 64 65 } 66 67 | Popular Tags |