Package org.jooq.impl

Examples of org.jooq.impl.Factory


    public static void main(String[] args) throws Exception {
        Class.forName("com.mysql.jdbc.Driver");
        Connection connection = DriverManager.getConnection("jdbc:mysql://localhost/sakila", "root", "");

        Factory create = new SakilaFactory(connection);

        System.out.println(create
              .select()
              .from(CUSTOMER)
              .join(ADDRESS)
              .using(ADDRESS.ADDRESS_ID)
              .join(CITY)
View Full Code Here


    public static void main(String[] args) throws Exception {
        Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
        Connection connection = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks;integratedSecurity=true");

        Factory create = new SQLServerFactory(connection);

        System.out.println(create
              .select(Employee.getFields())
              .select(val("###"))
              .select(Department.getFields())
              .select(val("###"))
              .select(Contact.getFields())
View Full Code Here

import org.jooq.test.mysql.generatedclasses.tables.records.TBookRecord;

public class Library {

    private static Factory create() throws Exception {
        return new Factory(getConnection(), SQLDialect.MYSQL);
    }
View Full Code Here

    private ResourceService resourceService;

    private ConfigurationService configurationService;

    public SparqlToSQLMapper(Connection connection, SQLDialect dialect, CastType typeCast) {
        create = new Factory(connection,dialect);
        create.getSettings().setRenderFormatted(true);
        create.getSettings().setRenderNameStyle(RenderNameStyle.LOWER);
        create.getSettings().setStatementType(StatementType.STATIC_STATEMENT);

        this.dialect = dialect;
View Full Code Here

TOP

Related Classes of org.jooq.impl.Factory

Copyright © 2018 www.massapicom. 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.