package com.vci.corba.gloablequery;
|
|
|
/**
|
* Generated from IDL interface "DBGloableQueryService".
|
*
|
* @author JacORB IDL compiler V 3.9
|
* @version generated at 2022-12-23 15:42:24
|
*/
|
|
public class _DBGloableQueryServiceStub
|
extends org.omg.CORBA.portable.ObjectImpl
|
implements com.vci.corba.gloablequery.DBGloableQueryService
|
{
|
/** Serial version UID. */
|
private static final long serialVersionUID = 1L;
|
private String[] ids = {"IDL:com/vci/corba/gloablequery/DBGloableQueryService:1.0"};
|
public String[] _ids()
|
{
|
return ids;
|
}
|
|
public final static java.lang.Class _opsClass = com.vci.corba.gloablequery.DBGloableQueryServiceOperations.class;
|
public void initDataIndexes(java.lang.String indexbaseid) 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( "initDataIndexes", true);
|
java.lang.String tmpResult1204 = indexbaseid;
|
_os.write_wstring( tmpResult1204 );
|
_is = _invoke(_os);
|
return;
|
}
|
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( "initDataIndexes", _opsClass );
|
if( _so == null )
|
continue;
|
DBGloableQueryServiceOperations _localServant = (DBGloableQueryServiceOperations)_so.servant;
|
try
|
{
|
_localServant.initDataIndexes(indexbaseid);
|
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
|
((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
|
return;
|
}
|
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 searchPageData(java.lang.String queryCondition, java.lang.String orderCondition, java.lang.String indexbaseid, int pageNo, int pageSize) 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( "searchPageData", true);
|
java.lang.String tmpResult1205 = queryCondition;
|
_os.write_wstring( tmpResult1205 );
|
java.lang.String tmpResult1206 = orderCondition;
|
_os.write_wstring( tmpResult1206 );
|
java.lang.String tmpResult1207 = indexbaseid;
|
_os.write_wstring( tmpResult1207 );
|
_os.write_long(pageNo);
|
_os.write_long(pageSize);
|
_is = _invoke(_os);
|
java.lang.String _result = _is.read_wstring();
|
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( "searchPageData", _opsClass );
|
if( _so == null )
|
continue;
|
DBGloableQueryServiceOperations _localServant = (DBGloableQueryServiceOperations)_so.servant;
|
java.lang.String _result;
|
try
|
{
|
_result = _localServant.searchPageData(queryCondition,orderCondition,indexbaseid,pageNo,pageSize);
|
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 searchData(java.lang.String queryCondition, java.lang.String orderCondition, java.lang.String indexbaseid) 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( "searchData", true);
|
java.lang.String tmpResult1208 = queryCondition;
|
_os.write_wstring( tmpResult1208 );
|
java.lang.String tmpResult1209 = orderCondition;
|
_os.write_wstring( tmpResult1209 );
|
java.lang.String tmpResult1210 = indexbaseid;
|
_os.write_wstring( tmpResult1210 );
|
_is = _invoke(_os);
|
java.lang.String _result = _is.read_wstring();
|
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( "searchData", _opsClass );
|
if( _so == null )
|
continue;
|
DBGloableQueryServiceOperations _localServant = (DBGloableQueryServiceOperations)_so.servant;
|
java.lang.String _result;
|
try
|
{
|
_result = _localServant.searchData(queryCondition,orderCondition,indexbaseid);
|
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 addDBKeyWords(java.lang.String indexbaseid, java.lang.String[] word, java.lang.String methodType) 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( "addDBKeyWords", true);
|
java.lang.String tmpResult1211 = indexbaseid;
|
_os.write_wstring( tmpResult1211 );
|
com.vci.corba.common.data.WStringArrayHelper.write(_os,word);
|
java.lang.String tmpResult1212 = methodType;
|
_os.write_wstring( tmpResult1212 );
|
_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( "addDBKeyWords", _opsClass );
|
if( _so == null )
|
continue;
|
DBGloableQueryServiceOperations _localServant = (DBGloableQueryServiceOperations)_so.servant;
|
boolean _result;
|
try
|
{
|
_result = _localServant.addDBKeyWords(indexbaseid,word,methodType);
|
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);
|
}
|
}
|
|
}
|
|
}
|
|
}
|