public int updateUacFlag(String strMeaning, String strUserId, Connection aConnection)
throws DBException
{
WTDBLookup wtDbLookup = new WTDBLookup();
CallableStatement stmt;
int errCode = 0;
try {
stmt = aConnection.prepareCall("{call XXCTS_WT_O.XXCTS_WT_ALTER_SWITCH.alter_switch(?,?,?,?)}");
stmt.setString(1, strMeaning);
stmt.setString(2, strUserId);
stmt.registerOutParameter(3, Types.NUMERIC);
stmt.registerOutParameter(4, Types.VARCHAR);
stmt.execute();
errCode = stmt.getInt(3);
String errMessage = stmt.getString(4);
System.out.println("Error Code :" + errCode);
System.out.println("Error Message :" + errMessage);
}
catch (Exception e) {
throw new DBException("UAC Flag could not be updated: " + e.getMessage());
}
return errCode;
}