@Test public void testSelectFromOrderBy() { int tests = 100; int columns = 5; for (int i = 0; i < tests; i++) { Columns c = new Columns(columns); String tableName = "table" + i; String orderBy = "col" + i + " ASC"; String sql = new SELECT(c.columns).FROM(tableName).ORDER_BY(orderBy).asCompileableStatement().sql; String genSql = c.sql + " FROM " + tableName + " ORDER BY " + orderBy; assertEquals(sql, genSql); } }
public FROM FROM(@NonNull String tableName) { return new FROM(this, tableName); }
SELECT extends SqlRootNode { public FROM FROM(@NonNull String tableName) { return new FROM(this, tableName); } }
SELECT extends SqlRootNode { public FROM FROM(@NonNull String tableName) { return new FROM(this, tableName); } SELECT(@NonNull String... columns); }
SELECT extends SqlRootNode { public FROM FROM(@NonNull String tableName) { return new FROM(this, tableName); } SELECT(@NonNull String... columns); @Override String getSql(); FROM FROM(@NonNull String tableName); FROM FROM(@NonNull String... tableNames); }
SELECT extends SqlRootNode { public FROM FROM(@NonNull String tableName) { return new FROM(this, tableName); } SELECT(@NonNull String... columns); @Override String getSql(); FROM FROM(@NonNull String tableName); FROM FROM(@NonNull String... tableNames);  }