package com.vci.corba.qt;
|
|
|
/**
|
* Generated from IDL interface "QTService".
|
*
|
* @author JacORB IDL compiler V 3.9
|
* @version generated at 2022-12-23 15:42:24
|
*/
|
|
public class _QTServiceStub
|
extends org.omg.CORBA.portable.ObjectImpl
|
implements com.vci.corba.qt.QTService
|
{
|
/** Serial version UID. */
|
private static final long serialVersionUID = 1L;
|
private String[] ids = {"IDL:com/vci/corba/qt/QTService:1.0"};
|
public String[] _ids()
|
{
|
return ids;
|
}
|
|
public final static java.lang.Class _opsClass = com.vci.corba.qt.QTServiceOperations.class;
|
public boolean deleteQTS(java.lang.String[] qtNames) 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( "deleteQTS", true);
|
com.vci.corba.common.data.WStringArrayHelper.write(_os,qtNames);
|
_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( "deleteQTS", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
boolean _result;
|
try
|
{
|
_result = _localServant.deleteQTS(qtNames);
|
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 java.lang.String[][] queryBySqlAndValuesWithoutKey(java.lang.String sql, java.lang.String[] paramValues) 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( "queryBySqlAndValuesWithoutKey", true);
|
java.lang.String tmpResult1179 = sql;
|
_os.write_wstring( tmpResult1179 );
|
com.vci.corba.common.data.WStringArrayHelper.write(_os,paramValues);
|
_is = _invoke(_os);
|
java.lang.String[][] _result = com.vci.corba.common.data.WStringArray2DHelper.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( "queryBySqlAndValuesWithoutKey", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
java.lang.String[][] _result;
|
try
|
{
|
_result = _localServant.queryBySqlAndValuesWithoutKey(sql,paramValues);
|
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.QTWrapper[] getQTS(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( "getQTS", true);
|
java.lang.String tmpResult1180 = btmName;
|
_os.write_wstring( tmpResult1180 );
|
_is = _invoke(_os);
|
com.vci.corba.qt.data.QTWrapper[] _result = com.vci.corba.qt.data.QTWrapperArrayHelper.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( "getQTS", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
com.vci.corba.qt.data.QTWrapper[] _result;
|
try
|
{
|
_result = _localServant.getQTS(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.BOAndLO[] getBOAndLOS(java.lang.String qtName, java.lang.String qtText, java.lang.String btmOId) 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( "getBOAndLOS", true);
|
java.lang.String tmpResult1181 = qtName;
|
_os.write_wstring( tmpResult1181 );
|
java.lang.String tmpResult1182 = qtText;
|
_os.write_wstring( tmpResult1182 );
|
java.lang.String tmpResult1183 = btmOId;
|
_os.write_wstring( tmpResult1183 );
|
_is = _invoke(_os);
|
com.vci.corba.qt.data.BOAndLO[] _result = com.vci.corba.qt.data.BOAndLOArrayHelper.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( "getBOAndLOS", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
com.vci.corba.qt.data.BOAndLO[] _result;
|
try
|
{
|
_result = _localServant.getBOAndLOS(qtName,qtText,btmOId);
|
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.KV[][] queryBySql(java.lang.String sql) 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( "queryBySql", true);
|
java.lang.String tmpResult1184 = sql;
|
_os.write_wstring( tmpResult1184 );
|
_is = _invoke(_os);
|
com.vci.corba.qt.data.KV[][] _result = com.vci.corba.qt.data.KVArray2DHelper.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( "queryBySql", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
com.vci.corba.qt.data.KV[][] _result;
|
try
|
{
|
_result = _localServant.queryBySql(sql);
|
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 updateQT() 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( "updateQT", true);
|
_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( "updateQT", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
boolean _result;
|
try
|
{
|
_result = _localServant.updateQT();
|
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 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 tmpResult1185 = name;
|
_os.write_wstring( tmpResult1185 );
|
_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;
|
QTServiceOperations _localServant = (QTServiceOperations)_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 com.vci.corba.qt.data.QTWrapper getQT(java.lang.String qtName) 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( "getQT", true);
|
java.lang.String tmpResult1186 = qtName;
|
_os.write_wstring( tmpResult1186 );
|
_is = _invoke(_os);
|
com.vci.corba.qt.data.QTWrapper _result = com.vci.corba.qt.data.QTWrapperHelper.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( "getQT", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
com.vci.corba.qt.data.QTWrapper _result;
|
try
|
{
|
_result = _localServant.getQT(qtName);
|
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 saveQT(com.vci.corba.qt.data.QTWrapper qtw) 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( "saveQT", true);
|
com.vci.corba.qt.data.QTWrapperHelper.write(_os,qtw);
|
_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( "saveQT", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
boolean _result;
|
try
|
{
|
_result = _localServant.saveQT(qtw);
|
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.omd.data.BusinessObject[] findBTMObjectsByTypeNameAndVersion(java.lang.String typeName, int version) 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( "findBTMObjectsByTypeNameAndVersion", true);
|
java.lang.String tmpResult1187 = typeName;
|
_os.write_wstring( tmpResult1187 );
|
_os.write_long(version);
|
_is = _invoke(_os);
|
com.vci.corba.omd.data.BusinessObject[] _result = com.vci.corba.omd.data.BusinessObjectListHelper.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( "findBTMObjectsByTypeNameAndVersion", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
com.vci.corba.omd.data.BusinessObject[] _result;
|
try
|
{
|
_result = _localServant.findBTMObjectsByTypeNameAndVersion(typeName,version);
|
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.omd.data.BusinessObject[] findBTMObjectsV3(java.lang.String qtName, java.lang.String qtText, org.omg.CORBA.IntHolder count, com.vci.corba.qt.data.BtmRefQueryOption[] btmRefQueryOptions) 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( "findBTMObjectsV3", true);
|
java.lang.String tmpResult1188 = qtName;
|
_os.write_wstring( tmpResult1188 );
|
java.lang.String tmpResult1189 = qtText;
|
_os.write_wstring( tmpResult1189 );
|
com.vci.corba.qt.data.BtmRefQueryOptionArrayHelper.write(_os,btmRefQueryOptions);
|
_is = _invoke(_os);
|
com.vci.corba.omd.data.BusinessObject[] _result = com.vci.corba.omd.data.BusinessObjectListHelper.read(_is);
|
count.value = _is.read_long();
|
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( "findBTMObjectsV3", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
com.vci.corba.omd.data.BusinessObject[] _result;
|
try
|
{
|
_result = _localServant.findBTMObjectsV3(qtName,qtText,count,btmRefQueryOptions);
|
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.omd.data.LinkObject[] findLTObjects(java.lang.String qtName, java.lang.String qtText) 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( "findLTObjects", true);
|
java.lang.String tmpResult1190 = qtName;
|
_os.write_wstring( tmpResult1190 );
|
java.lang.String tmpResult1191 = qtText;
|
_os.write_wstring( tmpResult1191 );
|
_is = _invoke(_os);
|
com.vci.corba.omd.data.LinkObject[] _result = com.vci.corba.omd.data.LinkObjectListHelper.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( "findLTObjects", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
com.vci.corba.omd.data.LinkObject[] _result;
|
try
|
{
|
_result = _localServant.findLTObjects(qtName,qtText);
|
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.omd.data.BusinessObject[] findBTMObjectsV2(java.lang.String qtName, java.lang.String qtText, org.omg.CORBA.IntHolder count) 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( "findBTMObjectsV2", true);
|
java.lang.String tmpResult1192 = qtName;
|
_os.write_wstring( tmpResult1192 );
|
java.lang.String tmpResult1193 = qtText;
|
_os.write_wstring( tmpResult1193 );
|
_is = _invoke(_os);
|
com.vci.corba.omd.data.BusinessObject[] _result = com.vci.corba.omd.data.BusinessObjectListHelper.read(_is);
|
count.value = _is.read_long();
|
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( "findBTMObjectsV2", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
com.vci.corba.omd.data.BusinessObject[] _result;
|
try
|
{
|
_result = _localServant.findBTMObjectsV2(qtName,qtText,count);
|
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.omd.data.LinkObject[] findLTObjectsV2(java.lang.String qtName, java.lang.String qtText, org.omg.CORBA.IntHolder count) 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( "findLTObjectsV2", true);
|
java.lang.String tmpResult1194 = qtName;
|
_os.write_wstring( tmpResult1194 );
|
java.lang.String tmpResult1195 = qtText;
|
_os.write_wstring( tmpResult1195 );
|
_is = _invoke(_os);
|
com.vci.corba.omd.data.LinkObject[] _result = com.vci.corba.omd.data.LinkObjectListHelper.read(_is);
|
count.value = _is.read_long();
|
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( "findLTObjectsV2", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
com.vci.corba.omd.data.LinkObject[] _result;
|
try
|
{
|
_result = _localServant.findLTObjectsV2(qtName,qtText,count);
|
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 java.lang.String[][] queryBySqlWithoutKey(java.lang.String sql) 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( "queryBySqlWithoutKey", true);
|
java.lang.String tmpResult1196 = sql;
|
_os.write_wstring( tmpResult1196 );
|
_is = _invoke(_os);
|
java.lang.String[][] _result = com.vci.corba.common.data.WStringArray2DHelper.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( "queryBySqlWithoutKey", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
java.lang.String[][] _result;
|
try
|
{
|
_result = _localServant.queryBySqlWithoutKey(sql);
|
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.omd.data.BusinessObject[] findBTMObjectsV4(java.lang.String invocationInfo, java.lang.String qtName, java.lang.String qtText, org.omg.CORBA.IntHolder count, com.vci.corba.qt.data.BtmRefQueryOption[] btmRefQueryOptions) 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( "findBTMObjectsV4", true);
|
java.lang.String tmpResult1197 = invocationInfo;
|
_os.write_wstring( tmpResult1197 );
|
java.lang.String tmpResult1198 = qtName;
|
_os.write_wstring( tmpResult1198 );
|
java.lang.String tmpResult1199 = qtText;
|
_os.write_wstring( tmpResult1199 );
|
com.vci.corba.qt.data.BtmRefQueryOptionArrayHelper.write(_os,btmRefQueryOptions);
|
_is = _invoke(_os);
|
com.vci.corba.omd.data.BusinessObject[] _result = com.vci.corba.omd.data.BusinessObjectListHelper.read(_is);
|
count.value = _is.read_long();
|
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( "findBTMObjectsV4", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
com.vci.corba.omd.data.BusinessObject[] _result;
|
try
|
{
|
_result = _localServant.findBTMObjectsV4(invocationInfo,qtName,qtText,count,btmRefQueryOptions);
|
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.QTWrapper[] getAllQTS() 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( "getAllQTS", true);
|
_is = _invoke(_os);
|
com.vci.corba.qt.data.QTWrapper[] _result = com.vci.corba.qt.data.QTWrapperArrayHelper.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( "getAllQTS", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
com.vci.corba.qt.data.QTWrapper[] _result;
|
try
|
{
|
_result = _localServant.getAllQTS();
|
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 int findTotalCount(java.lang.String qtName, java.lang.String qtText) 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( "findTotalCount", true);
|
java.lang.String tmpResult1200 = qtName;
|
_os.write_wstring( tmpResult1200 );
|
java.lang.String tmpResult1201 = qtText;
|
_os.write_wstring( tmpResult1201 );
|
_is = _invoke(_os);
|
int _result = _is.read_long();
|
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( "findTotalCount", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
int _result;
|
try
|
{
|
_result = _localServant.findTotalCount(qtName,qtText);
|
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.omd.data.BusinessObject[] findBTMObjects(java.lang.String qtName, java.lang.String qtText) 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( "findBTMObjects", true);
|
java.lang.String tmpResult1202 = qtName;
|
_os.write_wstring( tmpResult1202 );
|
java.lang.String tmpResult1203 = qtText;
|
_os.write_wstring( tmpResult1203 );
|
_is = _invoke(_os);
|
com.vci.corba.omd.data.BusinessObject[] _result = com.vci.corba.omd.data.BusinessObjectListHelper.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( "findBTMObjects", _opsClass );
|
if( _so == null )
|
continue;
|
QTServiceOperations _localServant = (QTServiceOperations)_so.servant;
|
com.vci.corba.omd.data.BusinessObject[] _result;
|
try
|
{
|
_result = _localServant.findBTMObjects(qtName,qtText);
|
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);
|
}
|
}
|
|
}
|
|
}
|
|
}
|