Buscar este blog

lunes, 7 de junio de 2010

gotoWorkSpace oracle

public static boolean gotoWorkSpace(escenario escenario){

try {
IConnection C= escenario.getCwp().getConnection();
ConnectionJDBC jdbc = (ConnectionJDBC) C;

String call = "{ call DBMS_WM.GotoWorkspace(?) }";

Statement st = jdbc.getConnection().createStatement();
CallableStatement CL=jdbc.getConnection().prepareCall(call);
CL.setQueryTimeout(1800);
CL.registerOutParameter(1, Types.VARCHAR);
CL.setString(1, escenario.getNombreWorkSpace());
CL.executeUpdate();
CL.close();
conecta.commitConec();
System.out.println("GOTOWORKSPACE: " +escenario.getNombreWorkSpace());

} catch (Exception ex) {
ex.printStackTrace();
return false;
}
return true;

} Carlos Javier Martín Cano

No hay comentarios: