public CFSecurityISOCountryBuff firstISOCountryCursor(CFSecurityCursor Cursor) { int targetRowIdx = 1; CFSecurityISOCountryBuff buff = null; Cursor.reset(); while (Cursor.getRowIdx() < targetRowIdx) { buff = nextISOCountryCursor(Cursor); } return (buff); }
public CFSecuritySecGroupBuff firstSecGroupCursor(CFSecurityCursor Cursor) { int targetRowIdx = 1; CFSecuritySecGroupBuff buff = null; Cursor.reset(); while (Cursor.getRowIdx() < targetRowIdx) { buff = nextSecGroupCursor(Cursor); } return (buff); }
public CFSecurityHostNodeBuff firstHostNodeCursor(CFSecurityCursor Cursor) { int targetRowIdx = 1; CFSecurityHostNodeBuff rec = null; Cursor.reset(); while (Cursor.getRowIdx() < targetRowIdx) { rec = nextHostNodeCursor(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 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 CFSecuritySecGroupBuff nthSecGroupCursor(CFSecurityCursor Cursor, int Idx) { int targetRowIdx = Idx; CFSecuritySecGroupBuff buff = null; if (Cursor.getRowIdx() >= targetRowIdx) { Cursor.reset(); } while (Cursor.getRowIdx() < targetRowIdx) { buff = nextSecGroupCursor(Cursor); } return (buff); }
public CFSecuritySecGroupBuff prevSecGroupCursor(CFSecurityCursor Cursor) { int targetRowIdx = (Cursor.getRowIdx() > 1) ? Cursor.getRowIdx() - 1 : 1; CFSecuritySecGroupBuff buff = null; if (Cursor.getRowIdx() >= targetRowIdx) { Cursor.reset(); } while (Cursor.getRowIdx() < targetRowIdx) { buff = nextSecGroupCursor(Cursor); } return (buff); }
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 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); } }
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); }