Package java.sql

Examples of java.sql.CallableStatement.registerOutParameter()


        oCall = oConn.prepareCall("{ call k_is_workarea_poweruser (?,?,?)}");

        oCall.setString(1, guWorkArea);
        oCall.setString(2, sUserId);
        oCall.registerOutParameter(3, Types.INTEGER);
        oCall.execute();
        iIsPowerUser = oCall.getInt(3);
        oCall.close();
        break;
View Full Code Here


        if (DebugFile.trace) DebugFile.writeln("Connection.prepareCall({call k_sp_currval ('" + sSequenceName + "',?)})" );

        oCall = oConn.prepareCall("{call k_sp_currval (?,?)}");
        oCall.setString(1, sSequenceName);
        oCall.registerOutParameter(2, java.sql.Types.INTEGER);
        oCall.execute();
        iCurrVal = oCall.getInt(2);
        oCall.close();
        oCall = null;
        break;
View Full Code Here

        if (DebugFile.trace) DebugFile.writeln("Connection.prepareCall({call k_sp_nextval ('" + sSequenceName + "',?)})" );

        oCall = oConn.prepareCall("{call k_sp_nextval (?,?)}");
        oCall.setString(1, sSequenceName);
        oCall.registerOutParameter(2, java.sql.Types.INTEGER);
        oCall.execute();
        iNextVal = oCall.getInt(2);
        oCall.close();
        oCall = null;
        break;
View Full Code Here

        if (DebugFile.trace) DebugFile.writeln("Connection.prepareCall({ call " + sProc + "(?,?,?)})");

        oCall = oConn.prepareCall("{ call " + sProc + "(?,?,?)}");
        oCall.setString(1, sList);
        oCall.setString(2, sParm);
        oCall.registerOutParameter(3, java.sql.Types.DECIMAL);
        oCall.execute();
        bBlocked = (oCall.getBigDecimal(3).intValue()!=0);
        oCall.close();
        break;
View Full Code Here

        oCall = oConn.prepareCall("{ call k_sp_autenticate (?,?,?)}");

        oCall.setString(1,sUserId);
        oCall.setString(2,sPassword);
        oCall.registerOutParameter(3, java.sql.Types.DECIMAL);

        if (DebugFile.trace) DebugFile.writeln("  java.sql.Connection.execute()");

        oCall.execute();
        iStatus = Short.parseShort(oCall.getBigDecimal(3).toString());
View Full Code Here

        oCall = oConn.prepareCall("{ call k_sp_autenticate (?,?,?)}");

        oCall.setString(1,sUserId);
        oCall.setString(2,sPassword);
        oCall.registerOutParameter(3, java.sql.Types.SMALLINT);

        if (DebugFile.trace) DebugFile.writeln("  java.sql.Connection.execute()");

        oCall.execute();
        iStatus = oCall.getShort(3);
View Full Code Here

    else {
      CallableStatement oCall = oConn.prepareCall("{ call k_get_user_from_nick (?,?,?)}");

      oCall.setInt(1, iDomain);
      oCall.setString(2, sNickName);
      oCall.registerOutParameter(3, java.sql.Types.CHAR);

      oCall.execute();

      if (JDCConnection.DBMS_ORACLE==oConn.getDataBaseProduct()) {
        sUserId = oCall.getString(3);
View Full Code Here

        oCall = oConn.prepareCall("{ call k_is_workarea_user (?,?,?)}");

        oCall.setString(1, guWorkArea);
        oCall.setString(2, sUserId);
        oCall.registerOutParameter(3, Types.DECIMAL);
        oCall.execute();
        iIsUser = oCall.getBigDecimal(3).intValue();
        oCall.close();
        break;
View Full Code Here

        oCall = oConn.prepareCall("{ call k_is_workarea_user (?,?,?)}");

        oCall.setString(1, guWorkArea);
        oCall.setString(2, sUserId);
        oCall.registerOutParameter(3, Types.INTEGER);
        oCall.execute();
        iIsUser = oCall.getInt(3);
        oCall.close();
        break;
View Full Code Here

        oCall = oConn.prepareCall("{ call k_is_workarea_guest (?,?,?)}");

        oCall.setString(1, guWorkArea);
        oCall.setString(2, sUserId);
        oCall.registerOutParameter(3, Types.DECIMAL);
        oCall.execute();
        iIsGuest = oCall.getBigDecimal(3).intValue();
        oCall.close();
        break;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.