package com.vci.corba.qt;
|
|
|
/**
|
* Generated from IDL interface "QTDService".
|
*
|
* @author JacORB IDL compiler V 3.9
|
* @version generated at 2022-12-23 15:42:24
|
*/
|
|
public class _QTDServiceStub
|
extends org.omg.CORBA.portable.ObjectImpl
|
implements com.vci.corba.qt.QTDService
|
{
|
/** Serial version UID. */
|
private static final long serialVersionUID = 1L;
|
private String[] ids = {"IDL:com/vci/corba/qt/QTDService:1.0"};
|
public String[] _ids()
|
{
|
return ids;
|
}
|
|
public final static java.lang.Class _opsClass = com.vci.corba.qt.QTDServiceOperations.class;
|
public boolean isExists(java.lang.String name) throws com.vci.corba.common.VCIError
|
{
|
while(true)
|
{
|
if(! this._is_local())
|
{
|
org.omg.CORBA.portable.InputStream _is = null;
|
org.omg.CORBA.portable.OutputStream _os = null;
|
try
|
{
|
_os = _request( "isExists", true);
|
java.lang.String tmpResult1174 = name;
|
_os.write_wstring( tmpResult1174 );
|
_is = _invoke(_os);
|
boolean _result = _is.read_boolean();
|
return _result;
|
}
|
catch( org.omg.CORBA.portable.RemarshalException _rx )
|
{
|
continue;
|
}
|
catch( org.omg.CORBA.portable.ApplicationException _ax )
|
{
|
String _id = _ax.getId();
|
try
|
{
|
if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0"))
|
{
|
throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream());
|
}
|
else
|
{
|
throw new RuntimeException("Unexpected exception " + _id );
|
}
|
}
|
finally
|
{
|
try
|
{
|
_ax.getInputStream().close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
}
|
finally
|
{
|
if (_os != null)
|
{
|
try
|
{
|
_os.close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
this._releaseReply(_is);
|
}
|
}
|
else
|
{
|
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "isExists", _opsClass );
|
if( _so == null )
|
continue;
|
QTDServiceOperations _localServant = (QTDServiceOperations)_so.servant;
|
boolean _result;
|
try
|
{
|
_result = _localServant.isExists(name);
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
|
return _result;
|
}
|
catch (com.vci.corba.common.VCIError ex)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex);
|
throw ex;
|
}
|
catch (RuntimeException re)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
|
throw re;
|
}
|
catch (java.lang.Error err)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
|
throw err;
|
}
|
finally
|
{
|
_servant_postinvoke(_so);
|
}
|
}
|
|
}
|
|
}
|
|
public boolean deleteQTD(java.lang.String qtdName) throws com.vci.corba.common.VCIError
|
{
|
while(true)
|
{
|
if(! this._is_local())
|
{
|
org.omg.CORBA.portable.InputStream _is = null;
|
org.omg.CORBA.portable.OutputStream _os = null;
|
try
|
{
|
_os = _request( "deleteQTD", true);
|
java.lang.String tmpResult1175 = qtdName;
|
_os.write_wstring( tmpResult1175 );
|
_is = _invoke(_os);
|
boolean _result = _is.read_boolean();
|
return _result;
|
}
|
catch( org.omg.CORBA.portable.RemarshalException _rx )
|
{
|
continue;
|
}
|
catch( org.omg.CORBA.portable.ApplicationException _ax )
|
{
|
String _id = _ax.getId();
|
try
|
{
|
if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0"))
|
{
|
throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream());
|
}
|
else
|
{
|
throw new RuntimeException("Unexpected exception " + _id );
|
}
|
}
|
finally
|
{
|
try
|
{
|
_ax.getInputStream().close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
}
|
finally
|
{
|
if (_os != null)
|
{
|
try
|
{
|
_os.close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
this._releaseReply(_is);
|
}
|
}
|
else
|
{
|
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "deleteQTD", _opsClass );
|
if( _so == null )
|
continue;
|
QTDServiceOperations _localServant = (QTDServiceOperations)_so.servant;
|
boolean _result;
|
try
|
{
|
_result = _localServant.deleteQTD(qtdName);
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
|
return _result;
|
}
|
catch (com.vci.corba.common.VCIError ex)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex);
|
throw ex;
|
}
|
catch (RuntimeException re)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
|
throw re;
|
}
|
catch (java.lang.Error err)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
|
throw err;
|
}
|
finally
|
{
|
_servant_postinvoke(_so);
|
}
|
}
|
|
}
|
|
}
|
|
public boolean modifyQTD(com.vci.corba.qt.data.QTD qtdObj) throws com.vci.corba.common.VCIError
|
{
|
while(true)
|
{
|
if(! this._is_local())
|
{
|
org.omg.CORBA.portable.InputStream _is = null;
|
org.omg.CORBA.portable.OutputStream _os = null;
|
try
|
{
|
_os = _request( "modifyQTD", true);
|
com.vci.corba.qt.data.QTDHelper.write(_os,qtdObj);
|
_is = _invoke(_os);
|
boolean _result = _is.read_boolean();
|
return _result;
|
}
|
catch( org.omg.CORBA.portable.RemarshalException _rx )
|
{
|
continue;
|
}
|
catch( org.omg.CORBA.portable.ApplicationException _ax )
|
{
|
String _id = _ax.getId();
|
try
|
{
|
if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0"))
|
{
|
throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream());
|
}
|
else
|
{
|
throw new RuntimeException("Unexpected exception " + _id );
|
}
|
}
|
finally
|
{
|
try
|
{
|
_ax.getInputStream().close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
}
|
finally
|
{
|
if (_os != null)
|
{
|
try
|
{
|
_os.close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
this._releaseReply(_is);
|
}
|
}
|
else
|
{
|
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "modifyQTD", _opsClass );
|
if( _so == null )
|
continue;
|
QTDServiceOperations _localServant = (QTDServiceOperations)_so.servant;
|
boolean _result;
|
try
|
{
|
_result = _localServant.modifyQTD(qtdObj);
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
|
return _result;
|
}
|
catch (com.vci.corba.common.VCIError ex)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex);
|
throw ex;
|
}
|
catch (RuntimeException re)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
|
throw re;
|
}
|
catch (java.lang.Error err)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
|
throw err;
|
}
|
finally
|
{
|
_servant_postinvoke(_so);
|
}
|
}
|
|
}
|
|
}
|
|
public com.vci.corba.qt.data.QTD[] getQTDSByBtmName(java.lang.String btmName) throws com.vci.corba.common.VCIError
|
{
|
while(true)
|
{
|
if(! this._is_local())
|
{
|
org.omg.CORBA.portable.InputStream _is = null;
|
org.omg.CORBA.portable.OutputStream _os = null;
|
try
|
{
|
_os = _request( "getQTDSByBtmName", true);
|
java.lang.String tmpResult1176 = btmName;
|
_os.write_wstring( tmpResult1176 );
|
_is = _invoke(_os);
|
com.vci.corba.qt.data.QTD[] _result = com.vci.corba.qt.data.QTDArrayHelper.read(_is);
|
return _result;
|
}
|
catch( org.omg.CORBA.portable.RemarshalException _rx )
|
{
|
continue;
|
}
|
catch( org.omg.CORBA.portable.ApplicationException _ax )
|
{
|
String _id = _ax.getId();
|
try
|
{
|
if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0"))
|
{
|
throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream());
|
}
|
else
|
{
|
throw new RuntimeException("Unexpected exception " + _id );
|
}
|
}
|
finally
|
{
|
try
|
{
|
_ax.getInputStream().close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
}
|
finally
|
{
|
if (_os != null)
|
{
|
try
|
{
|
_os.close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
this._releaseReply(_is);
|
}
|
}
|
else
|
{
|
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getQTDSByBtmName", _opsClass );
|
if( _so == null )
|
continue;
|
QTDServiceOperations _localServant = (QTDServiceOperations)_so.servant;
|
com.vci.corba.qt.data.QTD[] _result;
|
try
|
{
|
_result = _localServant.getQTDSByBtmName(btmName);
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
|
return _result;
|
}
|
catch (com.vci.corba.common.VCIError ex)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex);
|
throw ex;
|
}
|
catch (RuntimeException re)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
|
throw re;
|
}
|
catch (java.lang.Error err)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
|
throw err;
|
}
|
finally
|
{
|
_servant_postinvoke(_so);
|
}
|
}
|
|
}
|
|
}
|
|
public com.vci.corba.qt.data.QTD[] getAllQTDS() throws com.vci.corba.common.VCIError
|
{
|
while(true)
|
{
|
if(! this._is_local())
|
{
|
org.omg.CORBA.portable.InputStream _is = null;
|
org.omg.CORBA.portable.OutputStream _os = null;
|
try
|
{
|
_os = _request( "getAllQTDS", true);
|
_is = _invoke(_os);
|
com.vci.corba.qt.data.QTD[] _result = com.vci.corba.qt.data.QTDArrayHelper.read(_is);
|
return _result;
|
}
|
catch( org.omg.CORBA.portable.RemarshalException _rx )
|
{
|
continue;
|
}
|
catch( org.omg.CORBA.portable.ApplicationException _ax )
|
{
|
String _id = _ax.getId();
|
try
|
{
|
if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0"))
|
{
|
throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream());
|
}
|
else
|
{
|
throw new RuntimeException("Unexpected exception " + _id );
|
}
|
}
|
finally
|
{
|
try
|
{
|
_ax.getInputStream().close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
}
|
finally
|
{
|
if (_os != null)
|
{
|
try
|
{
|
_os.close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
this._releaseReply(_is);
|
}
|
}
|
else
|
{
|
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getAllQTDS", _opsClass );
|
if( _so == null )
|
continue;
|
QTDServiceOperations _localServant = (QTDServiceOperations)_so.servant;
|
com.vci.corba.qt.data.QTD[] _result;
|
try
|
{
|
_result = _localServant.getAllQTDS();
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
|
return _result;
|
}
|
catch (com.vci.corba.common.VCIError ex)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex);
|
throw ex;
|
}
|
catch (RuntimeException re)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
|
throw re;
|
}
|
catch (java.lang.Error err)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
|
throw err;
|
}
|
finally
|
{
|
_servant_postinvoke(_so);
|
}
|
}
|
|
}
|
|
}
|
|
public com.vci.corba.qt.data.QTD[] getAllBTMQTDS() throws com.vci.corba.common.VCIError
|
{
|
while(true)
|
{
|
if(! this._is_local())
|
{
|
org.omg.CORBA.portable.InputStream _is = null;
|
org.omg.CORBA.portable.OutputStream _os = null;
|
try
|
{
|
_os = _request( "getAllBTMQTDS", true);
|
_is = _invoke(_os);
|
com.vci.corba.qt.data.QTD[] _result = com.vci.corba.qt.data.QTDArrayHelper.read(_is);
|
return _result;
|
}
|
catch( org.omg.CORBA.portable.RemarshalException _rx )
|
{
|
continue;
|
}
|
catch( org.omg.CORBA.portable.ApplicationException _ax )
|
{
|
String _id = _ax.getId();
|
try
|
{
|
if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0"))
|
{
|
throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream());
|
}
|
else
|
{
|
throw new RuntimeException("Unexpected exception " + _id );
|
}
|
}
|
finally
|
{
|
try
|
{
|
_ax.getInputStream().close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
}
|
finally
|
{
|
if (_os != null)
|
{
|
try
|
{
|
_os.close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
this._releaseReply(_is);
|
}
|
}
|
else
|
{
|
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getAllBTMQTDS", _opsClass );
|
if( _so == null )
|
continue;
|
QTDServiceOperations _localServant = (QTDServiceOperations)_so.servant;
|
com.vci.corba.qt.data.QTD[] _result;
|
try
|
{
|
_result = _localServant.getAllBTMQTDS();
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
|
return _result;
|
}
|
catch (com.vci.corba.common.VCIError ex)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex);
|
throw ex;
|
}
|
catch (RuntimeException re)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
|
throw re;
|
}
|
catch (java.lang.Error err)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
|
throw err;
|
}
|
finally
|
{
|
_servant_postinvoke(_so);
|
}
|
}
|
|
}
|
|
}
|
|
public com.vci.corba.qt.data.QTD[] getQTDSByLinkTypeName(java.lang.String linkTypeName) throws com.vci.corba.common.VCIError
|
{
|
while(true)
|
{
|
if(! this._is_local())
|
{
|
org.omg.CORBA.portable.InputStream _is = null;
|
org.omg.CORBA.portable.OutputStream _os = null;
|
try
|
{
|
_os = _request( "getQTDSByLinkTypeName", true);
|
java.lang.String tmpResult1177 = linkTypeName;
|
_os.write_wstring( tmpResult1177 );
|
_is = _invoke(_os);
|
com.vci.corba.qt.data.QTD[] _result = com.vci.corba.qt.data.QTDArrayHelper.read(_is);
|
return _result;
|
}
|
catch( org.omg.CORBA.portable.RemarshalException _rx )
|
{
|
continue;
|
}
|
catch( org.omg.CORBA.portable.ApplicationException _ax )
|
{
|
String _id = _ax.getId();
|
try
|
{
|
if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0"))
|
{
|
throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream());
|
}
|
else
|
{
|
throw new RuntimeException("Unexpected exception " + _id );
|
}
|
}
|
finally
|
{
|
try
|
{
|
_ax.getInputStream().close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
}
|
finally
|
{
|
if (_os != null)
|
{
|
try
|
{
|
_os.close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
this._releaseReply(_is);
|
}
|
}
|
else
|
{
|
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getQTDSByLinkTypeName", _opsClass );
|
if( _so == null )
|
continue;
|
QTDServiceOperations _localServant = (QTDServiceOperations)_so.servant;
|
com.vci.corba.qt.data.QTD[] _result;
|
try
|
{
|
_result = _localServant.getQTDSByLinkTypeName(linkTypeName);
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
|
return _result;
|
}
|
catch (com.vci.corba.common.VCIError ex)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex);
|
throw ex;
|
}
|
catch (RuntimeException re)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
|
throw re;
|
}
|
catch (java.lang.Error err)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
|
throw err;
|
}
|
finally
|
{
|
_servant_postinvoke(_so);
|
}
|
}
|
|
}
|
|
}
|
|
public com.vci.corba.qt.data.QTD[] getAllLinkQTDS() throws com.vci.corba.common.VCIError
|
{
|
while(true)
|
{
|
if(! this._is_local())
|
{
|
org.omg.CORBA.portable.InputStream _is = null;
|
org.omg.CORBA.portable.OutputStream _os = null;
|
try
|
{
|
_os = _request( "getAllLinkQTDS", true);
|
_is = _invoke(_os);
|
com.vci.corba.qt.data.QTD[] _result = com.vci.corba.qt.data.QTDArrayHelper.read(_is);
|
return _result;
|
}
|
catch( org.omg.CORBA.portable.RemarshalException _rx )
|
{
|
continue;
|
}
|
catch( org.omg.CORBA.portable.ApplicationException _ax )
|
{
|
String _id = _ax.getId();
|
try
|
{
|
if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0"))
|
{
|
throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream());
|
}
|
else
|
{
|
throw new RuntimeException("Unexpected exception " + _id );
|
}
|
}
|
finally
|
{
|
try
|
{
|
_ax.getInputStream().close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
}
|
finally
|
{
|
if (_os != null)
|
{
|
try
|
{
|
_os.close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
this._releaseReply(_is);
|
}
|
}
|
else
|
{
|
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getAllLinkQTDS", _opsClass );
|
if( _so == null )
|
continue;
|
QTDServiceOperations _localServant = (QTDServiceOperations)_so.servant;
|
com.vci.corba.qt.data.QTD[] _result;
|
try
|
{
|
_result = _localServant.getAllLinkQTDS();
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
|
return _result;
|
}
|
catch (com.vci.corba.common.VCIError ex)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex);
|
throw ex;
|
}
|
catch (RuntimeException re)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
|
throw re;
|
}
|
catch (java.lang.Error err)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
|
throw err;
|
}
|
finally
|
{
|
_servant_postinvoke(_so);
|
}
|
}
|
|
}
|
|
}
|
|
public boolean addQTD(com.vci.corba.qt.data.QTD qtdObj) throws com.vci.corba.common.VCIError
|
{
|
while(true)
|
{
|
if(! this._is_local())
|
{
|
org.omg.CORBA.portable.InputStream _is = null;
|
org.omg.CORBA.portable.OutputStream _os = null;
|
try
|
{
|
_os = _request( "addQTD", true);
|
com.vci.corba.qt.data.QTDHelper.write(_os,qtdObj);
|
_is = _invoke(_os);
|
boolean _result = _is.read_boolean();
|
return _result;
|
}
|
catch( org.omg.CORBA.portable.RemarshalException _rx )
|
{
|
continue;
|
}
|
catch( org.omg.CORBA.portable.ApplicationException _ax )
|
{
|
String _id = _ax.getId();
|
try
|
{
|
if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0"))
|
{
|
throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream());
|
}
|
else
|
{
|
throw new RuntimeException("Unexpected exception " + _id );
|
}
|
}
|
finally
|
{
|
try
|
{
|
_ax.getInputStream().close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
}
|
finally
|
{
|
if (_os != null)
|
{
|
try
|
{
|
_os.close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
this._releaseReply(_is);
|
}
|
}
|
else
|
{
|
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "addQTD", _opsClass );
|
if( _so == null )
|
continue;
|
QTDServiceOperations _localServant = (QTDServiceOperations)_so.servant;
|
boolean _result;
|
try
|
{
|
_result = _localServant.addQTD(qtdObj);
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
|
return _result;
|
}
|
catch (com.vci.corba.common.VCIError ex)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex);
|
throw ex;
|
}
|
catch (RuntimeException re)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
|
throw re;
|
}
|
catch (java.lang.Error err)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
|
throw err;
|
}
|
finally
|
{
|
_servant_postinvoke(_so);
|
}
|
}
|
|
}
|
|
}
|
|
public com.vci.corba.qt.data.QTD getQTDByName(java.lang.String name) throws com.vci.corba.common.VCIError
|
{
|
while(true)
|
{
|
if(! this._is_local())
|
{
|
org.omg.CORBA.portable.InputStream _is = null;
|
org.omg.CORBA.portable.OutputStream _os = null;
|
try
|
{
|
_os = _request( "getQTDByName", true);
|
java.lang.String tmpResult1178 = name;
|
_os.write_wstring( tmpResult1178 );
|
_is = _invoke(_os);
|
com.vci.corba.qt.data.QTD _result = com.vci.corba.qt.data.QTDHelper.read(_is);
|
return _result;
|
}
|
catch( org.omg.CORBA.portable.RemarshalException _rx )
|
{
|
continue;
|
}
|
catch( org.omg.CORBA.portable.ApplicationException _ax )
|
{
|
String _id = _ax.getId();
|
try
|
{
|
if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0"))
|
{
|
throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream());
|
}
|
else
|
{
|
throw new RuntimeException("Unexpected exception " + _id );
|
}
|
}
|
finally
|
{
|
try
|
{
|
_ax.getInputStream().close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
}
|
finally
|
{
|
if (_os != null)
|
{
|
try
|
{
|
_os.close();
|
}
|
catch (java.io.IOException e)
|
{
|
throw new RuntimeException("Unexpected exception " + e.toString() );
|
}
|
}
|
this._releaseReply(_is);
|
}
|
}
|
else
|
{
|
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getQTDByName", _opsClass );
|
if( _so == null )
|
continue;
|
QTDServiceOperations _localServant = (QTDServiceOperations)_so.servant;
|
com.vci.corba.qt.data.QTD _result;
|
try
|
{
|
_result = _localServant.getQTDByName(name);
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
|
return _result;
|
}
|
catch (com.vci.corba.common.VCIError ex)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex);
|
throw ex;
|
}
|
catch (RuntimeException re)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
|
throw re;
|
}
|
catch (java.lang.Error err)
|
{
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
|
throw err;
|
}
|
finally
|
{
|
_servant_postinvoke(_so);
|
}
|
}
|
|
}
|
|
}
|
|
}
|