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.CFAccOracleProjectBaseTable.java

public void deleteProjectBase(CFAccAuthorization Authorization, CFAccProjectBaseBuff Buff) {
    final String S_ProcName = "deleteProjectBase";
    Connection cnx = schema.getCnx();
    CallableStatement stmtDeleteByPKey = null;
    try {//  w  w  w . j  a va 2 s .co  m
        long TenantId = Buff.getRequiredTenantId();
        long Id = Buff.getRequiredId();
        stmtDeleteByPKey = cnx.prepareCall("begin " + schema.getLowerSchemaDbName()
                + ".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;
        }
    }
}

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

public void deleteProjectBase(CFAstAuthorization Authorization, CFAstProjectBaseBuff Buff) {
    final String S_ProcName = "deleteProjectBase";
    Connection cnx = schema.getCnx();
    CallableStatement stmtDeleteByPKey = null;
    try {//ww  w .j av a  2s  .c  o m
        long TenantId = Buff.getRequiredTenantId();
        long Id = Buff.getRequiredId();
        stmtDeleteByPKey = cnx.prepareCall("begin " + schema.getLowerSchemaDbName()
                + ".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;
        }
    }
}

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

public void deleteProjectBase(CFAstAuthorization Authorization, CFAstProjectBaseBuff Buff) {
    final String S_ProcName = "deleteProjectBase";
    Connection cnx = schema.getCnx();
    CallableStatement stmtDeleteByPKey = null;
    try {//from w w w. j  ava  2 s.co m
        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;
        }
    }
}

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

public void deleteProjectBase(CFFswAuthorization Authorization, CFFswProjectBaseBuff Buff) {
    final String S_ProcName = "deleteProjectBase";
    Connection cnx = schema.getCnx();
    CallableStatement stmtDeleteByPKey = null;
    try {//from  w  ww .jav a 2 s .  c  o m
        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;
        }
    }
}

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

public CFAccSecGroupMemberBuff readBuffByUUserIdx(CFAccAuthorization Authorization, long ClusterId,
        int SecGroupId, UUID SecUserId) {
    final String S_ProcName = "readBuffByUUserIdx";
    ResultSet resultSet = null;/*from w ww.j a v a  2s  . com*/
    Connection cnx = schema.getCnx();
    CallableStatement stmtReadBuffByUUserIdx = null;
    try {
        stmtReadBuffByUUserIdx = cnx.prepareCall(
                "begin " + schema.getLowerSchemaDbName() + ".rd_secmembbyuuseridx( ?, ?, ?, ?, ?, ?" + ", "
                        + "?" + ", " + "?" + ", " + "?" + " ); end;");
        int argIdx = 1;
        stmtReadBuffByUUserIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR);
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUUserIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtReadBuffByUUserIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        stmtReadBuffByUUserIdx.setLong(argIdx++, ClusterId);
        stmtReadBuffByUUserIdx.setInt(argIdx++, SecGroupId);
        stmtReadBuffByUUserIdx.setString(argIdx++, SecUserId.toString());
        stmtReadBuffByUUserIdx.execute();
        resultSet = (ResultSet) stmtReadBuffByUUserIdx.getObject(1);
        if (resultSet == null) {
            return (null);
        }
        try {
            if (resultSet.next()) {
                CFAccSecGroupMemberBuff buff = unpackSecGroupMemberResultSetToBuff(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 (stmtReadBuffByUUserIdx != null) {
            try {
                stmtReadBuffByUUserIdx.close();
            } catch (SQLException e) {
            }
            stmtReadBuffByUUserIdx = null;
        }
    }
}

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

public CFAccTSecGroupMemberBuff readBuffByUUserIdx(CFAccAuthorization Authorization, long TenantId,
        int TSecGroupId, UUID SecUserId) {
    final String S_ProcName = "readBuffByUUserIdx";
    ResultSet resultSet = null;//from w w  w.j  a v  a2 s. c  om
    Connection cnx = schema.getCnx();
    CallableStatement stmtReadBuffByUUserIdx = null;
    try {
        stmtReadBuffByUUserIdx = cnx.prepareCall(
                "begin " + schema.getLowerSchemaDbName() + ".rd_tsecmembbyuuseridx( ?, ?, ?, ?, ?, ?" + ", "
                        + "?" + ", " + "?" + ", " + "?" + " ); end;");
        int argIdx = 1;
        stmtReadBuffByUUserIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR);
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUUserIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtReadBuffByUUserIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        stmtReadBuffByUUserIdx.setLong(argIdx++, TenantId);
        stmtReadBuffByUUserIdx.setInt(argIdx++, TSecGroupId);
        stmtReadBuffByUUserIdx.setString(argIdx++, SecUserId.toString());
        stmtReadBuffByUUserIdx.execute();
        resultSet = (ResultSet) stmtReadBuffByUUserIdx.getObject(1);
        if (resultSet == null) {
            return (null);
        }
        try {
            if (resultSet.next()) {
                CFAccTSecGroupMemberBuff buff = unpackTSecGroupMemberResultSetToBuff(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 (stmtReadBuffByUUserIdx != null) {
            try {
                stmtReadBuffByUUserIdx.close();
            } catch (SQLException e) {
            }
            stmtReadBuffByUUserIdx = null;
        }
    }
}

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

public CFAstSecGroupMemberBuff readBuffByUUserIdx(CFAstAuthorization Authorization, long ClusterId,
        int SecGroupId, UUID SecUserId) {
    final String S_ProcName = "readBuffByUUserIdx";
    ResultSet resultSet = null;// w  ww  .  j ava  2  s .  c om
    Connection cnx = schema.getCnx();
    CallableStatement stmtReadBuffByUUserIdx = null;
    try {
        stmtReadBuffByUUserIdx = cnx.prepareCall(
                "begin " + schema.getLowerSchemaDbName() + ".rd_secmembbyuuseridx( ?, ?, ?, ?, ?, ?" + ", "
                        + "?" + ", " + "?" + ", " + "?" + " ); end;");
        int argIdx = 1;
        stmtReadBuffByUUserIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR);
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUUserIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtReadBuffByUUserIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        stmtReadBuffByUUserIdx.setLong(argIdx++, ClusterId);
        stmtReadBuffByUUserIdx.setInt(argIdx++, SecGroupId);
        stmtReadBuffByUUserIdx.setString(argIdx++, SecUserId.toString());
        stmtReadBuffByUUserIdx.execute();
        resultSet = (ResultSet) stmtReadBuffByUUserIdx.getObject(1);
        if (resultSet == null) {
            return (null);
        }
        try {
            if (resultSet.next()) {
                CFAstSecGroupMemberBuff buff = unpackSecGroupMemberResultSetToBuff(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 (stmtReadBuffByUUserIdx != null) {
            try {
                stmtReadBuffByUUserIdx.close();
            } catch (SQLException e) {
            }
            stmtReadBuffByUUserIdx = null;
        }
    }
}

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

public CFAstTSecGroupMemberBuff readBuffByUUserIdx(CFAstAuthorization Authorization, long TenantId,
        int TSecGroupId, UUID SecUserId) {
    final String S_ProcName = "readBuffByUUserIdx";
    ResultSet resultSet = null;//from   w  w  w  .  j  a  v  a2s.  c om
    Connection cnx = schema.getCnx();
    CallableStatement stmtReadBuffByUUserIdx = null;
    try {
        stmtReadBuffByUUserIdx = cnx.prepareCall(
                "begin " + schema.getLowerSchemaDbName() + ".rd_tsecmembbyuuseridx( ?, ?, ?, ?, ?, ?" + ", "
                        + "?" + ", " + "?" + ", " + "?" + " ); end;");
        int argIdx = 1;
        stmtReadBuffByUUserIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR);
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUUserIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtReadBuffByUUserIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        stmtReadBuffByUUserIdx.setLong(argIdx++, TenantId);
        stmtReadBuffByUUserIdx.setInt(argIdx++, TSecGroupId);
        stmtReadBuffByUUserIdx.setString(argIdx++, SecUserId.toString());
        stmtReadBuffByUUserIdx.execute();
        resultSet = (ResultSet) stmtReadBuffByUUserIdx.getObject(1);
        if (resultSet == null) {
            return (null);
        }
        try {
            if (resultSet.next()) {
                CFAstTSecGroupMemberBuff buff = unpackTSecGroupMemberResultSetToBuff(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 (stmtReadBuffByUUserIdx != null) {
            try {
                stmtReadBuffByUUserIdx.close();
            } catch (SQLException e) {
            }
            stmtReadBuffByUUserIdx = null;
        }
    }
}

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

public CFAstSecGroupMemberBuff readBuffByUUserIdx(CFAstAuthorization Authorization, long ClusterId,
        int SecGroupId, UUID SecUserId) {
    final String S_ProcName = "readBuffByUUserIdx";
    ResultSet resultSet = null;/*  w  w  w.  ja  v  a2 s. co m*/
    Connection cnx = schema.getCnx();
    CallableStatement stmtReadBuffByUUserIdx = null;
    try {
        stmtReadBuffByUUserIdx = cnx.prepareCall(
                "begin " + schema.getLowerDbSchemaName() + ".rd_secmembbyuuseridx( ?, ?, ?, ?, ?, ?" + ", "
                        + "?" + ", " + "?" + ", " + "?" + " ); end;");
        int argIdx = 1;
        stmtReadBuffByUUserIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR);
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUUserIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtReadBuffByUUserIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        stmtReadBuffByUUserIdx.setLong(argIdx++, ClusterId);
        stmtReadBuffByUUserIdx.setInt(argIdx++, SecGroupId);
        stmtReadBuffByUUserIdx.setString(argIdx++, SecUserId.toString());
        stmtReadBuffByUUserIdx.execute();
        resultSet = (ResultSet) stmtReadBuffByUUserIdx.getObject(1);
        if (resultSet == null) {
            return (null);
        }
        try {
            if (resultSet.next()) {
                CFAstSecGroupMemberBuff buff = unpackSecGroupMemberResultSetToBuff(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 (stmtReadBuffByUUserIdx != null) {
            try {
                stmtReadBuffByUUserIdx.close();
            } catch (SQLException e) {
            }
            stmtReadBuffByUUserIdx = null;
        }
    }
}

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

public CFAstTSecGroupMemberBuff readBuffByUUserIdx(CFAstAuthorization Authorization, long TenantId,
        int TSecGroupId, UUID SecUserId) {
    final String S_ProcName = "readBuffByUUserIdx";
    ResultSet resultSet = null;//from   ww w.  ja  v a2  s . c o m
    Connection cnx = schema.getCnx();
    CallableStatement stmtReadBuffByUUserIdx = null;
    try {
        stmtReadBuffByUUserIdx = cnx.prepareCall(
                "begin " + schema.getLowerDbSchemaName() + ".rd_tsecmembbyuuseridx( ?, ?, ?, ?, ?, ?" + ", "
                        + "?" + ", " + "?" + ", " + "?" + " ); end;");
        int argIdx = 1;
        stmtReadBuffByUUserIdx.registerOutParameter(argIdx++, OracleTypes.CURSOR);
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUUserIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtReadBuffByUUserIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtReadBuffByUUserIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        stmtReadBuffByUUserIdx.setLong(argIdx++, TenantId);
        stmtReadBuffByUUserIdx.setInt(argIdx++, TSecGroupId);
        stmtReadBuffByUUserIdx.setString(argIdx++, SecUserId.toString());
        stmtReadBuffByUUserIdx.execute();
        resultSet = (ResultSet) stmtReadBuffByUUserIdx.getObject(1);
        if (resultSet == null) {
            return (null);
        }
        try {
            if (resultSet.next()) {
                CFAstTSecGroupMemberBuff buff = unpackTSecGroupMemberResultSetToBuff(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 (stmtReadBuffByUUserIdx != null) {
            try {
                stmtReadBuffByUUserIdx.close();
            } catch (SQLException e) {
            }
            stmtReadBuffByUUserIdx = null;
        }
    }
}