public CFAccFeeDetailBuff firstFeeDetailCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = 1;
   CFAccFeeDetailBuff buff = null;
   Cursor.reset();
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextFeeDetailCursor(Cursor);
   }
   return (buff);
 }
 public CFAccFeeBuff firstFeeCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = 1;
   CFAccFeeBuff rec = null;
   Cursor.reset();
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextFeeCursor(Cursor);
   }
   return (rec);
 }
 public CFAccFeeBuff prevFeeCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = (Cursor.getRowIdx() > 1) ? Cursor.getRowIdx() - 1 : 1;
   CFAccFeeBuff rec = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextFeeCursor(Cursor);
   }
   return (rec);
 }
 public CFAccFeeDetailBuff prevFeeDetailCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = (Cursor.getRowIdx() > 1) ? Cursor.getRowIdx() - 1 : 1;
   CFAccFeeDetailBuff buff = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextFeeDetailCursor(Cursor);
   }
   return (buff);
 }
 public CFAccFeeDetailBuff nthFeeDetailCursor(CFSecurityCursor Cursor, int Idx) {
   int targetRowIdx = Idx;
   CFAccFeeDetailBuff buff = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextFeeDetailCursor(Cursor);
   }
   return (buff);
 }
 public void closeFeeDetailCursor(CFSecurityCursor Cursor) {
   try {
     Cursor.getResultSet().close();
   } catch (SQLException e) {
     throw CFLib.getDefaultExceptionFactory()
         .newDbException(getClass(), "closeFeeDetailCursor", e);
   }
 }
 public CFAccFeeDetailBuff nextFeeDetailCursor(CFSecurityCursor Cursor) {
   final String S_ProcName = "nextFeeDetailCursor";
   try {
     ResultSet resultSet = Cursor.getResultSet();
     if (!resultSet.next()) {
       throw CFLib.getDefaultExceptionFactory()
           .newRuntimeException(getClass(), S_ProcName, "No more results available");
     }
     CFAccFeeDetailBuff buff = unpackFeeDetailResultSetToBuff(resultSet);
     return (buff);
   } catch (SQLException e) {
     throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
   }
 }
 public CFAccFeeBuff nthFeeCursor(CFSecurityCursor Cursor, int Idx) {
   int targetRowIdx = Idx;
   CFAccFeeBuff rec = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextFeeCursor(Cursor);
   }
   return (rec);
 }