package com.vci.corba.volume;
|
|
|
/**
|
* Generated from IDL interface "VolumeFactory".
|
*
|
* @author JacORB IDL compiler V 3.9
|
* @version generated at 2022-12-23 15:42:24
|
*/
|
|
public abstract class VolumeFactoryPOA
|
extends org.omg.PortableServer.Servant
|
implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.volume.VolumeFactoryOperations
|
{
|
static private final java.util.HashMap<String,Integer> m_opsHash = new java.util.HashMap<String,Integer>();
|
static
|
{
|
m_opsHash.put ( "getTransmitBlockSize", Integer.valueOf(0));
|
m_opsHash.put ( "getIsvalidVolumeName", Integer.valueOf(1));
|
m_opsHash.put ( "checkDelIsvalid", Integer.valueOf(2));
|
m_opsHash.put ( "fetchVolumeInfoByIds", Integer.valueOf(3));
|
m_opsHash.put ( "savePvolume", Integer.valueOf(4));
|
m_opsHash.put ( "deletePvolume", Integer.valueOf(5));
|
m_opsHash.put ( "updatePvolume", Integer.valueOf(6));
|
m_opsHash.put ( "updatePvolumeHql", Integer.valueOf(7));
|
m_opsHash.put ( "getIsvalidVolumeNameInServerEnv", Integer.valueOf(8));
|
m_opsHash.put ( "getDefaultVolume", Integer.valueOf(9));
|
m_opsHash.put ( "getPvolumesPage", Integer.valueOf(10));
|
m_opsHash.put ( "getDocumentVolume", Integer.valueOf(11));
|
m_opsHash.put ( "getAllPvolumes", Integer.valueOf(12));
|
}
|
private String[] ids = {"IDL:com/vci/corba/volume/VolumeFactory:1.0"};
|
public com.vci.corba.volume.VolumeFactory _this()
|
{
|
org.omg.CORBA.Object __o = _this_object() ;
|
com.vci.corba.volume.VolumeFactory __r = com.vci.corba.volume.VolumeFactoryHelper.narrow(__o);
|
return __r;
|
}
|
public com.vci.corba.volume.VolumeFactory _this(org.omg.CORBA.ORB orb)
|
{
|
org.omg.CORBA.Object __o = _this_object(orb) ;
|
com.vci.corba.volume.VolumeFactory __r = com.vci.corba.volume.VolumeFactoryHelper.narrow(__o);
|
return __r;
|
}
|
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
|
throws org.omg.CORBA.SystemException
|
{
|
org.omg.CORBA.portable.OutputStream _out = null;
|
// do something
|
// quick lookup of operation
|
java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
|
if ( null == opsIndex )
|
throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
|
switch ( opsIndex.intValue() )
|
{
|
case 0: // getTransmitBlockSize
|
{
|
try
|
{
|
_out = handler.createReply();
|
_out.write_long(getTransmitBlockSize());
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 1: // getIsvalidVolumeName
|
{
|
try
|
{
|
_out = handler.createReply();
|
com.vci.corba.volume.data.PvolumeInfoHelper.write(_out,getIsvalidVolumeName());
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 2: // checkDelIsvalid
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(checkDelIsvalid(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 3: // fetchVolumeInfoByIds
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_long(fetchVolumeInfoByIds(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 4: // savePvolume
|
{
|
try
|
{
|
com.vci.corba.volume.data.PvolumeInfo _arg0=com.vci.corba.volume.data.PvolumeInfoHelper.read(_input);
|
com.vci.corba.common.data.UserEntityInfo _arg1=com.vci.corba.framework.data.UserEntityInfoHelper.read(_input);
|
_out = handler.createReply();
|
java.lang.String tmpResult405 = savePvolume(_arg0,_arg1);
|
_out.write_wstring( tmpResult405 );
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 5: // deletePvolume
|
{
|
try
|
{
|
java.lang.String[] _arg0=com.vci.corba.common.data.WStringArrayHelper.read(_input);
|
com.vci.corba.common.data.UserEntityInfo _arg1=com.vci.corba.framework.data.UserEntityInfoHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(deletePvolume(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 6: // updatePvolume
|
{
|
try
|
{
|
com.vci.corba.volume.data.PvolumeInfo _arg0=com.vci.corba.volume.data.PvolumeInfoHelper.read(_input);
|
com.vci.corba.common.data.UserEntityInfo _arg1=com.vci.corba.framework.data.UserEntityInfoHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(updatePvolume(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 7: // updatePvolumeHql
|
{
|
try
|
{
|
com.vci.corba.common.data.UserEntityInfo _arg0=com.vci.corba.framework.data.UserEntityInfoHelper.read(_input);
|
_out = handler.createReply();
|
updatePvolumeHql(_arg0);
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 8: // getIsvalidVolumeNameInServerEnv
|
{
|
try
|
{
|
_out = handler.createReply();
|
com.vci.corba.volume.data.PvolumeInfoHelper.write(_out,getIsvalidVolumeNameInServerEnv());
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 9: // getDefaultVolume
|
{
|
try
|
{
|
_out = handler.createReply();
|
com.vci.corba.volume.data.PvolumeInfoHelper.write(_out,getDefaultVolume());
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 10: // getPvolumesPage
|
{
|
try
|
{
|
int _arg0=_input.read_long();
|
int _arg1=_input.read_long();
|
_out = handler.createReply();
|
com.vci.corba.volume.data.PvolumeInfoListHelper.write(_out,getPvolumesPage(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 11: // getDocumentVolume
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.volume.data.PvolumeInfoHelper.write(_out,getDocumentVolume(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 12: // getAllPvolumes
|
{
|
try
|
{
|
_out = handler.createReply();
|
com.vci.corba.volume.data.PvolumeInfoListHelper.write(_out,getAllPvolumes());
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
}
|
return _out;
|
}
|
|
public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
|
{
|
return ids;
|
}
|
}
|