Examples of Statement


Examples of org.jboss.errai.codegen.Statement

        throw new RuntimeException("no available marshaller for class: " + type.getFullyQualifiedName());
      }

      final String varName = getVarName(type);

      final Statement marshaller = strategy.getMapper().getMarshaller();
      classStructureBuilder.privateField(varName, marshaller.getType()).finish();

      if (type.isAnnotationPresent(AlwaysQualify.class)) {
        constructor.append(loadVariable(varName).assignValue(
            Stmt.newObject(QualifyingMarshallerWrapper.class, marshaller, type)));
      }
View Full Code Here

Examples of org.jboss.errai.codegen.framework.Statement

    for (Class<?> clazz : exposed) {
      mappingContext.registerGeneratedMarshaller(clazz.getName());
    }

    for (Class<?> clazz : exposed) {
      Statement marshaller = marshall(clazz);
      MetaClass type = marshaller.getType();
      String varName = getVarName(clazz);

      classStructureBuilder.privateField(varName, type).finish();

      constructor.append(loadVariable(varName).assignValue(marshaller));
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.codegen.Statement

      throw new RuntimeException("Event<?> must be parameterized");
    }

    MetaClass typeParm = (MetaClass) type.getTypeParameters()[0];
    String toSubject = CDI.getSubjectNameByType(typeParm.getFullyQualifiedName());
    Statement statement = Stmt.nestedCall(injectableInstance.getValueStatement())
            .invoke("registerConversation", Stmt.invokeStatic(CDI.class, "createConversation", toSubject));

    return statement;
  }
View Full Code Here

Examples of org.jboss.jca.common.api.metadata.ds.Statement

   {
      TransactionIsolation transactionIsolation = null;
      Map<String, String> xaDataSourceProperty = new HashMap<String, String>();
      TimeOut timeOutSettings = null;
      DsSecurity securitySettings = null;
      Statement statementSettings = null;
      Validation validationSettings = null;
      String urlDelimiter = null;
      String urlSelectorStrategyClassName = null;
      String newConnectionSql = null;
      CommonXaPool xaPool = null;
View Full Code Here

Examples of org.jclouds.scriptbuilder.domain.Statement

        return null;
    }

    @Override
    public Statement getStatement() {
        Statement statement = null;
        ChefService chefService = getChefService();
        if (chefService != null) {
            List<String> runlist = new RunListBuilder().addRecipes(cookbook).build();
            BootstrapConfig bootstrapConfig = BootstrapConfig.builder().runList(runlist).build();
            chefService.updateBootstrapConfigForGroup("single", bootstrapConfig);
View Full Code Here

Examples of org.jrest4guice.persistence.ibatis.annotations.Statement

  }

  private static void processStatement(Class<?> clazz,
      StringBuffer statementSb) {
    Method[] methods = clazz.getDeclaredMethods();
    Statement statement;
    Procedure procedure;
    Select select;
    Update update;
    Insert insert;
    Delete delete;
    for (Method method : methods) {
      if (method.isAnnotationPresent(Statement.class)) {
        statement = method.getAnnotation(Statement.class);
        generateMethodSqlMapping(statementSb, "statement", method,
            statement.id(), statement.parameterMap(), statement
                .parameterClass(), statement.resltMap(),
            statement.resltClass(), statement.sql(), statement
                .cacheModel(), statement.xmlResultName());
      } else if (method.isAnnotationPresent(Procedure.class)) {
        procedure = method.getAnnotation(Procedure.class);
        generateMethodSqlMapping(statementSb, "procedure", method,
            procedure.id(), procedure.parameterMap(), procedure
                .parameterClass(), procedure.resltMap(),
View Full Code Here

Examples of org.jreversepro.ast.block.Statement

  }

  @Override
  protected void emitCurrentCode(EmitterTarget target, Block _block) {
    Statement stmt = (Statement) _block;
    target.append("        ");
    target.append(stmt.getExpression().getJLSCode()
        + JLSConstants.END_OF_STATEMENT);
    target.append("\n");
  }
View Full Code Here

Examples of org.junit.runners.model.Statement

        return "unknown-test-class";
    }

    public Statement apply(final Statement base, final FrameworkMethod method, final Object target) {
        init(method, target);
        return new Statement() {
            @Override
            public void evaluate() throws Throwable {
                base.evaluate();
                getDir().maybeDeleteDir();
                // Don't delete on failure
View Full Code Here

Examples of org.neo4j.rest.graphdb.query.CypherTransaction.Statement

        String relPattern = relPattern(direction, type);
        String statement1 = "MATCH (n)"+relPattern+"(m) WHERE id(n) = {id_n} "+targetLabelPredicate+" AND NOT id(m) IN {ids_m} DELETE r RETURN id(r) as id_r";
        String statement2 = MATCH_NODE_QUERY("n") + " MATCH (m) WHERE id(m) IN {ids_m} MERGE (n)"+relPattern+"(m)" + _QUERY_RETURN_REL;
        Map<String, Object> params = map("id_n", start.getId(), "ids_m", nodeIds(endNodes));
        List<CypherTransaction.Result> results = runQueries(asList(
                new Statement(statement1, params, row,false),
                new Statement(statement2, params, row,false)));
        Iterable<List<Object>> mergeResults = results.get(1).getRows();
        return new IterableWrapper<Relationship,List<Object>>(mergeResults) {
            @Override
            protected Relationship underlyingObjectToObject(List<Object> row) {
                return toRel(row);
View Full Code Here

Examples of org.ontoware.rdf2go.model.Statement

    ClosableIterator<? extends Statement> sit = model.findStatements(
        subject, predicate, object);
    assertNotNull(sit);
    assertTrue(sit.hasNext());

    Statement s2 = sit.next();
    URI s2s = (URI) s2.getSubject();
    URI s2p = s2.getPredicate();
    URI s2o = (URI) s2.getObject();

    assertEquals(subject, s2s);
    assertEquals(predicate, s2p);
    assertEquals(object, s2o);
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.