Examples of Result


Examples of org.hsqldb.Result

                isInsert = true;

                break;
            }

            Result result = session.sqlExecuteDirectNoPreChecks(statement);

            if (result != null && result.isError()) {
                db.logger.appLog.logContext(SimpleLog.LOG_ERROR,
                                            result.getMainString());

                HsqlException error =
                    Trace.error(Trace.ERROR_IN_SCRIPT_FILE,
                                Trace.DatabaseScriptReader_readDDL,
                                new Object[] {
                    new Integer(lineCount), result.getMainString()
                });

                /** @todo fredt - if unavaialble external functions are to be ignored */
                throw error;
            }
View Full Code Here

Examples of org.hsqldb.result.Result

            return;
        }

        rootWarning = null;

        Result current = resultIn;

        while (current.getChainedResult() != null) {
            current = current.getUnlinkChainedResult();

            if (current.getType() == ResultConstants.WARNING) {
                SQLWarning w = Util.sqlWarning(current);

                if (rootWarning == null) {
                    rootWarning = w;
                } else {
                    rootWarning.setNextWarning(w);
                }
            } else if (current.getType() == ResultConstants.ERROR) {
                errorResult = current;
            } else if (current.getType() == ResultConstants.DATA) {
                generatedResult = current;
            }
        }

        if (rootWarning != null) {
View Full Code Here

Examples of org.hsqldb_voltpatches.result.Result

        }
    }

    public Result execute(Session session) {

        Result result = getAccessRightsResult(session);

        if (result != null) {
            return result;
        }

        if (this.isExplain) {
            return Result.newSingleColumnStringResult("OPERATION",
                    describe(session));
        }

        if (session.sessionContext.dynamicArguments.length
                != parameters.length) {

//            return Result.newErrorResult(Error.error(ErrorCode.X_42575));
        }

        try {
            materializeSubQueries(session);

            result = getResult(session);
        } catch (Throwable t) {
            String commandString = sql;

            if (session.database.getProperties().getErrorLevel()
                    == HsqlDatabaseProperties.NO_MESSAGE) {
                commandString = null;
            }

            result = Result.newErrorResult(t, commandString);

            result.getException().setStatementType(group, type);


        }

        session.sessionContext.clearStructures(this);
View Full Code Here

Examples of org.impalaframework.build.ant.Result

        toString(3, new URL("http://location"), "archive DOWNLOADED from \nhttp://location");
    }

    private void construct(boolean fail, int result, URL successLocation, String expected) {
        try {
            new Result("archive", result, successLocation);
            if (fail)
                fail("Success not expected");
        }
        catch (IllegalArgumentException e) {
            if (fail)
View Full Code Here

Examples of org.infinispan.cli.interpreter.result.Result

         parser.statements();
         session = sessions.get(sessionId);
         StringBuilder output = new StringBuilder();
         for (Statement stmt : parser.statements) {
            Result result = stmt.execute(session);
            if (result != EmptyResult.RESULT) {
               output.append(result.getResult());
            }
         }
         if (output.length() > 0) {
            response.put(ResultKeys.OUTPUT.toString(), output.toString());
         }
View Full Code Here

Examples of org.jbehave.core.result.Result

            out.println();
            out.println("Used mocks: " + usedMocks.size());
            out.println();
            int count = 1;
            for (Iterator i = usedMocks.iterator(); i.hasNext(); count++) {
                Result result =  (Result) i.next();
                printResult(count, result);
            }
            out.println();
        }
    }
View Full Code Here

Examples of org.jboss.forge.addon.ui.result.Result

         controller.initialize();
         controller.setValueFor("named", "CreditCardType");
         controller.setValueFor("targetPackage", "org.jboss.forge.test");
         Assert.assertTrue(controller.isValid());
         Assert.assertTrue(controller.canExecute());
         Result result = controller.execute();
         Assert.assertThat(result, is(not(instanceOf(Failed.class))));
      }
      JavaSourceFacet facet = project.getFacet(JavaSourceFacet.class);
      JavaResource javaResource = facet.getJavaResource("org.jboss.forge.test.CreditCardType");
      Assert.assertTrue(javaResource.exists());
View Full Code Here

Examples of org.jboss.forge.ui.result.Result

   }

   @Override
   public Result execute(UIContext context) throws Exception
   {
      Result result = Results.success("New project has been created.");
      DirectoryResource directory = targetLocation.getValue();
      DirectoryResource targetDir = directory.getChildDirectory(named.getValue());

      if (targetDir.mkdirs() || overwrite.getValue())
      {
View Full Code Here

Examples of org.jboss.jandex.Result

            tempJarFile.deleteOnExit();

            archiveToIndex.as(ZipExporter.class).exportTo(tempJarFile, true);

            final Indexer indexer = new Indexer();
            final Result result = JarIndexer.createJarIndex(tempJarFile, indexer, false, false, false);

            final File indexFile = result.getOutputFile();
            indexFile.deleteOnExit();

            jandexIndexAsset = new FileAsset(indexFile);
        } catch (IOException e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.ctx.Result

   {
      ResponseCtx response = (ResponseCtx) map.get(XACMLConstants.RESPONSE_CTX);
      if(response != null)
      {
         Set<Result> results = response.getResults();
         Result res = results.iterator().next();
         decision = res.getDecision();
      }
      return decision;
        
   }
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.