Examples of execute()


Examples of org.apache.ibatis.binding.MapperMethod.execute()

            // 分页处理
            return new PaginationMapperMethod(declaringInterface, method, sqlSession).execute(args);
        }
        // 原处理方式
        final MapperMethod mapperMethod = new MapperMethod(declaringInterface, method, sqlSession.getConfiguration());
        final Object result = mapperMethod.execute(sqlSession, args);
        if (result == null && method.getReturnType().isPrimitive()) {
            throw new BindingException(
                    "Mapper method '"
                            + method.getName()
                            + "' ("
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.object.autocomplete.AutoCompleteFacet.execute()

            @Override
            protected List<ObjectAdapterMemento> obtainMementos(String term) {
                final ObjectSpecification typeOfSpecification = entityModel.getTypeOfSpecification();
                final AutoCompleteFacet autoCompleteFacet = typeOfSpecification.getFacet(AutoCompleteFacet.class);
                final List<ObjectAdapter> results = autoCompleteFacet.execute(term);
                return Lists.transform(results, ObjectAdapterMemento.Functions.fromAdapter());
            }

        };
    }
View Full Code Here

Examples of org.apache.isis.core.metamodel.spec.feature.ObjectAction.execute()

                    if(objectAction == null) {
                        throw new Exception("Unknown action '" + actionId + "'");
                    }

                    final ObjectAdapter[] argAdapters = argAdaptersFor(aim);
                    final ObjectAdapter resultAdapter = objectAction.execute(targetAdapter, argAdapters);
                    if(resultAdapter != null) {
                        Bookmark resultBookmark = CommandUtil.bookmarkFor(resultAdapter);
                        command.setResult(resultBookmark);
                    }
View Full Code Here

Examples of org.apache.isis.core.runtime.persistence.objectstore.transaction.CreateObjectCommand.execute()

    @Test
    public void createCreateObjectCommand_andExecute_persistsNewInstance() throws Exception {
        // given
        final CreateObjectCommand command = objectStore.createCreateObjectCommand(adapter1);
        // when
        command.execute(transaction);
        // then
        assertFalse(objectStore.hasInstances(specification));
    }

    @Ignore // DKH: refactor to use contract tests (see in-memory object store for basis)
View Full Code Here

Examples of org.apache.isis.core.runtime.persistence.objectstore.transaction.DestroyObjectCommand.execute()

    @Ignore // DKH: refactor to use contract tests (see in-memory object store for basis)
    @Test
    public void validatesDestroyObjectCommand() throws Exception {
        final DestroyObjectCommand command = objectStore.createDestroyObjectCommand(adapter1);
        command.execute(transaction);
        assertFalse(objectStore.hasInstances(specification));
    }

    @Ignore // DKH: refactor to use contract tests (see in-memory object store for basis)
    @Test
View Full Code Here

Examples of org.apache.isis.core.runtime.persistence.objectstore.transaction.SaveObjectCommand.execute()

    @Ignore // DKH: refactor to use contract tests (see in-memory object store for basis)
    @Test
    public void validatesSaveObjectCommand() throws Exception {
        final SaveObjectCommand command = objectStore.createSaveObjectCommand(adapter1);
        command.execute(transaction);
        assertTrue(objectStore.hasInstances(specification));
    }

    @Ignore // DKH: refactor to use contract tests (see in-memory object store for basis)
    @Test
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.Request.execute()

    public synchronized void run() {
        while (true) {
            final Request request = communication.getRequest();
            LOG.debug("client request: " + request);
            try {
                request.execute(facade);
                final ResponseEnvelope response = new ResponseEnvelope(request);
                LOG.debug("server response: " + response);
                communication.setResponse(response);
            } catch (final RuntimeException e) {
                communication.setException(e);
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.objectstore.transaction.CreateObjectCommand.execute()

    }

    @Test
    public void ValidatesCreateObjectCommand() throws Exception {
        final CreateObjectCommand command = objectStore.createCreateObjectCommand(adapter);
        command.execute(transaction);
        assertFalse(objectStore.hasInstances(spec));
    }

    @Test
    public void validatesDestroyObjectCommand() throws Exception {
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.objectstore.transaction.DestroyObjectCommand.execute()

    }

    @Test
    public void validatesDestroyObjectCommand() throws Exception {
        final DestroyObjectCommand command = objectStore.createDestroyObjectCommand(adapter);
        command.execute(transaction);
        assertFalse(objectStore.hasInstances(spec));
    }

    @Test
    public void validatesSaveObjectCommand() throws Exception {
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.objectstore.transaction.SaveObjectCommand.execute()

    }

    @Test
    public void validatesSaveObjectCommand() throws Exception {
        final SaveObjectCommand command = objectStore.createSaveObjectCommand(adapter);
        command.execute(transaction);
        assertTrue(objectStore.hasInstances(spec));
    }

    @Test
    public void validatesGettingObjectStoreInstances() throws Exception {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.