【Java开源代码栏目提醒】:网学会员--在 Java开源代码编辑为广大网友搜集整理了:_EJBHome_Stub.java绩等信息,祝愿广大网友取得需要的信息,参考学习。
// Stub class generated by rmic, do not edit.
// Contents subject to change without notice.
package org.omg.stub.javax.ejb;
import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.UnexpectedException;
import javax.ejb.EJBHome;
import javax.ejb.EJBMetaData;
import javax.ejb.Handle;
import javax.ejb.HomeHandle;
import javax.ejb.RemoveException;
import javax.rmi.CORBA.Stub;
import javax.rmi.CORBA.Util;
import org.omg.CORBA.SystemException;
import org.omg.CORBA.portable.ApplicationException;
import org.omg.CORBA.portable.RemarshalException;
import org.omg.CORBA.portable.ServantObject;
public class _EJBHome_Stub extends Stub implements EJBHome {
private static final String[] _type_ids = {
"RMI:javax.ejb.EJBHome:0000000000000000"
};
public String[] _ids() {
return _type_ids;
}
public void remove(Handle arg0) throws RemoteException, RemoveException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
org.omg.CORBA.portable.OutputStream out = _request("remove__javax_ejb_Handle", true);
Util.writeAbstractObject(out,arg0);
_invoke(out);
return;
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String id = in.read_string();
if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) {
throw (RemoveException) in.read_value(RemoveException.class);
}
throw new UnexpectedException(id);
} catch (RemarshalException ex) {
remove(arg0);
return;
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("remove__javax_ejb_Handle",javax.ejb.EJBHome.class);
if (so == null) {
remove(arg0);
return;
}
try {
Handle arg0Copy = (Handle) Util.copyObject(arg0,_orb());
((javax.ejb.EJBHome)so.servant).remove(arg0Copy);
return;
} catch (Throwable ex) {
Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
if (exCopy instanceof RemoveException) {
throw (RemoveException)exCopy;
}
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
public void remove(Object arg0) throws RemoteException, RemoveException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
org.omg.CORBA.portable.OutputStream out = _request("remove__java_lang_Object", true);
Util.writeAny(out,arg0);
_invoke(out);
return;
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String id = in.read_string();
if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) {
throw (RemoveException) in.read_value(RemoveException.class);
}
throw new UnexpectedException(id);
} catch (RemarshalException ex) {
remove(arg0);
return;
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("remove__java_lang_Object",javax.ejb.EJBHome.class);
if (so == null) {
remove(arg0);
return;
}
try {
Object arg0Copy = (Object) Util.copyObject(arg0,_orb());
((javax.ejb.EJBHome)so.servant).remove(arg0Copy);
return;
} catch (Throwable ex) {
Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
if (exCopy instanceof RemoveException) {
throw (RemoveException)exCopy;
}
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
public EJBMetaData getEJBMetaData() throws RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
org.omg.CORBA.portable.Outp