public CFDbTestNumberDefBuff firstNumberDefCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = 1;
   CFDbTestNumberDefBuff rec = null;
   Cursor.reset();
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextNumberDefCursor(Cursor);
   }
   return (rec);
 }
 public CFSecurityTSecGroupBuff firstTSecGroupCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = 1;
   CFSecurityTSecGroupBuff buff = null;
   Cursor.reset();
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextTSecGroupCursor(Cursor);
   }
   return (buff);
 }
 public CFCrmContactTagBuff firstContactTagCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = 1;
   CFCrmContactTagBuff buff = null;
   Cursor.reset();
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextContactTagCursor(Cursor);
   }
   return (buff);
 }
 public CFSecurityISOCountryBuff firstISOCountryCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = 1;
   CFSecurityISOCountryBuff buff = null;
   Cursor.reset();
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextISOCountryCursor(Cursor);
   }
   return (buff);
 }
 public CFSecuritySecGroupFormBuff firstSecGroupFormCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = 1;
   CFSecuritySecGroupFormBuff rec = null;
   Cursor.reset();
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextSecGroupFormCursor(Cursor);
   }
   return (rec);
 }
 public CFSecurityHostNodeBuff firstHostNodeCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = 1;
   CFSecurityHostNodeBuff rec = null;
   Cursor.reset();
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextHostNodeCursor(Cursor);
   }
   return (rec);
 }
 public CFDbTestReqMinMaxValueBuff firstReqMinMaxValueCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = 1;
   CFDbTestReqMinMaxValueBuff rec = null;
   Cursor.reset();
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextReqMinMaxValueCursor(Cursor);
   }
   return (rec);
 }
 public CFSecuritySecFormBuff firstSecFormCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = 1;
   CFSecuritySecFormBuff buff = null;
   Cursor.reset();
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextSecFormCursor(Cursor);
   }
   return (buff);
 }
 public CFSecurityAuditActionBuff firstAuditActionCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = 1;
   CFSecurityAuditActionBuff buff = null;
   Cursor.reset();
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextAuditActionCursor(Cursor);
   }
   return (buff);
 }
 public CFDbTestReqMinMaxValueBuff prevReqMinMaxValueCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = (Cursor.getRowIdx() > 1) ? Cursor.getRowIdx() - 1 : 1;
   CFDbTestReqMinMaxValueBuff rec = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextReqMinMaxValueCursor(Cursor);
   }
   return (rec);
 }
 public CFSecurityAuditActionBuff nthAuditActionCursor(CFSecurityCursor Cursor, int Idx) {
   int targetRowIdx = Idx;
   CFSecurityAuditActionBuff buff = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextAuditActionCursor(Cursor);
   }
   return (buff);
 }
 public CFSecuritySecGroupFormBuff nthSecGroupFormCursor(CFSecurityCursor Cursor, int Idx) {
   int targetRowIdx = Idx;
   CFSecuritySecGroupFormBuff rec = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextSecGroupFormCursor(Cursor);
   }
   return (rec);
 }
 public CFSecuritySecDeviceBuff prevSecDeviceCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = (Cursor.getRowIdx() > 1) ? Cursor.getRowIdx() - 1 : 1;
   CFSecuritySecDeviceBuff buff = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextSecDeviceCursor(Cursor);
   }
   return (buff);
 }
 public CFSecurityTSecGroupBuff prevTSecGroupCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = (Cursor.getRowIdx() > 1) ? Cursor.getRowIdx() - 1 : 1;
   CFSecurityTSecGroupBuff buff = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextTSecGroupCursor(Cursor);
   }
   return (buff);
 }
 public CFDbTestNumberDefBuff prevNumberDefCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = (Cursor.getRowIdx() > 1) ? Cursor.getRowIdx() - 1 : 1;
   CFDbTestNumberDefBuff rec = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextNumberDefCursor(Cursor);
   }
   return (rec);
 }
 public CFSecurityHostNodeBuff nthHostNodeCursor(CFSecurityCursor Cursor, int Idx) {
   int targetRowIdx = Idx;
   CFSecurityHostNodeBuff rec = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextHostNodeCursor(Cursor);
   }
   return (rec);
 }
 public CFSecurityHostNodeBuff prevHostNodeCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = (Cursor.getRowIdx() > 1) ? Cursor.getRowIdx() - 1 : 1;
   CFSecurityHostNodeBuff rec = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextHostNodeCursor(Cursor);
   }
   return (rec);
 }
 public CFSecuritySecDeviceBuff nthSecDeviceCursor(CFSecurityCursor Cursor, int Idx) {
   int targetRowIdx = Idx;
   CFSecuritySecDeviceBuff buff = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextSecDeviceCursor(Cursor);
   }
   return (buff);
 }
 public CFDbTestReqMinMaxValueBuff nthReqMinMaxValueCursor(CFSecurityCursor Cursor, int Idx) {
   int targetRowIdx = Idx;
   CFDbTestReqMinMaxValueBuff rec = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextReqMinMaxValueCursor(Cursor);
   }
   return (rec);
 }
 public CFCrmContactTagBuff prevContactTagCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = (Cursor.getRowIdx() > 1) ? Cursor.getRowIdx() - 1 : 1;
   CFCrmContactTagBuff buff = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextContactTagCursor(Cursor);
   }
   return (buff);
 }
 public CFSecurityTSecGroupBuff nthTSecGroupCursor(CFSecurityCursor Cursor, int Idx) {
   int targetRowIdx = Idx;
   CFSecurityTSecGroupBuff buff = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextTSecGroupCursor(Cursor);
   }
   return (buff);
 }
 public CFCrmContactTagBuff nthContactTagCursor(CFSecurityCursor Cursor, int Idx) {
   int targetRowIdx = Idx;
   CFCrmContactTagBuff buff = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextContactTagCursor(Cursor);
   }
   return (buff);
 }
 public CFDbTestNumberDefBuff nthNumberDefCursor(CFSecurityCursor Cursor, int Idx) {
   int targetRowIdx = Idx;
   CFDbTestNumberDefBuff rec = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextNumberDefCursor(Cursor);
   }
   return (rec);
 }
 public CFSecuritySecGroupFormBuff prevSecGroupFormCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = (Cursor.getRowIdx() > 1) ? Cursor.getRowIdx() - 1 : 1;
   CFSecuritySecGroupFormBuff rec = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     rec = nextSecGroupFormCursor(Cursor);
   }
   return (rec);
 }
 public CFSecurityISOCountryBuff nthISOCountryCursor(CFSecurityCursor Cursor, int Idx) {
   int targetRowIdx = Idx;
   CFSecurityISOCountryBuff buff = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextISOCountryCursor(Cursor);
   }
   return (buff);
 }
 public CFSecurityAuditActionBuff prevAuditActionCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = (Cursor.getRowIdx() > 1) ? Cursor.getRowIdx() - 1 : 1;
   CFSecurityAuditActionBuff buff = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextAuditActionCursor(Cursor);
   }
   return (buff);
 }
 public CFSecurityISOCountryBuff prevISOCountryCursor(CFSecurityCursor Cursor) {
   int targetRowIdx = (Cursor.getRowIdx() > 1) ? Cursor.getRowIdx() - 1 : 1;
   CFSecurityISOCountryBuff buff = null;
   if (Cursor.getRowIdx() >= targetRowIdx) {
     Cursor.reset();
   }
   while (Cursor.getRowIdx() < targetRowIdx) {
     buff = nextISOCountryCursor(Cursor);
   }
   return (buff);
 }
 public void closeSecGroupCursor(CFSecurityCursor Cursor) {
   try {
     Cursor.getResultSet().close();
   } catch (SQLException e) {
     throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), "closeSecGroupCursor", e);
   }
 }
 public CFSecurityISOCountryBuff nextISOCountryCursor(CFSecurityCursor Cursor) {
   final String S_ProcName = "nextISOCountryCursor";
   try {
     ResultSet resultSet = Cursor.getResultSet();
     if (!resultSet.next()) {
       throw CFLib.getDefaultExceptionFactory()
           .newRuntimeException(getClass(), S_ProcName, "No more results available");
     }
     CFSecurityISOCountryBuff buff = unpackISOCountryResultSetToBuff(resultSet);
     return (buff);
   } catch (SQLException e) {
     throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
   }
 }