【Java开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了Java开源代码-OrderitemPOAInvokeHandler.java的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
package com.borland.samples.ejb;
public class OrderitemPOAInvokeHandler extends com.borland.samples.ejb.OrderitemPOA {
private com.inprise.vbroker.rmi.CORBA.InvocationTarget _target;
private static java.lang.reflect.Method _MethodPtrs[];
private static void initMethodPointers () {
try {
_MethodPtrs = new java.lang.reflect.Method[] {
com.borland.samples.ejb.Orderitem.class.getDeclaredMethod("getQuantity", new Class[]{}),
com.borland.samples.ejb.Orderitem.class.getDeclaredMethod("setQuantity", new Class[]{java.lang.Short.class}),
com.borland.samples.ejb.Orderitem.class.getDeclaredMethod("getOrderid", new Class[]{}),
com.borland.samples.ejb.Orderitem.class.getDeclaredMethod("getInventoryid", new Class[]{}),
};
}
catch (Exception e) {
throw new Error(e.getMessage());
}
}
static {initMethodPointers();}
public OrderitemPOAInvokeHandler (final com.inprise.vbroker.rmi.CORBA.InvocationTarget target) {
this._target = target;
}
public com.inprise.vbroker.rmi.CORBA.InvocationTarget target () {
return this._target;
}
public void target (final com.inprise.vbroker.rmi.CORBA.InvocationTarget target) {
this._target = target;
}
public static java.lang.Short getQuantity (com.inprise.vbroker.rmi.CORBA.InvocationTarget _target)
throws java.rmi.RemoteException {
java.lang.Object[] _args = {};
try {
java.lang.Object _result = _target.invoke(_MethodPtrs[0], _args);
return (java.lang.Short)_result;
}
catch (java.lang.reflect.InvocationTargetException ite) {
final java.lang.Throwable t = ite.getTargetException();
if (t instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)t;
}
throw new org.omg.CORBA.UNKNOWN(t.getMessage());
}
}
public static void setQuantity (com.inprise.vbroker.rmi.CORBA.InvocationTarget _target,
java.lang.Short quantity)
throws java.rmi.RemoteException {
java.lang.Object[] _args = {quantity};
try {
_target.invoke(_MethodPtrs[1], _args);
}
catch (java.lang.reflect.InvocationTargetException ite) {
final java.lang.Throwable t = ite.getTargetException();
if (t instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)t;
}
throw new org.omg.CORBA.UNKNOWN(t.getMessage());
}
}
public static java.lang.Integer getOrderid (com.inprise.vbroker.rmi.CORBA.InvocationTarget _target)
throws java.rmi.RemoteException {
java.lang.Object[] _args = {};
try {
java.lang.Object _result = _target.invoke(_MethodPtrs[2], _args);
return (java.lang.Integer)_result;
}
catch (java.lang.reflect.InvocationTargetException ite) {
final java.lang.Throwable t = ite.getTargetException();
if (t instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)t;
}
throw new org.omg.CORBA.UNKNOWN(t.getMessage());
}
}
public static java.lang.Integer getInventoryid (com.inprise.vbroker.rmi.CORBA.InvocationTarget _target)
throws java.rmi.RemoteException {
java.lang.Object[] _args = {};
try {
java.lang.Object _result = _target.invoke(_MethodPtrs[3], _args);
return (java.lang.Integer)_result;
}
catch (java.lang.reflect.InvocationTargetException ite) {
final java.lang.Throwable t = ite.getTargetException();
if (t instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)t;
}
throw new org.omg.CORBA.UNKNOWN(t.getMessage());
}
}
public javax.ejb.Handle getHandle ()
throws java.rmi.RemoteException {
return javax.ejb.EJBObjectPOAInvokeHandler.getHandle(_target);
}
public javax.ejb.EJBHome getEJBHome ()
throws java.rmi.RemoteException {
return javax.ejb.EJBObjectPOAInvokeHandler.getEJBHome(_target);
}
public java.lang.Object getPrimaryKey ()
throws java.rmi.RemoteException {
return javax.ejb.EJBObjectPOAInvokeHandler.getPrimaryKey(_target);
}
public void remove ()
throws java.rmi.RemoteException, javax.ejb.RemoveException {
javax.ejb.EJBObjectPOAInvokeHandler.remove(_target);
}
public boolean isIdentical (javax.ejb.EJBObject arg0)
throws java.rmi.RemoteException {
return javax.ejb.EJBObjectPOAInvokeHandler.isIdentical(_target, arg0);
}
public java.lang.Short getQuantity ()
throws java.rmi.RemoteException {
return com.borland.samples.ejb.Orde