Examples of executeQuery()


Examples of org.caffinitas.mapper.core.PersistenceSession.executeQuery()

            // as named query

            queryBinder = session.createNamedQueryBinder(TpcInheritB.class, null, "byIds");
            queryBinder.setList("id", Arrays.asList(11, 12, 13, 21, 22, 23));
            result = session.executeQuery(queryBinder);

            Assert.assertNotNull(result);
            Assert.assertEquals(result.size(), 3);
        } finally {session.close();}
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery()

        // Need a different modify row than translation row, as the same field has different values in each.
        DataModifyQuery removeQuery = (DataModifyQuery)this.removeTargetQuery.clone();
        removeQuery.setModifyRow(modifyRow);
        removeQuery.setHasModifyRow(true);
        removeQuery.setIsExecutionClone(true);
        session.executeQuery(removeQuery, translationRow);
    }

    /**
     * INTERNAL:
     * Update target foreign key after a target object was removed from the source. This follows following steps.
View Full Code Here

Examples of org.eclipse.persistence.sessions.Session.executeQuery()

                    }
                }
            }
           
            // Execute the query and return the result.
            return session.executeQuery(getDatabaseQuery(), parameterValues);
        } catch (RuntimeException e) {
            setRollbackOnly();
            throw e;
        } finally {
            lockMode = null;
View Full Code Here

Examples of org.eclipse.persistence.sessions.UnitOfWork.executeQuery()

            query.refreshIdentityMapResult();
            query.cascadeByMapping();
            query.setLockMode(ObjectBuildingQuery.NO_LOCK);
            query.setIsExecutionClone(true);
            Object refreshedEntity = null;
            refreshedEntity = uow.executeQuery(query);
            if (refreshedEntity == null) {
                // bug5955326, ReadObjectQuery will now ensure the object is invalidated if refresh returns null.
                throw new EntityNotFoundException(ExceptionLocalization.buildMessage("entity_no_longer_exists_in_db", new Object[] { entity }));
            }
        } catch (RuntimeException exception) {
View Full Code Here

Examples of org.eobjects.metamodel.DataContext.executeQuery()

      List<MutableInputColumn<?>> cols = tjb.getOutputColumns();
      outputColumns.put(tjb, cols);
    }

    final List<InputRow> result = new ArrayList<InputRow>();
    final DataSet dataSet = dc.executeQuery(q);
    int rowNumber = 0;
    while (dataSet.next()) {
      Row row = dataSet.getRow();
      InputRow inputRow = new MetaModelInputRow(rowNumber, row);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.QueryHandler.executeQuery()

      try
      {
         while (it.hasNext())
         {
            QueryHandler queryHandler = it.next();
            QueryHits hits = queryHandler.executeQuery(query, true, new InternalQName[0], new boolean[0]);
            for (int i = 0; i < hits.length(); i++)
            {
               result.add(hits.getFieldContent(i, FieldNames.UUID));
            }
         }
View Full Code Here

Examples of org.fto.jthink.jdbc.SQLExecutor.executeQuery()

   
    try{
      /* 开始事务 */
      transaction.begin();
      /* 直接执行SQL查询语句 */
      return (List)sqlExecutor.executeQuery("select * from messages");
     
    }finally{
      /* 关闭事务 */
      transaction.close();
    }
View Full Code Here

Examples of org.h2.command.Command.executeQuery()

            int maxRows = transfer.readInt();
            int fetchSize = transfer.readInt();
            Command command = (Command) cache.getObject(id, false);
            setParameters(command);
            int old = session.getModificationId();
            ResultInterface result = command.executeQuery(maxRows, false);
            cache.addObject(objectId, result);
            int columnCount = result.getVisibleColumnCount();
            int state = getState(old);
            transfer.writeInt(state).writeInt(columnCount);
            int rowCount = result.getRowCount();
View Full Code Here

Examples of org.h2.command.CommandInterface.executeQuery()

        try {
            debugCodeCall("getCatalog");
            checkClosed();
            if (catalog == null) {
                CommandInterface cat = prepareCommand("CALL DATABASE()", Integer.MAX_VALUE);
                ResultInterface result = cat.executeQuery(0, false);
                result.next();
                catalog = result.currentRow()[0].getString();
                cat.close();
            }
            return catalog;
View Full Code Here

Examples of org.jrdf.query.Query.executeQuery()

        checkNotEmptyString("queryText", queryText);
        Query query = builder.buildQuery(graph, queryText);
        if (graph.isEmpty()) {
            return getEmptyAnswer(query);
        }
        return query.executeQuery(graph, queryEngine);
    }

    private Answer getEmptyAnswer(Query query) {
        if (query instanceof AskQueryImpl) {
            return new AskAnswerImpl(0, false);
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.