Example usage for java.sql CallableStatement setInt

List of usage examples for java.sql CallableStatement setInt

Introduction

In this page you can find the example usage for java.sql CallableStatement setInt.

Prototype

void setInt(String parameterName, int x) throws SQLException;

Source Link

Document

Sets the designated parameter to the given Java int value.

Usage

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccOracle.CFAccOracleMemoTagTable.java

public void deleteMemoTag(CFAccAuthorization Authorization, CFAccMemoTagBuff Buff) {
    final String S_ProcName = "deleteMemoTag";
    Connection cnx = schema.getCnx();
    CallableStatement stmtDeleteByPKey = null;
    try {// www  .  j a v  a2 s  .  co  m
        long TenantId = Buff.getRequiredTenantId();
        long MemoId = Buff.getRequiredMemoId();
        long TagId = Buff.getRequiredTagId();
        stmtDeleteByPKey = cnx
                .prepareCall("begin " + schema.getLowerSchemaDbName() + ".dl_ctcmemo_tag( ?, ?, ?, ?, ?" + ", "
                        + "?" + ", " + "?" + ", " + "?" + ", " + "?" + " ); 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++, TenantId);
        stmtDeleteByPKey.setLong(argIdx++, MemoId);
        stmtDeleteByPKey.setLong(argIdx++, TagId);
        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.cfacc.v2_0.CFAccOracle.CFAccOraclePhoneTagTable.java

public void deletePhoneTag(CFAccAuthorization Authorization, CFAccPhoneTagBuff Buff) {
    final String S_ProcName = "deletePhoneTag";
    Connection cnx = schema.getCnx();
    CallableStatement stmtDeleteByPKey = null;
    try {/* www .  j  a  v  a2  s.c om*/
        long TenantId = Buff.getRequiredTenantId();
        long PhoneId = Buff.getRequiredPhoneId();
        long TagId = Buff.getRequiredTagId();
        stmtDeleteByPKey = cnx
                .prepareCall("begin " + schema.getLowerSchemaDbName() + ".dl_ctcph_tag( ?, ?, ?, ?, ?" + ", "
                        + "?" + ", " + "?" + ", " + "?" + ", " + "?" + " ); 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++, TenantId);
        stmtDeleteByPKey.setLong(argIdx++, PhoneId);
        stmtDeleteByPKey.setLong(argIdx++, TagId);
        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.cfacc.v2_0.CFAccOracle.CFAccOracleSecFormTable.java

public CFAccSecFormBuff readBuffByUJEEServletIdx(CFAccAuthorization Authorization, long ClusterId, int SecAppId,
        String JEEServletMapName) {
    final String S_ProcName = "readBuffByUJEEServletIdx";
    ResultSet resultSet = null;//  w  ww.  ja  v a2  s  . c  o  m
    Connection cnx = schema.getCnx();
    CallableStatement stmtReadBuffByUJEEServletIdx = null;
    try {
        stmtReadBuffByUJEEServletIdx = cnx.prepareCall(
                "begin " + schema.getLowerSchemaDbName() + ".rd_secformbyujeeservletidx( ?, ?, ?, ?, ?, ?"
                        + ", " + "?" + ", " + "?" + ", " + "?" + " ); end;");
        int argIdx = 1;
        stmtReadBuffByUJEEServletIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR);
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++,
                (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUJEEServletIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtReadBuffByUJEEServletIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++,
                (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++,
                (Authorization == null) ? 0 : Authorization.getSecTenantId());
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++, ClusterId);
        stmtReadBuffByUJEEServletIdx.setInt(argIdx++, SecAppId);
        stmtReadBuffByUJEEServletIdx.setString(argIdx++, JEEServletMapName);
        stmtReadBuffByUJEEServletIdx.execute();
        resultSet = (ResultSet) stmtReadBuffByUJEEServletIdx.getObject(1);
        if (resultSet == null) {
            return (null);
        }
        try {
            if (resultSet.next()) {
                CFAccSecFormBuff buff = unpackSecFormResultSetToBuff(resultSet);
                if (resultSet.next()) {
                    resultSet.last();
                    throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                            "Did not expect multi-record response, " + resultSet.getRow() + " rows selected");
                }
                return (buff);
            } else {
                return (null);
            }
        } catch (SQLException e) {
            return (null);
        }
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
        if (stmtReadBuffByUJEEServletIdx != null) {
            try {
                stmtReadBuffByUJEEServletIdx.close();
            } catch (SQLException e) {
            }
            stmtReadBuffByUJEEServletIdx = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstOracle.CFAstOracleSecFormTable.java

public CFAstSecFormBuff readBuffByUJEEServletIdx(CFAstAuthorization Authorization, long ClusterId, int SecAppId,
        String JEEServletMapName) {
    final String S_ProcName = "readBuffByUJEEServletIdx";
    ResultSet resultSet = null;/*www  .j av a2  s . co  m*/
    Connection cnx = schema.getCnx();
    CallableStatement stmtReadBuffByUJEEServletIdx = null;
    try {
        stmtReadBuffByUJEEServletIdx = cnx.prepareCall(
                "begin " + schema.getLowerSchemaDbName() + ".rd_secformbyujeeservletidx( ?, ?, ?, ?, ?, ?"
                        + ", " + "?" + ", " + "?" + ", " + "?" + " ); end;");
        int argIdx = 1;
        stmtReadBuffByUJEEServletIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR);
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++,
                (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUJEEServletIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtReadBuffByUJEEServletIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++,
                (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++,
                (Authorization == null) ? 0 : Authorization.getSecTenantId());
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++, ClusterId);
        stmtReadBuffByUJEEServletIdx.setInt(argIdx++, SecAppId);
        stmtReadBuffByUJEEServletIdx.setString(argIdx++, JEEServletMapName);
        stmtReadBuffByUJEEServletIdx.execute();
        resultSet = (ResultSet) stmtReadBuffByUJEEServletIdx.getObject(1);
        if (resultSet == null) {
            return (null);
        }
        try {
            if (resultSet.next()) {
                CFAstSecFormBuff buff = unpackSecFormResultSetToBuff(resultSet);
                if (resultSet.next()) {
                    resultSet.last();
                    throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                            "Did not expect multi-record response, " + resultSet.getRow() + " rows selected");
                }
                return (buff);
            } else {
                return (null);
            }
        } catch (SQLException e) {
            return (null);
        }
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
        if (stmtReadBuffByUJEEServletIdx != null) {
            try {
                stmtReadBuffByUJEEServletIdx.close();
            } catch (SQLException e) {
            }
            stmtReadBuffByUJEEServletIdx = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_1.CFAstOracle.CFAstOracleSecFormTable.java

public CFAstSecFormBuff readBuffByUJEEServletIdx(CFAstAuthorization Authorization, long ClusterId, int SecAppId,
        String JEEServletMapName) {
    final String S_ProcName = "readBuffByUJEEServletIdx";
    ResultSet resultSet = null;// w  w w .  j  a va2 s .c  om
    Connection cnx = schema.getCnx();
    CallableStatement stmtReadBuffByUJEEServletIdx = null;
    try {
        stmtReadBuffByUJEEServletIdx = cnx.prepareCall(
                "begin " + schema.getLowerDbSchemaName() + ".rd_secformbyujeeservletidx( ?, ?, ?, ?, ?, ?"
                        + ", " + "?" + ", " + "?" + ", " + "?" + " ); end;");
        int argIdx = 1;
        stmtReadBuffByUJEEServletIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR);
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++,
                (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUJEEServletIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtReadBuffByUJEEServletIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++,
                (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++,
                (Authorization == null) ? 0 : Authorization.getSecTenantId());
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++, ClusterId);
        stmtReadBuffByUJEEServletIdx.setInt(argIdx++, SecAppId);
        stmtReadBuffByUJEEServletIdx.setString(argIdx++, JEEServletMapName);
        stmtReadBuffByUJEEServletIdx.execute();
        resultSet = (ResultSet) stmtReadBuffByUJEEServletIdx.getObject(1);
        if (resultSet == null) {
            return (null);
        }
        try {
            if (resultSet.next()) {
                CFAstSecFormBuff buff = unpackSecFormResultSetToBuff(resultSet);
                if (resultSet.next()) {
                    resultSet.last();
                    throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                            "Did not expect multi-record response, " + resultSet.getRow() + " rows selected");
                }
                return (buff);
            } else {
                return (null);
            }
        } catch (SQLException e) {
            return (null);
        }
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
        if (stmtReadBuffByUJEEServletIdx != null) {
            try {
                stmtReadBuffByUJEEServletIdx.close();
            } catch (SQLException e) {
            }
            stmtReadBuffByUJEEServletIdx = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_1.CFFswOracle.CFFswOracleSecFormTable.java

public CFFswSecFormBuff readBuffByUJEEServletIdx(CFFswAuthorization Authorization, long ClusterId, int SecAppId,
        String JEEServletMapName) {
    final String S_ProcName = "readBuffByUJEEServletIdx";
    ResultSet resultSet = null;//from www.  j  av a2s. c om
    Connection cnx = schema.getCnx();
    CallableStatement stmtReadBuffByUJEEServletIdx = null;
    try {
        stmtReadBuffByUJEEServletIdx = cnx.prepareCall(
                "begin " + schema.getLowerDbSchemaName() + ".rd_secformbyujeeservletidx( ?, ?, ?, ?, ?, ?"
                        + ", " + "?" + ", " + "?" + ", " + "?" + " ); end;");
        int argIdx = 1;
        stmtReadBuffByUJEEServletIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR);
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++,
                (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUJEEServletIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtReadBuffByUJEEServletIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++,
                (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++,
                (Authorization == null) ? 0 : Authorization.getSecTenantId());
        stmtReadBuffByUJEEServletIdx.setLong(argIdx++, ClusterId);
        stmtReadBuffByUJEEServletIdx.setInt(argIdx++, SecAppId);
        stmtReadBuffByUJEEServletIdx.setString(argIdx++, JEEServletMapName);
        stmtReadBuffByUJEEServletIdx.execute();
        resultSet = (ResultSet) stmtReadBuffByUJEEServletIdx.getObject(1);
        if (resultSet == null) {
            return (null);
        }
        try {
            if (resultSet.next()) {
                CFFswSecFormBuff buff = unpackSecFormResultSetToBuff(resultSet);
                if (resultSet.next()) {
                    resultSet.last();
                    throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                            "Did not expect multi-record response, " + resultSet.getRow() + " rows selected");
                }
                return (buff);
            } else {
                return (null);
            }
        } catch (SQLException e) {
            return (null);
        }
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
        if (stmtReadBuffByUJEEServletIdx != null) {
            try {
                stmtReadBuffByUJEEServletIdx.close();
            } catch (SQLException e) {
            }
            stmtReadBuffByUJEEServletIdx = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskOracle.CFAsteriskOracleSecGroupMemberTable.java

public void deleteSecGroupMember(CFSecurityAuthorization Authorization, CFSecuritySecGroupMemberBuff Buff) {
    final String S_ProcName = "deleteSecGroupMember";
    Connection cnx = schema.getCnx();
    CallableStatement stmtDeleteByPKey = null;
    try {/*w ww. j  a v a 2 s. co m*/
        long ClusterId = Buff.getRequiredClusterId();
        long SecGroupMemberId = Buff.getRequiredSecGroupMemberId();
        stmtDeleteByPKey = cnx.prepareCall("begin " + schema.getLowerDbSchemaName()
                + ".dl_secmemb( ?, ?, ?, ?, ?" + ", " + "?" + ", " + "?" + ", " + "?" + " ); 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++, SecGroupMemberId);
        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.CFAsteriskOracleTSecGroupMemberTable.java

public void deleteTSecGroupMember(CFSecurityAuthorization Authorization, CFSecurityTSecGroupMemberBuff Buff) {
    final String S_ProcName = "deleteTSecGroupMember";
    Connection cnx = schema.getCnx();
    CallableStatement stmtDeleteByPKey = null;
    try {/*from   w  w w .  jav a2 s . co  m*/
        long TenantId = Buff.getRequiredTenantId();
        long TSecGroupMemberId = Buff.getRequiredTSecGroupMemberId();
        stmtDeleteByPKey = cnx.prepareCall("begin " + schema.getLowerDbSchemaName()
                + ".dl_tsecmemb( ?, ?, ?, ?, ?" + ", " + "?" + ", " + "?" + ", " + "?" + " ); 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++, TenantId);
        stmtDeleteByPKey.setLong(argIdx++, TSecGroupMemberId);
        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.cfacc.v2_0.CFAccOracle.CFAccOracleContactTagTable.java

public void deleteContactTag(CFAccAuthorization Authorization, CFAccContactTagBuff Buff) {
    final String S_ProcName = "deleteContactTag";
    Connection cnx = schema.getCnx();
    CallableStatement stmtDeleteByPKey = null;
    try {//  w  w  w.  j a  va 2 s  . co  m
        long TenantId = Buff.getRequiredTenantId();
        long ContactId = Buff.getRequiredContactId();
        long TagId = Buff.getRequiredTagId();
        stmtDeleteByPKey = cnx
                .prepareCall("begin " + schema.getLowerSchemaDbName() + ".dl_ctc_tag( ?, ?, ?, ?, ?" + ", "
                        + "?" + ", " + "?" + ", " + "?" + ", " + "?" + " ); 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++, TenantId);
        stmtDeleteByPKey.setLong(argIdx++, ContactId);
        stmtDeleteByPKey.setLong(argIdx++, TagId);
        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.CFAsteriskOracleProjectBaseTable.java

public void deleteProjectBase(CFSecurityAuthorization Authorization, CFInternetProjectBaseBuff Buff) {
    final String S_ProcName = "deleteProjectBase";
    Connection cnx = schema.getCnx();
    CallableStatement stmtDeleteByPKey = null;
    try {/*from w w w . ja v  a  2  s .  com*/
        long TenantId = Buff.getRequiredTenantId();
        long Id = Buff.getRequiredId();
        stmtDeleteByPKey = cnx.prepareCall("begin " + schema.getLowerDbSchemaName()
                + ".dl_bprjdef( ?, ?, ?, ?, ?" + ", " + "?" + ", " + "?" + ", " + "?" + " ); 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++, TenantId);
        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;
        }
    }
}