package IT.picosoft.jdbc;


/**
* IT/picosoft/jdbc/_JDBCPicoDbStub.java .
* Generated by the IDL-to-Java compiler (portable), version "3.1"
* from IT/picosoft/jdbc/jdbcpicodb.idl
* luned́ 29 aprile 2002 9.34.19 CEST
*/

public class _JDBCPicoDbStub extends org.omg.CORBA.portable.ObjectImpl implements IT.picosoft.jdbc.JDBCPicoDb
{

  public void SQLError (org.omg.CORBA.IntHolder Return_code, int henv, int hdbc, int hstmt, org.omg.CORBA.StringHolder outSqlState, org.omg.CORBA.IntHolder outNativeError, org.omg.CORBA.StringHolder outErrorMsg, short cbErrorMsgMax, org.omg.CORBA.ShortHolder pcbErrorMsg)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLError", true);
       $out.write_ulong (henv);
       $out.write_ulong (hdbc);
       $out.write_ulong (hstmt);
       $out.write_short (cbErrorMsgMax);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       outSqlState.value = $in.read_string ();
       outNativeError.value = $in.read_long ();
       outErrorMsg.value = $in.read_string ();
       pcbErrorMsg.value = $in.read_short ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLError (Return_code, henv, hdbc, hstmt, outSqlState, outNativeError, outErrorMsg, cbErrorMsgMax, pcbErrorMsg);
    } finally {
        _releaseReply ($in);
    }
  } // SQLError

  public void SQLTables (org.omg.CORBA.IntHolder Return_code, int hstmt, String szTableQualifier, short cbTableQualifier, String szTableOwner, short cbTableOwner, String szTableName, short cbTableName, String szTableType, short cbTableType)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLTables", true);
       $out.write_ulong (hstmt);
       $out.write_string (szTableQualifier);
       $out.write_short (cbTableQualifier);
       $out.write_string (szTableOwner);
       $out.write_short (cbTableOwner);
       $out.write_string (szTableName);
       $out.write_short (cbTableName);
       $out.write_string (szTableType);
       $out.write_short (cbTableType);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLTables (Return_code, hstmt, szTableQualifier, cbTableQualifier, szTableOwner, cbTableOwner, szTableName, cbTableName, szTableType, cbTableType);
    } finally {
        _releaseReply ($in);
    }
  } // SQLTables

  public void SQLPrepare (org.omg.CORBA.IntHolder Return_code, int hstmt, String szSqlStr, int cbSqlStr)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLPrepare", true);
       $out.write_ulong (hstmt);
       $out.write_string (szSqlStr);
       $out.write_long (cbSqlStr);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLPrepare (Return_code, hstmt, szSqlStr, cbSqlStr);
    } finally {
        _releaseReply ($in);
    }
  } // SQLPrepare

  public void SQLExecute (org.omg.CORBA.IntHolder Return_code, int hstmt)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLExecute", true);
       $out.write_ulong (hstmt);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLExecute (Return_code, hstmt);
    } finally {
        _releaseReply ($in);
    }
  } // SQLExecute

  public void SQLExecDirect (org.omg.CORBA.IntHolder Return_code, int hstmt, String szSqlStr, int cbSqlStr)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLExecDirect", true);
       $out.write_ulong (hstmt);
       $out.write_string (szSqlStr);
       $out.write_long (cbSqlStr);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLExecDirect (Return_code, hstmt, szSqlStr, cbSqlStr);
    } finally {
        _releaseReply ($in);
    }
  } // SQLExecDirect

  public void SQLNumResultCols (org.omg.CORBA.IntHolder Return_code, int hstmt, org.omg.CORBA.ShortHolder pccol)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLNumResultCols", true);
       $out.write_ulong (hstmt);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       pccol.value = $in.read_short ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLNumResultCols (Return_code, hstmt, pccol);
    } finally {
        _releaseReply ($in);
    }
  } // SQLNumResultCols

  public void SQLRowCount (org.omg.CORBA.IntHolder Return_code, int hstmt, org.omg.CORBA.IntHolder pcrow)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLRowCount", true);
       $out.write_ulong (hstmt);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       pcrow.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLRowCount (Return_code, hstmt, pcrow);
    } finally {
        _releaseReply ($in);
    }
  } // SQLRowCount

  public void SQLDescribeCol (org.omg.CORBA.IntHolder Return_code, int hstmt, short icol, org.omg.CORBA.StringHolder szColName, short cbColName, org.omg.CORBA.ShortHolder pcbColNameMax, org.omg.CORBA.ShortHolder pfSqlType, org.omg.CORBA.IntHolder pcbColDef, org.omg.CORBA.ShortHolder pibScale, org.omg.CORBA.ShortHolder pfNullable)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLDescribeCol", true);
       $out.write_ulong (hstmt);
       $out.write_ushort (icol);
       $out.write_short (cbColName);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       szColName.value = $in.read_string ();
       pcbColNameMax.value = $in.read_short ();
       pfSqlType.value = $in.read_short ();
       pcbColDef.value = $in.read_ulong ();
       pibScale.value = $in.read_short ();
       pfNullable.value = $in.read_short ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLDescribeCol (Return_code, hstmt, icol, szColName, cbColName, pcbColNameMax, pfSqlType, pcbColDef, pibScale, pfNullable);
    } finally {
        _releaseReply ($in);
    }
  } // SQLDescribeCol

  public void SQLFetch (org.omg.CORBA.IntHolder Return_code, int hstmt, org.omg.CORBA.IntHolder num_cols)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLFetch", true);
       $out.write_ulong (hstmt);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       num_cols.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLFetch (Return_code, hstmt, num_cols);
    } finally {
        _releaseReply ($in);
    }
  } // SQLFetch

  public void SQLExtendedFetch (org.omg.CORBA.IntHolder Return_code, int hstmt, short fetchType, int irow, org.omg.CORBA.IntHolder pcrow, org.omg.CORBA.ShortHolder rgfRowStatus, org.omg.CORBA.IntHolder num_cols)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLExtendedFetch", true);
       $out.write_ulong (hstmt);
       $out.write_ushort (fetchType);
       $out.write_long (irow);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       pcrow.value = $in.read_ulong ();
       rgfRowStatus.value = $in.read_ushort ();
       num_cols.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLExtendedFetch (Return_code, hstmt, fetchType, irow, pcrow, rgfRowStatus, num_cols);
    } finally {
        _releaseReply ($in);
    }
  } // SQLExtendedFetch

  public void SQLFetchBindCol (org.omg.CORBA.IntHolder Return_code, int hstmt, IT.picosoft.jdbc.BindColIn_item[] bind_col_In, IT.picosoft.jdbc.BindColOut_seqHolder bind_col_Out)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLFetchBindCol", true);
       $out.write_ulong (hstmt);
       IT.picosoft.jdbc.BindColIn_seqHelper.write ($out, bind_col_In);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       bind_col_Out.value = IT.picosoft.jdbc.BindColOut_seqHelper.read ($in);
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLFetchBindCol (Return_code, hstmt, bind_col_In, bind_col_Out);
    } finally {
        _releaseReply ($in);
    }
  } // SQLFetchBindCol

  public void SQLExtendedFetchBindCol (org.omg.CORBA.IntHolder Return_code, int hstmt, short fetchType, int irow, org.omg.CORBA.IntHolder pcrow, org.omg.CORBA.ShortHolder rgfRowStatus, IT.picosoft.jdbc.BindColIn_item[] bind_col_In, IT.picosoft.jdbc.BindColOut_seqHolder bind_col_Out)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLExtendedFetchBindCol", true);
       $out.write_ulong (hstmt);
       $out.write_ushort (fetchType);
       $out.write_long (irow);
       IT.picosoft.jdbc.BindColIn_seqHelper.write ($out, bind_col_In);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       pcrow.value = $in.read_ulong ();
       rgfRowStatus.value = $in.read_ushort ();
       bind_col_Out.value = IT.picosoft.jdbc.BindColOut_seqHelper.read ($in);
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLExtendedFetchBindCol (Return_code, hstmt, fetchType, irow, pcrow, rgfRowStatus, bind_col_In, bind_col_Out);
    } finally {
        _releaseReply ($in);
    }
  } // SQLExtendedFetchBindCol

  public void SQLGetData (org.omg.CORBA.IntHolder Return_code, int hstmt, short icol, short fCType, org.omg.CORBA.AnyHolder rgbValue, int cbValueMax, org.omg.CORBA.IntHolder pcbValue)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLGetData", true);
       $out.write_ulong (hstmt);
       $out.write_ushort (icol);
       $out.write_short (fCType);
       $out.write_long (cbValueMax);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       rgbValue.value = $in.read_any ();
       pcbValue.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLGetData (Return_code, hstmt, icol, fCType, rgbValue, cbValueMax, pcbValue);
    } finally {
        _releaseReply ($in);
    }
  } // SQLGetData

  public void SQLGetAllData (org.omg.CORBA.IntHolder Return_code, int hstmt, IT.picosoft.jdbc.AnySequenceHolder rgbValue, IT.picosoft.jdbc.CommAttr_seqHolder commAttr)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLGetAllData", true);
       $out.write_ulong (hstmt);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       rgbValue.value = IT.picosoft.jdbc.AnySequenceHelper.read ($in);
       commAttr.value = IT.picosoft.jdbc.CommAttr_seqHelper.read ($in);
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLGetAllData (Return_code, hstmt, rgbValue, commAttr);
    } finally {
        _releaseReply ($in);
    }
  } // SQLGetAllData

  public void SQLFreeStmt (org.omg.CORBA.IntHolder Return_code, int hstmt, short fOption)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLFreeStmt", true);
       $out.write_ulong (hstmt);
       $out.write_ushort (fOption);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLFreeStmt (Return_code, hstmt, fOption);
    } finally {
        _releaseReply ($in);
    }
  } // SQLFreeStmt

  public void SQLAllocEnv (org.omg.CORBA.IntHolder Return_code, org.omg.CORBA.IntHolder phenv)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLAllocEnv", true);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       phenv.value = $in.read_ulong ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLAllocEnv (Return_code, phenv);
    } finally {
        _releaseReply ($in);
    }
  } // SQLAllocEnv

  public void SQLAllocConnect (org.omg.CORBA.IntHolder Return_code, int henv, org.omg.CORBA.IntHolder phdbc)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLAllocConnect", true);
       $out.write_ulong (henv);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       phdbc.value = $in.read_ulong ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLAllocConnect (Return_code, henv, phdbc);
    } finally {
        _releaseReply ($in);
    }
  } // SQLAllocConnect

  public void SQLConnect (org.omg.CORBA.IntHolder Return_code, int hdbc, String szDSN, short cbDSN, String szUID, short cbUID, String szAuthStr, short cbAuthStr)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLConnect", true);
       $out.write_ulong (hdbc);
       $out.write_string (szDSN);
       $out.write_short (cbDSN);
       $out.write_string (szUID);
       $out.write_short (cbUID);
       $out.write_string (szAuthStr);
       $out.write_short (cbAuthStr);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLConnect (Return_code, hdbc, szDSN, cbDSN, szUID, cbUID, szAuthStr, cbAuthStr);
    } finally {
        _releaseReply ($in);
    }
  } // SQLConnect

  public void SQLAllocStmt (org.omg.CORBA.IntHolder Return_code, int hdbc, org.omg.CORBA.IntHolder phstmt)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLAllocStmt", true);
       $out.write_ulong (hdbc);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       phstmt.value = $in.read_ulong ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLAllocStmt (Return_code, hdbc, phstmt);
    } finally {
        _releaseReply ($in);
    }
  } // SQLAllocStmt

  public void SQLDisconnect (org.omg.CORBA.IntHolder Return_code, int hdbc)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLDisconnect", true);
       $out.write_ulong (hdbc);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLDisconnect (Return_code, hdbc);
    } finally {
        _releaseReply ($in);
    }
  } // SQLDisconnect

  public void SQLFreeConnect (org.omg.CORBA.IntHolder Return_code, int hdbc)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLFreeConnect", true);
       $out.write_ulong (hdbc);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLFreeConnect (Return_code, hdbc);
    } finally {
        _releaseReply ($in);
    }
  } // SQLFreeConnect

  public void SQLFreeEnv (org.omg.CORBA.IntHolder Return_code, int henv)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLFreeEnv", true);
       $out.write_ulong (henv);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLFreeEnv (Return_code, henv);
    } finally {
        _releaseReply ($in);
    }
  } // SQLFreeEnv

  public void SQLCancel (org.omg.CORBA.IntHolder Return_code, int hstmt)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLCancel", true);
       $out.write_ulong (hstmt);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLCancel (Return_code, hstmt);
    } finally {
        _releaseReply ($in);
    }
  } // SQLCancel

  public void SQLColAttributes (org.omg.CORBA.IntHolder Return_code, int hstmt, short icol, short fDescType, IT.picosoft.jdbc.OctetSequenceHolder rgbDesc, short cbDescMax, org.omg.CORBA.ShortHolder pcbDesc, org.omg.CORBA.IntHolder pfDesc)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLColAttributes", true);
       $out.write_ulong (hstmt);
       $out.write_ushort (icol);
       $out.write_ushort (fDescType);
       $out.write_short (cbDescMax);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       rgbDesc.value = IT.picosoft.jdbc.OctetSequenceHelper.read ($in);
       pcbDesc.value = $in.read_short ();
       pfDesc.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLColAttributes (Return_code, hstmt, icol, fDescType, rgbDesc, cbDescMax, pcbDesc, pfDesc);
    } finally {
        _releaseReply ($in);
    }
  } // SQLColAttributes

  public void SQLColumns (org.omg.CORBA.IntHolder Return_code, int hstmt, String szTableQualifier, short cbTableQualifier, String szTableOwner, short cbTableOwner, String szTableName, short cbTableName, String szColumnType, short cbColumnType)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLColumns", true);
       $out.write_ulong (hstmt);
       $out.write_string (szTableQualifier);
       $out.write_short (cbTableQualifier);
       $out.write_string (szTableOwner);
       $out.write_short (cbTableOwner);
       $out.write_string (szTableName);
       $out.write_short (cbTableName);
       $out.write_string (szColumnType);
       $out.write_short (cbColumnType);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLColumns (Return_code, hstmt, szTableQualifier, cbTableQualifier, szTableOwner, cbTableOwner, szTableName, cbTableName, szColumnType, cbColumnType);
    } finally {
        _releaseReply ($in);
    }
  } // SQLColumns

  public void SQLGetConnectOption (org.omg.CORBA.IntHolder Return_code, int hdbc, short fOption, org.omg.CORBA.StringHolder pvParam_a, org.omg.CORBA.IntHolder pvParam_b)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLGetConnectOption", true);
       $out.write_ulong (hdbc);
       $out.write_ushort (fOption);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       pvParam_a.value = $in.read_string ();
       pvParam_b.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLGetConnectOption (Return_code, hdbc, fOption, pvParam_a, pvParam_b);
    } finally {
        _releaseReply ($in);
    }
  } // SQLGetConnectOption

  public void SQLSetConnectOption (org.omg.CORBA.IntHolder Return_code, int hdbc, short fOption, String pvParam_a, int pvParam_b)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLSetConnectOption", true);
       $out.write_ulong (hdbc);
       $out.write_ushort (fOption);
       $out.write_string (pvParam_a);
       $out.write_long (pvParam_b);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLSetConnectOption (Return_code, hdbc, fOption, pvParam_a, pvParam_b);
    } finally {
        _releaseReply ($in);
    }
  } // SQLSetConnectOption

  public void SQLGetStmtOption (org.omg.CORBA.IntHolder Return_code, int hdbc, short fOption, org.omg.CORBA.StringHolder pvParam_a, org.omg.CORBA.IntHolder pvParam_b)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLGetStmtOption", true);
       $out.write_ulong (hdbc);
       $out.write_ushort (fOption);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       pvParam_a.value = $in.read_string ();
       pvParam_b.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLGetStmtOption (Return_code, hdbc, fOption, pvParam_a, pvParam_b);
    } finally {
        _releaseReply ($in);
    }
  } // SQLGetStmtOption

  public void SQLSetStmtOption (org.omg.CORBA.IntHolder Return_code, int hdbc, short fOption, String pvParam_a, int pvParam_b)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLSetStmtOption", true);
       $out.write_ulong (hdbc);
       $out.write_ushort (fOption);
       $out.write_string (pvParam_a);
       $out.write_long (pvParam_b);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLSetStmtOption (Return_code, hdbc, fOption, pvParam_a, pvParam_b);
    } finally {
        _releaseReply ($in);
    }
  } // SQLSetStmtOption

  public void SQLBindParameter (org.omg.CORBA.IntHolder Return_code, int hstmt, short ipar, short fParamType, short fCType, short fSqlType, int cbColDef, short ibScale, org.omg.CORBA.Any rgbValue, int cbValueMax, int pcbValue)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLBindParameter", true);
       $out.write_ulong (hstmt);
       $out.write_ushort (ipar);
       $out.write_short (fParamType);
       $out.write_short (fCType);
       $out.write_short (fSqlType);
       $out.write_ulong (cbColDef);
       $out.write_short (ibScale);
       $out.write_any (rgbValue);
       $out.write_long (cbValueMax);
       $out.write_long (pcbValue);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLBindParameter (Return_code, hstmt, ipar, fParamType, fCType, fSqlType, cbColDef, ibScale, rgbValue, cbValueMax, pcbValue);
    } finally {
        _releaseReply ($in);
    }
  } // SQLBindParameter

  public void SQLExecuteParams (org.omg.CORBA.IntHolder Return_code, int hstmt, IT.picosoft.jdbc.Param_item[] Parameters)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLExecuteParams", true);
       $out.write_ulong (hstmt);
       IT.picosoft.jdbc.Param_seqHelper.write ($out, Parameters);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLExecuteParams (Return_code, hstmt, Parameters);
    } finally {
        _releaseReply ($in);
    }
  } // SQLExecuteParams

  public void SQLExecDirectParams (org.omg.CORBA.IntHolder Return_code, int hstmt, String szSqlStr, int cbSqlStr, IT.picosoft.jdbc.Param_item[] Parameters)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLExecDirectParams", true);
       $out.write_ulong (hstmt);
       $out.write_string (szSqlStr);
       $out.write_long (cbSqlStr);
       IT.picosoft.jdbc.Param_seqHelper.write ($out, Parameters);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLExecDirectParams (Return_code, hstmt, szSqlStr, cbSqlStr, Parameters);
    } finally {
        _releaseReply ($in);
    }
  } // SQLExecDirectParams

  public void SQLTransact (org.omg.CORBA.IntHolder Return_code, int henv, int hdbc, short fType)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLTransact", true);
       $out.write_ulong (henv);
       $out.write_ulong (hdbc);
       $out.write_ushort (fType);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLTransact (Return_code, henv, hdbc, fType);
    } finally {
        _releaseReply ($in);
    }
  } // SQLTransact

  public void SQLStatistics (org.omg.CORBA.IntHolder Return_code, int hstmt, String szTableQualifier, short cbTableQualifier, String szTableOwner, short cbTableOwner, String szTableName, short cbTableName, short fUnique, short fAccuracy)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLStatistics", true);
       $out.write_ulong (hstmt);
       $out.write_string (szTableQualifier);
       $out.write_short (cbTableQualifier);
       $out.write_string (szTableOwner);
       $out.write_short (cbTableOwner);
       $out.write_string (szTableName);
       $out.write_short (cbTableName);
       $out.write_ushort (fUnique);
       $out.write_ushort (fAccuracy);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLStatistics (Return_code, hstmt, szTableQualifier, cbTableQualifier, szTableOwner, cbTableOwner, szTableName, cbTableName, fUnique, fAccuracy);
    } finally {
        _releaseReply ($in);
    }
  } // SQLStatistics

  public void SQLSpecialColumns (org.omg.CORBA.IntHolder Return_code, int hstmt, short fColType, String szTableQualifier, short cbTableQualifier, String szTableOwner, short cbTableOwner, String szTableName, short cbTableName, short fScope, short fNullable)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLSpecialColumns", true);
       $out.write_ulong (hstmt);
       $out.write_ushort (fColType);
       $out.write_string (szTableQualifier);
       $out.write_short (cbTableQualifier);
       $out.write_string (szTableOwner);
       $out.write_short (cbTableOwner);
       $out.write_string (szTableName);
       $out.write_short (cbTableName);
       $out.write_ushort (fScope);
       $out.write_ushort (fNullable);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLSpecialColumns (Return_code, hstmt, fColType, szTableQualifier, cbTableQualifier, szTableOwner, cbTableOwner, szTableName, cbTableName, fScope, fNullable);
    } finally {
        _releaseReply ($in);
    }
  } // SQLSpecialColumns

  public void SQLGetTypeInfo (org.omg.CORBA.IntHolder Return_code, int hstmt, short fSqlType)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLGetTypeInfo", true);
       $out.write_ulong (hstmt);
       $out.write_short (fSqlType);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLGetTypeInfo (Return_code, hstmt, fSqlType);
    } finally {
        _releaseReply ($in);
    }
  } // SQLGetTypeInfo

  public void SQLGetCursorName (org.omg.CORBA.IntHolder Return_code, int hstmt, org.omg.CORBA.StringHolder szCursor, short cbCursorMax, org.omg.CORBA.ShortHolder pcbCursor)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLGetCursorName", true);
       $out.write_ulong (hstmt);
       $out.write_short (cbCursorMax);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       szCursor.value = $in.read_string ();
       pcbCursor.value = $in.read_short ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLGetCursorName (Return_code, hstmt, szCursor, cbCursorMax, pcbCursor);
    } finally {
        _releaseReply ($in);
    }
  } // SQLGetCursorName

  public void SQLNumParams (org.omg.CORBA.IntHolder Return_code, int hstmt, org.omg.CORBA.ShortHolder pcpar)
  {
    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("SQLNumParams", true);
       $out.write_ulong (hstmt);
       $in = _invoke ($out);
       Return_code.value = $in.read_long ();
       pcpar.value = $in.read_short ();
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       SQLNumParams (Return_code, hstmt, pcpar);
    } finally {
        _releaseReply ($in);
    }
  } // SQLNumParams

  // Type-specific CORBA::Object operations
  private static String[] __ids = {
    "IDL:IT/picosoft/jdbc/JDBCPicoDb:1.0"};

  public String[] _ids ()
  {
    return (String[])__ids.clone ();
  }

  private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
  {
     String str = s.readUTF ();
     String[] args = null;
     java.util.Properties props = null;
     org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
     org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
     _set_delegate (delegate);
  }

  private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
  {
     String[] args = null;
     java.util.Properties props = null;
     String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
     s.writeUTF (str);
  }
} // class _JDBCPicoDbStub
