org.omg.CORBA.portable.OutputStream.write_long()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(13.0k)|赞(0)|评价(0)|浏览(150)

本文整理了Java中org.omg.CORBA.portable.OutputStream.write_long()方法的一些代码示例,展示了OutputStream.write_long()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputStream.write_long()方法的具体详情如下:
包路径:org.omg.CORBA.portable.OutputStream
类名称:OutputStream
方法名:write_long

OutputStream.write_long介绍

暂无

代码示例

代码示例来源:origin: jbosstm/narayana

public int xa_complete (org.omg.CORBA.IntHolder handle, org.omg.CORBA.IntHolder retval, int rmid, int flags)
{
     org.omg.CORBA.portable.InputStream $in = null;
     try {
       org.omg.CORBA.portable.OutputStream $out = _request ("xa_complete", true);
       $out.write_long (handle.value);
       $out.write_long (retval.value);
       $out.write_long (rmid);
       $out.write_ulong (flags);
       $in = _invoke ($out);
       int $result = $in.read_long ();
       handle.value = $in.read_long ();
       retval.value = $in.read_long ();
       return $result;
     } 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) {
       return xa_complete (handle, retval, rmid, flags        );
     } finally {
       _releaseReply ($in);
     }
} // xa_complete

代码示例来源:origin: org.jacorb/jacorb

private static enum SyncScope
{
  NONE (org.omg.Messaging.SYNC_NONE.value),
  TRANSPORT (org.omg.Messaging.SYNC_WITH_TRANSPORT.value),
  SERVER (org.omg.Messaging.SYNC_WITH_SERVER.value),
  TARGET (org.omg.Messaging.SYNC_WITH_TARGET.value);
  public static SyncScope getSyncScope (String ss) throws ConfigurationException
  {
    try
    {
      return valueOf (ss.toUpperCase ());
    }
    catch (IllegalArgumentException e)
    {
      throw new ConfigurationException ("Invalid type for SyncScope", e);
    }
  }
  public short getType ()
  {
    return value;
  }
  private short value;
  private SyncScope(short value)
  {
    this.value = value;
  }
};

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

/**
    * Inserts an integer value into the DynAny. The IDL long data type is mapped to the Java int data type.
    *
    * @exception InvalidValue if this DynAny has components but has a current position of -1
    * @exception TypeMismatch if called on a DynAny whose current component itself has components
    */
public void insert_long (int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
     org.omg.CORBA.portable.InputStream $in = null;
     try {
       org.omg.CORBA.portable.OutputStream $out = _request ("insert_long", true);
       $out.write_long (value);
       $in = _invoke ($out);
       return;
     } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0"))
         throw org.omg.DynamicAny.DynAnyPackage.TypeMismatchHelper.read ($in);
       else if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/InvalidValue:1.0"))
         throw org.omg.DynamicAny.DynAnyPackage.InvalidValueHelper.read ($in);
       else
         throw new org.omg.CORBA.MARSHAL (_id);
     } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       insert_long (value        );
     } finally {
       _releaseReply ($in);
     }
} // insert_long

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

_os.write_long(sessionID);
  _os.write_long(sessionTimeLeft);
  _is = _invoke(_os);
  return;
catch( org.omg.CORBA.portable.ApplicationException _ax )
  String _id = _ax.getId();
  throw new RuntimeException("Unexpected exception " + _id );

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

/**
    * Inserts an integer value into the DynAny. The IDL long data type is mapped to the Java int data type.
    *
    * @exception InvalidValue if this DynAny has components but has a current position of -1
    * @exception TypeMismatch if called on a DynAny whose current component itself has components
    */
public void insert_long (int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
     org.omg.CORBA.portable.InputStream $in = null;
     try {
       org.omg.CORBA.portable.OutputStream $out = _request ("insert_long", true);
       $out.write_long (value);
       $in = _invoke ($out);
       return;
     } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0"))
         throw org.omg.DynamicAny.DynAnyPackage.TypeMismatchHelper.read ($in);
       else if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/InvalidValue:1.0"))
         throw org.omg.DynamicAny.DynAnyPackage.InvalidValueHelper.read ($in);
       else
         throw new org.omg.CORBA.MARSHAL (_id);
     } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       insert_long (value        );
     } finally {
       _releaseReply ($in);
     }
} // insert_long

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

_os.write_long(callLegSessionID);
  _is = _invoke(_os);
  return;
catch( org.omg.CORBA.portable.ApplicationException _ax )
  String _id = _ax.getId();
  throw new RuntimeException("Unexpected exception " + _id );

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public org.eclipse.persistence.internal.sessions.remote.Transporter cursoredStreamNextPage(org.eclipse.persistence.internal.sessions.remote.Transporter arg0, int arg1) {
  org.omg.CORBA.portable.InputStream _in = null;
  try {
    org.omg.CORBA.portable.OutputStream _out = _request("cursoredStreamNextPage", true);
    org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.write(_out, arg0);
    _out.write_long(arg1);
    _in = _invoke(_out);
    org.eclipse.persistence.internal.sessions.remote.Transporter __result = org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.read(_in);
    return __result;
  } 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) {
    return cursoredStreamNextPage(arg0, arg1);
  } finally {
    _releaseReply(_in);
  }
}
// cursoredStreamNextPage

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

_os.write_long(callReference);
  _is = _invoke(_os);
  return;
catch( org.omg.CORBA.portable.ApplicationException _ax )
  String _id = _ax.getId();
  throw new RuntimeException("Unexpected exception " + _id );

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public org.eclipse.persistence.internal.sessions.remote.Transporter cursoredStreamNextPage(org.eclipse.persistence.internal.sessions.remote.Transporter arg0, int arg1) {
  org.omg.CORBA.portable.InputStream _in = null;
  try {
    org.omg.CORBA.portable.OutputStream _out = _request("cursoredStreamNextPage", true);
    org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.write(_out, arg0);
    _out.write_long(arg1);
    _in = _invoke(_out);
    org.eclipse.persistence.internal.sessions.remote.Transporter __result = org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.read(_in);
    return __result;
  } 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) {
    return cursoredStreamNextPage(arg0, arg1);
  } finally {
    _releaseReply(_in);
  }
}
// cursoredStreamNextPage

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

_os.write_long(callSessionID);
  org.csapi.cc.TpCallInfoReportHelper.write(_os,callInfoReport);
  _is = _invoke(_os);
catch( org.omg.CORBA.portable.ApplicationException _ax )
  String _id = _ax.getId();
  throw new RuntimeException("Unexpected exception " + _id );

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public org.eclipse.persistence.internal.sessions.remote.Transporter scrollableCursorRelative(org.eclipse.persistence.internal.sessions.remote.Transporter arg0, int arg1) {
  org.omg.CORBA.portable.InputStream _in = null;
  try {
    org.omg.CORBA.portable.OutputStream _out = _request("scrollableCursorRelative", true);
    org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.write(_out, arg0);
    _out.write_long(arg1);
    _in = _invoke(_out);
    org.eclipse.persistence.internal.sessions.remote.Transporter __result = org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.read(_in);
    return __result;
  } 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) {
    return scrollableCursorRelative(arg0, arg1);
  } finally {
    _releaseReply(_in);
  }
}
// scrollableCursorRelative

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

_os.write_long(callLegSessionID);
  org.csapi.cc.TpCallErrorHelper.write(_os,errorIndication);
  _is = _invoke(_os);
catch( org.omg.CORBA.portable.ApplicationException _ax )
  String _id = _ax.getId();
  throw new RuntimeException("Unexpected exception " + _id );

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public org.eclipse.persistence.internal.sessions.remote.Transporter scrollableCursorAbsolute(org.eclipse.persistence.internal.sessions.remote.Transporter arg0, int arg1) {
  org.omg.CORBA.portable.InputStream _in = null;
  try {
    org.omg.CORBA.portable.OutputStream _out = _request("scrollableCursorAbsolute", true);
    org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.write(_out, arg0);
    _out.write_long(arg1);
    _in = _invoke(_out);
    org.eclipse.persistence.internal.sessions.remote.Transporter __result = org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.read(_in);
    return __result;
  } 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) {
    return scrollableCursorAbsolute(arg0, arg1);
  } finally {
    _releaseReply(_in);
  }
}
// scrollableCursorAbsolute

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

_os.write_long(callLegSessionID);
  org.csapi.cc.TpCallErrorHelper.write(_os,errorIndication);
  _is = _invoke(_os);
catch( org.omg.CORBA.portable.ApplicationException _ax )
  String _id = _ax.getId();
  throw new RuntimeException("Unexpected exception " + _id );

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public org.eclipse.persistence.internal.sessions.remote.Transporter scrollableCursorAbsolute(org.eclipse.persistence.internal.sessions.remote.Transporter arg0, int arg1) {
  org.omg.CORBA.portable.InputStream _in = null;
  try {
    org.omg.CORBA.portable.OutputStream _out = _request("scrollableCursorAbsolute", true);
    org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.write(_out, arg0);
    _out.write_long(arg1);
    _in = _invoke(_out);
    org.eclipse.persistence.internal.sessions.remote.Transporter __result = org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.read(_in);
    return __result;
  } 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) {
    return scrollableCursorAbsolute(arg0, arg1);
  } finally {
    _releaseReply(_in);
  }
}
// scrollableCursorAbsolute

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

_os.write_long(callLegSessionID);
  org.csapi.cc.TpCallErrorHelper.write(_os,errorIndication);
  _is = _invoke(_os);
catch( org.omg.CORBA.portable.ApplicationException _ax )
  String _id = _ax.getId();
  throw new RuntimeException("Unexpected exception " + _id );

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public org.eclipse.persistence.internal.sessions.remote.Transporter cursoredStreamNextPage(org.eclipse.persistence.internal.sessions.remote.Transporter arg0, int arg1) {
  org.omg.CORBA.portable.InputStream _in = null;
  try {
    org.omg.CORBA.portable.OutputStream _out = _request("cursoredStreamNextPage", true);
    org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.write(_out, arg0);
    _out.write_long(arg1);
    _in = _invoke(_out);
    org.eclipse.persistence.internal.sessions.remote.Transporter __result = org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.read(_in);
    return __result;
  } 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) {
    return cursoredStreamNextPage(arg0, arg1);
  } finally {
    _releaseReply(_in);
  }
}
// cursoredStreamNextPage

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

_os.write_long(callLegSessionID);
  org.csapi.cc.TpReleaseCauseHelper.write(_os,cause);
  _is = _invoke(_os);
catch( org.omg.CORBA.portable.ApplicationException _ax )
  String _id = _ax.getId();
  throw new RuntimeException("Unexpected exception " + _id );

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public org.eclipse.persistence.internal.sessions.remote.Transporter scrollableCursorRelative(org.eclipse.persistence.internal.sessions.remote.Transporter arg0, int arg1) {
  org.omg.CORBA.portable.InputStream _in = null;
  try {
    org.omg.CORBA.portable.OutputStream _out = _request("scrollableCursorRelative", true);
    org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.write(_out, arg0);
    _out.write_long(arg1);
    _in = _invoke(_out);
    org.eclipse.persistence.internal.sessions.remote.Transporter __result = org.eclipse.persistence.sessions.remote.corba.sun.TransporterHelper.read(_in);
    return __result;
  } 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) {
    return scrollableCursorRelative(arg0, arg1);
  } finally {
    _releaseReply(_in);
  }
}
// scrollableCursorRelative

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

_os.write_long(callLegSessionID);
  org.csapi.cc.TpCallErrorHelper.write(_os,errorIndication);
  _is = _invoke(_os);
catch( org.omg.CORBA.portable.ApplicationException _ax )
  String _id = _ax.getId();
  throw new RuntimeException("Unexpected exception " + _id );

相关文章