Examples of createStatement()


Examples of org.apache.tapestry.contrib.jdbc.StatementAssembly.createStatement()

          assembly.addParameter(ownerId);
        }

        addSortOrdering(assembly, ordering);

        return assembly.createStatement(connection);
    }

    private IStatement buildPersonQuery(
        Connection connection,
        String personColumn,
View Full Code Here

Examples of org.olap4j.OlapConnection.createStatement()

        OlapWrapper wrapper = (OlapWrapper) connection;

        OlapConnection olapConnection = wrapper.unwrap(OlapConnection.class);

        OlapStatement statement = olapConnection.createStatement();

        CellSet cellSet =
            statement.executeOlapQuery(
                "SELECT {[store].[USA]} ON COLUMNS , {[Account].[1000]} ON ROWS\n"
                + "FROM [Budget]");
View Full Code Here

Examples of org.ontoware.rdf2go.model.Model.createStatement()

  /* subclasses should overwrite this method for better performance */
  @Override
    public Statement createStatement(Resource subject, URI predicate,
      Node object) {
    Model defaultModel = this.getDefaultModel();
    Statement statement = defaultModel.createStatement(subject, predicate,
        object);
    defaultModel.close();
    return statement;
  }

View Full Code Here

Examples of org.openrdf.model.ValueFactory.createStatement()

          Value subj = bindings.getValue("subject");
          Value pred = bindings.getValue("predicate");
          Value obj = bindings.getValue("object");

          if (subj instanceof Resource && pred instanceof URI && obj != null) {
            statements.add(vf.createStatement((Resource)subj, (URI)pred, obj));
          }
        }
      }
      finally {
        bindingsIter.close();
View Full Code Here

Examples of org.openrdf.model.impl.ValueFactoryImpl.createStatement()

            } else {
                object = vf.createBNode(triple.getObject().getIRI().toString());
            }
        }
        if (contexts == null || contexts.length == 0) {
            return Collections.singletonList(vf.createStatement(subject,
                    predicate, object));
        } else {
            final ArrayList<Statement> results = new ArrayList<>(
                    contexts.length);
            for (final Resource nextContext : contexts) {
View Full Code Here

Examples of org.opensolaris.opengrok.jdbc.ConnectionResource.createStatement()

                    new ConnectionManager(jdbcDriverClass, jdbcConnectionURL);
            for (int i = 0;; i++) {
                final ConnectionResource conn =
                        connectionManager.getConnectionResource();
                try {
                    try (Statement stmt = conn.createStatement()) {
                        initDB(stmt);
                    }
                    conn.commit();
                    // Success! Break out of the loop.
                    return;
View Full Code Here

Examples of org.skife.jdbi.v2.Handle.createStatement()

    }

    public void testParameterizedInsert() throws Exception
    {
        final Handle h = openHandle();
        final int count = h.createStatement("tests:parameterized_insert")
                .define("table", "something")
                .define("column_one", "id")
                .define("column_two", "name")
                .bind("column_one", 7)
                .bind("column_two", "Rebecca")
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.