List of usage examples for java.sql CallableStatement setInt
void setInt(String parameterName, int x) throws SQLException;
int
value. From source file:com.netspective.axiom.sql.StoredProcedureParameter.java
/** * Apply the IN/OUT parameters of the callable statement object * * @param vac the context in which the apply action is being performed * @param stmt the statement object//from ww w. ja v a 2 s . com */ public void apply(StoredProcedureParameters.ValueApplyContext vac, ConnectionContext cc, CallableStatement stmt) throws SQLException { int paramNum = vac.getNextParamNum(); int jdbcType = getSqlType().getJdbcType(); if (getType().getValueIndex() == Type.IN || getType().getValueIndex() == Type.IN_OUT) { String text = value.getTextValue(cc); switch (jdbcType) { case Types.VARCHAR: // user override value if it exists if (vac.hasOverrideValues() && vac.hasActiveParamOverrideValue()) text = (String) vac.getActiveParamOverrideValue(); if (allowNull && text == null) stmt.setNull(paramNum, Types.VARCHAR); else if (text != null) stmt.setObject(paramNum, text); else log.warn("Parameter '" + getName() + "' was not bound. Value = " + text); break; case Types.CHAR: if (vac.hasOverrideValues() && vac.hasActiveParamOverrideValue()) text = (String) vac.getActiveParamOverrideValue(); if (allowNull && text == null) stmt.setNull(paramNum, Types.CHAR); else if (text != null) stmt.setObject(paramNum, text.substring(0, 1)); else log.warn("Parameter '" + getName() + "' was not bound. Value = " + text); break; case Types.INTEGER: if (vac.hasOverrideValues() && vac.hasActiveParamOverrideValue()) text = vac.getActiveParamOverrideValue() != null ? vac.getActiveParamOverrideValue().toString() : null; if (allowNull && text == null) stmt.setNull(paramNum, Types.INTEGER); else if (text != null) stmt.setInt(paramNum, Integer.parseInt(text)); else log.warn("Parameter '" + getName() + "' was not bound. Value = " + text); break; case Types.DOUBLE: if (vac.hasOverrideValues() && vac.hasActiveParamOverrideValue()) text = vac.getActiveParamOverrideValue() != null ? vac.getActiveParamOverrideValue().toString() : null; if (allowNull && text == null) stmt.setNull(paramNum, Types.DOUBLE); else if (text != null) stmt.setDouble(paramNum, Double.parseDouble(text)); else log.warn("Parameter '" + getName() + "' was not bound. Value = " + text); break; case Types.ARRAY: // Arrays are quite tricky. Right now, this is supporting String arrays only. // TODO: Support integer and float arrays also String[] textValues = value.getTextValues(cc); if (vac.hasOverrideValues() && vac.hasActiveParamOverrideValue()) textValues = (String[]) vac.getActiveParamOverrideValue(); applyInArrayValue(cc, stmt, paramNum, textValues); break; default: log.warn("Unknown JDBC type for parameter '" + getName() + "' (index=" + paramNum + ") of stored procedure '" + parent.getProcedure() + "'."); break; } } if (getType().getValueIndex() == Type.OUT || getType().getValueIndex() == Type.IN_OUT) { String identifier = getSqlType().getIdentifier(); // result sets are returned differently for different vendors if (identifier.equals(QueryParameterType.RESULTSET_IDENTIFIER)) stmt.registerOutParameter(paramNum, getVendorSpecificResultSetType(cc)); else stmt.registerOutParameter(paramNum, jdbcType); } }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccOracle.CFAccOracleSecFormTable.java
public CFAccSecFormBuff[] readBuffBySecAppIdx(CFAccAuthorization Authorization, long ClusterId, int SecAppId) { final String S_ProcName = "readBuffBySecAppIdx"; ResultSet resultSet = null;//from www .j a v a2 s . c om Connection cnx = schema.getCnx(); CallableStatement stmtReadBuffBySecAppIdx = null; List<CFAccSecFormBuff> buffList = new LinkedList<CFAccSecFormBuff>(); try { stmtReadBuffBySecAppIdx = cnx.prepareCall("begin " + schema.getLowerSchemaDbName() + ".rd_secformbysecappidx( ?, ?, ?, ?, ?, ?" + ", " + "?" + ", " + "?" + " ); end;"); int argIdx = 1; stmtReadBuffBySecAppIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtReadBuffBySecAppIdx.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecUserId().toString()); stmtReadBuffBySecAppIdx.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecSessionId().toString()); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId()); stmtReadBuffBySecAppIdx.setLong(argIdx++, ClusterId); stmtReadBuffBySecAppIdx.setInt(argIdx++, SecAppId); stmtReadBuffBySecAppIdx.execute(); resultSet = (ResultSet) stmtReadBuffBySecAppIdx.getObject(1); if (resultSet != null) { try { while (resultSet.next()) { CFAccSecFormBuff buff = unpackSecFormResultSetToBuff(resultSet); buffList.add(buff); } try { resultSet.close(); } catch (SQLException e) { } resultSet = null; } catch (SQLException e) { } } int idx = 0; CFAccSecFormBuff[] retBuff = new CFAccSecFormBuff[buffList.size()]; Iterator<CFAccSecFormBuff> iter = buffList.iterator(); while (iter.hasNext()) { retBuff[idx++] = iter.next(); } return (retBuff); } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e); } finally { if (resultSet != null) { try { resultSet.close(); } catch (SQLException e) { } resultSet = null; } if (stmtReadBuffBySecAppIdx != null) { try { stmtReadBuffBySecAppIdx.close(); } catch (SQLException e) { } stmtReadBuffBySecAppIdx = null; } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstOracle.CFAstOracleClusterTable.java
public void deleteCluster(CFAstAuthorization Authorization, CFAstClusterBuff Buff) { final String S_ProcName = "deleteCluster"; Connection cnx = schema.getCnx(); CallableStatement stmtDeleteByPKey = null; try {//from w w w.jav a2 s . co m long Id = Buff.getRequiredId(); stmtDeleteByPKey = cnx.prepareCall("begin " + schema.getLowerSchemaDbName() + ".dl_clus( ?, ?, ?, ?, ?" + ", " + "?" + ", " + "?" + " ); end;"); int argIdx = 1; stmtDeleteByPKey.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtDeleteByPKey.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecUserId().toString()); stmtDeleteByPKey.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecSessionId().toString()); stmtDeleteByPKey.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtDeleteByPKey.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId()); stmtDeleteByPKey.setLong(argIdx++, Id); stmtDeleteByPKey.setInt(argIdx++, Buff.getRequiredRevision()); ; stmtDeleteByPKey.execute(); } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e); } finally { if (stmtDeleteByPKey != null) { try { stmtDeleteByPKey.close(); } catch (SQLException e) { } stmtDeleteByPKey = null; } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstOracle.CFAstOracleSecFormTable.java
public CFAstSecFormBuff[] readBuffBySecAppIdx(CFAstAuthorization Authorization, long ClusterId, int SecAppId) { final String S_ProcName = "readBuffBySecAppIdx"; ResultSet resultSet = null;//from www . j av a2 s .c o m Connection cnx = schema.getCnx(); CallableStatement stmtReadBuffBySecAppIdx = null; List<CFAstSecFormBuff> buffList = new LinkedList<CFAstSecFormBuff>(); try { stmtReadBuffBySecAppIdx = cnx.prepareCall("begin " + schema.getLowerSchemaDbName() + ".rd_secformbysecappidx( ?, ?, ?, ?, ?, ?" + ", " + "?" + ", " + "?" + " ); end;"); int argIdx = 1; stmtReadBuffBySecAppIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtReadBuffBySecAppIdx.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecUserId().toString()); stmtReadBuffBySecAppIdx.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecSessionId().toString()); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId()); stmtReadBuffBySecAppIdx.setLong(argIdx++, ClusterId); stmtReadBuffBySecAppIdx.setInt(argIdx++, SecAppId); stmtReadBuffBySecAppIdx.execute(); resultSet = (ResultSet) stmtReadBuffBySecAppIdx.getObject(1); if (resultSet != null) { try { while (resultSet.next()) { CFAstSecFormBuff buff = unpackSecFormResultSetToBuff(resultSet); buffList.add(buff); } try { resultSet.close(); } catch (SQLException e) { } resultSet = null; } catch (SQLException e) { } } int idx = 0; CFAstSecFormBuff[] retBuff = new CFAstSecFormBuff[buffList.size()]; Iterator<CFAstSecFormBuff> iter = buffList.iterator(); while (iter.hasNext()) { retBuff[idx++] = iter.next(); } return (retBuff); } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e); } finally { if (resultSet != null) { try { resultSet.close(); } catch (SQLException e) { } resultSet = null; } if (stmtReadBuffBySecAppIdx != null) { try { stmtReadBuffBySecAppIdx.close(); } catch (SQLException e) { } stmtReadBuffBySecAppIdx = null; } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_1.CFAstOracle.CFAstOracleSecFormTable.java
public CFAstSecFormBuff[] readBuffBySecAppIdx(CFAstAuthorization Authorization, long ClusterId, int SecAppId) { final String S_ProcName = "readBuffBySecAppIdx"; ResultSet resultSet = null;//from w ww . jav a 2 s . co m Connection cnx = schema.getCnx(); CallableStatement stmtReadBuffBySecAppIdx = null; List<CFAstSecFormBuff> buffList = new LinkedList<CFAstSecFormBuff>(); try { stmtReadBuffBySecAppIdx = cnx.prepareCall("begin " + schema.getLowerDbSchemaName() + ".rd_secformbysecappidx( ?, ?, ?, ?, ?, ?" + ", " + "?" + ", " + "?" + " ); end;"); int argIdx = 1; stmtReadBuffBySecAppIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtReadBuffBySecAppIdx.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecUserId().toString()); stmtReadBuffBySecAppIdx.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecSessionId().toString()); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId()); stmtReadBuffBySecAppIdx.setLong(argIdx++, ClusterId); stmtReadBuffBySecAppIdx.setInt(argIdx++, SecAppId); stmtReadBuffBySecAppIdx.execute(); resultSet = (ResultSet) stmtReadBuffBySecAppIdx.getObject(1); if (resultSet != null) { try { while (resultSet.next()) { CFAstSecFormBuff buff = unpackSecFormResultSetToBuff(resultSet); buffList.add(buff); } try { resultSet.close(); } catch (SQLException e) { } resultSet = null; } catch (SQLException e) { } } int idx = 0; CFAstSecFormBuff[] retBuff = new CFAstSecFormBuff[buffList.size()]; Iterator<CFAstSecFormBuff> iter = buffList.iterator(); while (iter.hasNext()) { retBuff[idx++] = iter.next(); } return (retBuff); } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e); } finally { if (resultSet != null) { try { resultSet.close(); } catch (SQLException e) { } resultSet = null; } if (stmtReadBuffBySecAppIdx != null) { try { stmtReadBuffBySecAppIdx.close(); } catch (SQLException e) { } stmtReadBuffBySecAppIdx = null; } } }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_1.CFFswOracle.CFFswOracleSecFormTable.java
public CFFswSecFormBuff[] readBuffBySecAppIdx(CFFswAuthorization Authorization, long ClusterId, int SecAppId) { final String S_ProcName = "readBuffBySecAppIdx"; ResultSet resultSet = null;//from w w w . j a v a 2s .c om Connection cnx = schema.getCnx(); CallableStatement stmtReadBuffBySecAppIdx = null; List<CFFswSecFormBuff> buffList = new LinkedList<CFFswSecFormBuff>(); try { stmtReadBuffBySecAppIdx = cnx.prepareCall("begin " + schema.getLowerDbSchemaName() + ".rd_secformbysecappidx( ?, ?, ?, ?, ?, ?" + ", " + "?" + ", " + "?" + " ); end;"); int argIdx = 1; stmtReadBuffBySecAppIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtReadBuffBySecAppIdx.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecUserId().toString()); stmtReadBuffBySecAppIdx.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecSessionId().toString()); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId()); stmtReadBuffBySecAppIdx.setLong(argIdx++, ClusterId); stmtReadBuffBySecAppIdx.setInt(argIdx++, SecAppId); stmtReadBuffBySecAppIdx.execute(); resultSet = (ResultSet) stmtReadBuffBySecAppIdx.getObject(1); if (resultSet != null) { try { while (resultSet.next()) { CFFswSecFormBuff buff = unpackSecFormResultSetToBuff(resultSet); buffList.add(buff); } try { resultSet.close(); } catch (SQLException e) { } resultSet = null; } catch (SQLException e) { } } int idx = 0; CFFswSecFormBuff[] retBuff = new CFFswSecFormBuff[buffList.size()]; Iterator<CFFswSecFormBuff> iter = buffList.iterator(); while (iter.hasNext()) { retBuff[idx++] = iter.next(); } return (retBuff); } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e); } finally { if (resultSet != null) { try { resultSet.close(); } catch (SQLException e) { } resultSet = null; } if (stmtReadBuffBySecAppIdx != null) { try { stmtReadBuffBySecAppIdx.close(); } catch (SQLException e) { } stmtReadBuffBySecAppIdx = null; } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskOracle.CFAsteriskOracleSecFormTable.java
public CFSecuritySecFormBuff[] readBuffBySecAppIdx(CFSecurityAuthorization Authorization, long ClusterId, int SecAppId) { final String S_ProcName = "readBuffBySecAppIdx"; ResultSet resultSet = null;//from ww w . j a v a 2s. c o m Connection cnx = schema.getCnx(); CallableStatement stmtReadBuffBySecAppIdx = null; List<CFSecuritySecFormBuff> buffList = new LinkedList<CFSecuritySecFormBuff>(); try { stmtReadBuffBySecAppIdx = cnx.prepareCall("begin " + schema.getLowerDbSchemaName() + ".rd_secformbysecappidx( ?, ?, ?, ?, ?, ?" + ", " + "?" + ", " + "?" + " ); end;"); int argIdx = 1; stmtReadBuffBySecAppIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtReadBuffBySecAppIdx.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecUserId().toString()); stmtReadBuffBySecAppIdx.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecSessionId().toString()); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtReadBuffBySecAppIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId()); stmtReadBuffBySecAppIdx.setLong(argIdx++, ClusterId); stmtReadBuffBySecAppIdx.setInt(argIdx++, SecAppId); stmtReadBuffBySecAppIdx.execute(); resultSet = (ResultSet) stmtReadBuffBySecAppIdx.getObject(1); if (resultSet != null) { try { while (resultSet.next()) { CFSecuritySecFormBuff buff = unpackSecFormResultSetToBuff(resultSet); buffList.add(buff); } try { resultSet.close(); } catch (SQLException e) { } resultSet = null; } catch (SQLException e) { } } int idx = 0; CFSecuritySecFormBuff[] retBuff = new CFSecuritySecFormBuff[buffList.size()]; Iterator<CFSecuritySecFormBuff> iter = buffList.iterator(); while (iter.hasNext()) { retBuff[idx++] = iter.next(); } return (retBuff); } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e); } finally { if (resultSet != null) { try { resultSet.close(); } catch (SQLException e) { } resultSet = null; } if (stmtReadBuffBySecAppIdx != null) { try { stmtReadBuffBySecAppIdx.close(); } catch (SQLException e) { } stmtReadBuffBySecAppIdx = null; } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskOracle.CFAsteriskOracleSecUserTable.java
public void deleteSecUser(CFSecurityAuthorization Authorization, CFSecuritySecUserBuff Buff) { final String S_ProcName = "deleteSecUser"; Connection cnx = schema.getCnx(); CallableStatement stmtDeleteByPKey = null; try {/*from ww w .ja v a 2 s .c om*/ UUID SecUserId = Buff.getRequiredSecUserId(); stmtDeleteByPKey = cnx.prepareCall("begin " + schema.getLowerDbSchemaName() + ".dl_secuser( ?, ?, ?, ?, ?" + ", " + "?" + ", " + "?" + " ); end;"); int argIdx = 1; stmtDeleteByPKey.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtDeleteByPKey.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecUserId().toString()); stmtDeleteByPKey.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecSessionId().toString()); stmtDeleteByPKey.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtDeleteByPKey.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId()); stmtDeleteByPKey.setString(argIdx++, SecUserId.toString()); stmtDeleteByPKey.setInt(argIdx++, Buff.getRequiredRevision()); ; stmtDeleteByPKey.execute(); } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e); } finally { if (stmtDeleteByPKey != null) { try { stmtDeleteByPKey.close(); } catch (SQLException e) { } stmtDeleteByPKey = null; } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_1.CFAstOracle.CFAstOracleSipConfTable.java
public void deleteSipConf(CFAstAuthorization Authorization, CFAstSipConfBuff Buff) { final String S_ProcName = "deleteSipConf"; Connection cnx = schema.getCnx(); CallableStatement stmtDeleteByPKey = null; try {// w ww. ja v a2 s.com long ClusterId = Buff.getRequiredClusterId(); long Id = Buff.getRequiredId(); stmtDeleteByPKey = cnx.prepareCall("begin " + schema.getLowerDbSchemaName() + ".dl_sip_conf( ?, ?, ?, ?, ?" + ", " + "?" + ", " + "?" + ", " + "?" + " ); end;"); int argIdx = 1; stmtDeleteByPKey.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtDeleteByPKey.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecUserId().toString()); stmtDeleteByPKey.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecSessionId().toString()); stmtDeleteByPKey.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtDeleteByPKey.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId()); stmtDeleteByPKey.setLong(argIdx++, ClusterId); stmtDeleteByPKey.setLong(argIdx++, Id); stmtDeleteByPKey.setInt(argIdx++, Buff.getRequiredRevision()); ; stmtDeleteByPKey.execute(); } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e); } finally { if (stmtDeleteByPKey != null) { try { stmtDeleteByPKey.close(); } catch (SQLException e) { } stmtDeleteByPKey = null; } } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskOracle.CFAsteriskOracleSipConfTable.java
public void deleteSipConf(CFSecurityAuthorization Authorization, CFAsteriskSipConfBuff Buff) { final String S_ProcName = "deleteSipConf"; Connection cnx = schema.getCnx(); CallableStatement stmtDeleteByPKey = null; try {//from w w w . ja va 2s.c o m long ClusterId = Buff.getRequiredClusterId(); long Id = Buff.getRequiredId(); stmtDeleteByPKey = cnx.prepareCall("begin " + schema.getLowerDbSchemaName() + ".dl_sip_conf( ?, ?, ?, ?, ?" + ", " + "?" + ", " + "?" + ", " + "?" + " ); end;"); int argIdx = 1; stmtDeleteByPKey.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtDeleteByPKey.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecUserId().toString()); stmtDeleteByPKey.setString(argIdx++, (Authorization == null) ? "" : Authorization.getSecSessionId().toString()); stmtDeleteByPKey.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId()); stmtDeleteByPKey.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId()); stmtDeleteByPKey.setLong(argIdx++, ClusterId); stmtDeleteByPKey.setLong(argIdx++, Id); stmtDeleteByPKey.setInt(argIdx++, Buff.getRequiredRevision()); ; stmtDeleteByPKey.execute(); } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e); } finally { if (stmtDeleteByPKey != null) { try { stmtDeleteByPKey.close(); } catch (SQLException e) { } stmtDeleteByPKey = null; } } }