public Object getPrimaryKey(Invocation mi) throws RemoteException { return mi.getId(); }
/** * 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())); }
Object id = invocation.getId(); Connection conn = (Connection) connectionMap.get(id); if( conn == null ) methodClass.isAssignableFrom(CallableStatement.class)) Object id = invocation.getId(); Statement stmt = (Statement) statementMap.get(id); if( stmt == null ) Object id = invocation.getId(); ResultSet results = (ResultSet) resultSetMap.get(id); if( results == null ) Object id = invocation.getId(); DatabaseMetaData dbMetaData = (DatabaseMetaData) databaseMetaDataMap.get(id); if(dbMetaData == null)
public Object invoke(Invocation invocation) throws Exception { Object result = null; if(invocation instanceof MarshalledInvocation){ MarshalledInvocation mi = (MarshalledInvocation)invocation; mi.setMethodMap(marshalledInvocationMapping); } final Method targetMethod = invocation.getMethod(); final Class targetClass = targetMethod.getDeclaringClass(); final Object[] targetArguments = invocation.getArguments(); final Object retVal = internalInvoke(targetClass, targetMethod, targetArguments, invocation.getId()); if(!(retVal instanceof Serializable) && retVal != null){ log.debug("Creating proxy for instance " + retVal); result = createProxy(retVal); } return result; }
try if (trace) log.trace("Begin schedule, key=" + mi.getId());
Object key = mi.getId();
Object key = mi.getId();
Object key = mi.getId();
Object methodID = mi.getId(); EnterpriseContext ctx = null;