public Method getMethod() {
return metadata.getMethod();
}
public Object execute(CmpEntityBeanContext ctx, Object[] args) throws FinderException {
JDBCStoreManager2 manager = command.getStoreManager();
final CmpEntityBeanComponent selectedComponent = manager.getComponent();
JDBCQueryCommand.EntityProxyFactory factory = new JDBCQueryCommand.EntityProxyFactory() {
public Object getEntityObject(Object primaryKey) {
return metadata.isResultTypeMappingLocal() && selectedComponent.getLocalHomeClass() != null ?
selectedComponent.getEJBLocalObject(primaryKey) : selectedComponent.getEJBObject(primaryKey);
}