Examples of configuration()


Examples of org.jooq.RenderContext.configuration()

        assertEquals("SELECT :1 FROM `TABLE1` WHERE `TABLE1`.`ID1` = :2", r_refP.render(q));
        assertEquals("SELECT ? FROM `TABLE1` WHERE `TABLE1`.`ID1` = ?", r_ref.render(q));

        r_refI.configuration().settings().setRenderKeywordStyle(RenderKeywordStyle.LOWER);
        r_refP.configuration().settings().setRenderKeywordStyle(RenderKeywordStyle.LOWER);
        r_ref.configuration().settings().setRenderKeywordStyle(RenderKeywordStyle.LOWER);

        assertEquals("select 1 from `TABLE1` where `TABLE1`.`ID1` = 2", r_refI.render(q));
        assertEquals("select :1 from `TABLE1` where `TABLE1`.`ID1` = :2", r_refP.render(q));
        assertEquals("select ? from `TABLE1` where `TABLE1`.`ID1` = ?", r_ref.render(q));
    }
View Full Code Here

Examples of org.jooq.RenderContext.configuration()

        char[] sqlChars = sql.toCharArray();

        // [#1593] Create a dummy renderer if we're in bind mode
        if (render == null) render = new DefaultRenderContext(bind.configuration());

        SQLDialect dialect = render.configuration().dialect();
        SQLDialect family = dialect.family();
        String[][] quotes = QUOTES.get(family);

        // [#3630] Depending on this setting, we need to consider backslashes as escape characters within string literals.
        boolean needsBackslashEscaping = needsBackslashEscaping(ctx.configuration());
View Full Code Here

Examples of org.jooq.RenderContext.configuration()

                    render.sql("]");

                    // [#3214] Some PostgreSQL array type literals need explicit casting
                    if (family == POSTGRES && EnumType.class.isAssignableFrom(type.getComponentType())) {
                        render.sql("::")
                               .keyword(DefaultDataType.getDataType(family, type).getCastTypeName(render.configuration()));
                    }
                }
            }
            /* [pro] xx
            xxxx xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x
View Full Code Here

Examples of org.jooq.RenderContext.configuration()

            // Postgres needs explicit casting for array types
            if (type.isArray() && byte[].class != type) {
                render.sql(getBindVariable(render));
                render.sql("::");
                render.keyword(DefaultDataType.getDataType(family, type).getCastTypeName(render.configuration()));
            }

            // ... and also for enum types
            else if (EnumType.class.isAssignableFrom(type)) {
                render.sql(getBindVariable(render));
View Full Code Here

Examples of org.jooq.RenderContext.configuration()

                Schema schema = e.getSchema();

                if (schema != null) {
                    render.sql("::");

                    schema = using(render.configuration()).map(schema);
                    if (schema != null && TRUE.equals(render.configuration().settings().isRenderSchema())) {
                        render.visit(schema);
                        render.sql(".");
                    }
View Full Code Here

Examples of org.jooq.RenderContext.configuration()

                if (schema != null) {
                    render.sql("::");

                    schema = using(render.configuration()).map(schema);
                    if (schema != null && TRUE.equals(render.configuration().settings().isRenderSchema())) {
                        render.visit(schema);
                        render.sql(".");
                    }

                    render.visit(name(e.getName()));
View Full Code Here

Examples of org.neo4j.server.configuration.Configurator.configuration()

    }

    public static NeoServer startWebServer(
      ImpermanentGraphDatabase gdb, int port) {
      Configurator configurator = new ServerConfigurator(gdb);
      configurator.configuration().setProperty(Configurator.WEBSERVER_PORT_PROPERTY_KEY,  port);
    NeoServer server = new WrappingNeoServer(gdb, configurator );
    server.start();
        tryConnect();
    return server;
  }
View Full Code Here

Examples of org.neo4j.server.configuration.EmbeddedServerConfigurator.configuration()

    public void simpleAPIPlusCypherQueryRestTest() throws IOException {
      //Start wrapping server
      ImpermanentGraphDatabase myDb = new ImpermanentGraphDatabase();

    EmbeddedServerConfigurator config = new EmbeddedServerConfigurator(myDb);
    config.configuration().setProperty(
        Configurator.WEBSERVER_PORT_PROPERTY_KEY, 7575);
    config.configuration().setProperty(
        Configurator.REST_API_PATH_PROPERTY_KEY,
        "http://localhost:7575/db/data/");
    WrappingNeoServerBootstrapper srv = new WrappingNeoServerBootstrapper(myDb, config);
View Full Code Here

Examples of org.neo4j.server.configuration.EmbeddedServerConfigurator.configuration()

      ImpermanentGraphDatabase myDb = new ImpermanentGraphDatabase();

    EmbeddedServerConfigurator config = new EmbeddedServerConfigurator(myDb);
    config.configuration().setProperty(
        Configurator.WEBSERVER_PORT_PROPERTY_KEY, 7575);
    config.configuration().setProperty(
        Configurator.REST_API_PATH_PROPERTY_KEY,
        "http://localhost:7575/db/data/");
    WrappingNeoServerBootstrapper srv = new WrappingNeoServerBootstrapper(myDb, config);
    srv.start();
View Full Code Here

Examples of org.neo4j.server.configuration.EmbeddedServerConfigurator.configuration()

    public static void main(String[] args) throws Exception {
    if (startWrappingServer) {
      myDb = new ImpermanentGraphDatabase();
      EmbeddedServerConfigurator config = new EmbeddedServerConfigurator(
          myDb);
      config.configuration().setProperty(
          Configurator.WEBSERVER_PORT_PROPERTY_KEY, 7575);
      config.configuration().setProperty(
          Configurator.REST_API_PATH_PROPERTY_KEY,
          SERVER_API_PATH_PROP);
      srv = new WrappingNeoServerBootstrapper(myDb, config);
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.