public OracleQueryFactory(SQLTemplates templates, Provider<Connection> connection) { this(new Configuration(templates), connection); }
/** * Create a new SQLQuery instance * * @param conn Connection to use * @param templates SQLTemplates to use * @param metadata */ public SQLQuery(Connection conn, SQLTemplates templates, QueryMetadata metadata) { super(conn, new Configuration(templates), metadata); }
public SQLInsertClause(Connection connection, SQLTemplates templates, RelationalPath<?> entity, AbstractSQLSubQuery<?> subQuery) { this(connection, new Configuration(templates), entity); this.subQueryBuilder = subQuery; }
public SQLInsertClause(Connection connection, SQLTemplates templates, RelationalPath<?> entity) { this(connection, new Configuration(templates), entity); }
public SetQueryBandClause(Connection connection, SQLTemplates templates) { this(connection, new Configuration(templates)); }
public PostgresQueryFactory(SQLTemplates templates, Provider<Connection> connection) { this(new Configuration(templates), connection); }
public SQLMergeClause(Connection connection, SQLTemplates templates, RelationalPath<?> entity) { this(connection, new Configuration(templates), entity); }
public SQLDeleteClause(Connection connection, SQLTemplates templates, RelationalPath<?> entity) { this(connection, new Configuration(templates), entity); }
public SQLQueryFactory(SQLTemplates templates, Provider<Connection> connection) { this(new Configuration(templates), connection); }
public MySQLQueryFactory(SQLTemplates templates, Provider<Connection> connection) { this(new Configuration(templates), connection); }
/** * Create a new SQLQuery instance * * @param conn Connection to use * @param templates SQLTemplates to use */ public SQLQuery(Connection conn, SQLTemplates templates) { super(conn, new Configuration(templates), new DefaultQueryMetadata()); }
/** * Create a detached SQLQuery instance The query can be attached via the * clone method * * @param templates SQLTemplates to use */ public SQLQuery(SQLTemplates templates) { super(null, new Configuration(templates), new DefaultQueryMetadata()); }
public MySQLQuery(Connection conn, SQLTemplates templates) { this(conn, new Configuration(templates), new DefaultQueryMetadata()); }
public TeradataQuery(Connection conn, SQLTemplates templates) { this(conn, new Configuration(templates), new DefaultQueryMetadata()); }
public PostgresQuery(Connection conn, SQLTemplates templates) { this(conn, new Configuration(templates), new DefaultQueryMetadata()); }
public SQLServerQueryFactory(Provider<Connection> connection) { this(new Configuration(new SQLServerTemplates()), connection); }
public PostgresQueryFactory(Provider<Connection> connection) { this(new Configuration(new PostgresTemplates()), connection); }
public PostgresQuery(Connection conn) { this(conn, new Configuration(new PostgresTemplates()), new DefaultQueryMetadata()); }
@Test public void Path_Column2() { PathBuilder<Entity> entity = new PathBuilder<Entity>(Entity.class,"entity"); Configuration conf = new Configuration(new MySQLTemplates()); NativeSQLSerializer serializer = new NativeSQLSerializer(conf, true); serializer.handle(entity.get("firstName")); assertEquals("entity.first_name", serializer.toString()); }
@Test public void Path_Column() { PathBuilder<Entity> entity = new PathBuilder<Entity>(Entity.class,"entity"); Configuration conf = new Configuration(new MySQLTemplates()); NativeSQLSerializer serializer = new NativeSQLSerializer(conf, true); serializer.handle(entity.get("name")); assertEquals("entity.name", serializer.toString()); }