public EJBMetaData getEJBMetaDataHome(Invocation mi) throws RemoteException { EJBProxyFactory ci = getProxyFactory(); if (ci == null) { String msg = "No ProxyFactory, check for ProxyFactoryFinderInterceptor"; throw new IllegalStateException(msg); } return ci.getEJBMetaData(); }
public boolean isIdentical(Invocation mi) throws RemoteException { EJBProxyFactory ci = getProxyFactory(); if (ci == null) { String msg = "No ProxyFactory, check for ProxyFactoryFinderInterceptor"; throw new IllegalStateException(msg); } return ci.isIdentical(this, mi); }
/** * @throws IllegalStateException If container invoker is null. */ public EJBHome getEJBHome(Invocation mi) throws RemoteException { EJBProxyFactory ci = getProxyFactory(); if (ci == null) { String msg = "No ProxyFactory, check for ProxyFactoryFinderInterceptor"; throw new IllegalStateException(msg); } return (EJBHome) ci.getEJBHome(); }
/** * A method for the getEJBObject from the handle */ public EJBObject getEJBObject(Invocation mi) throws RemoteException { EJBProxyFactory ci = getProxyFactory(); if (ci == null) { String msg = "No ProxyFactory, check for ProxyFactoryFinderInterceptor"; throw new IllegalStateException(msg); } // All we need is an EJBObject for this Id; return (EJBObject)ci.getEntityEJBObject(((EntityCache) instanceCache).createCacheKey(mi.getId())); }
public Object execute(Object[] args) throws FinderException { JDBCStoreManager2 manager = command.getStoreManager(); GenericEntityObjectFactory factory = (metadata.isResultTypeMappingLocal() ? (GenericEntityObjectFactory)manager.getContainer().getLocalProxyFactory() : manager.getContainer().getProxyFactory()); Object result; switch(returnType) { case SINGLE: result = command.fetchOne(schema, factory, args); if(result == null && getMethod().getReturnType().isPrimitive()) { throw new FinderException( "Cannot return null as a value of primitive type " + getMethod().getReturnType().getName() ); } break; case COLLECTION: result = command.fetchCollection(schema, factory, args); break; default: throw new IllegalStateException("Unexpected return type: " + returnType); } return result; } }
factory = selectedContainer.getProxyFactory();
EJBProxyFactory ci = getProxyFactory(); if (ci == null)
final EJBObject ejbObject = (EJBObject)container.getProxyFactory().getEntityEJBObject(relatedId); ejbObject.remove();
con.getLocalProxyFactory() : con.getProxyFactory();