@Test public void testCompleteQuery() { SqlBuilder sqlBuilder = new SqlBuilder(buildEntity()); String sql = sqlBuilder.build(); String expectedSql = "COPY simple_table (column1, column2) " + "FROM STDIN WITH (ENCODING 'UTF-8', DELIMITER '\t', HEADER false)"; assertEquals(expectedSql, sql); }
public String build() { addCopyTable(); addColumnNames(); addFileConfig(); return getSql(); }
SqlBuilder { public String build() { addCopyTable(); addColumnNames(); addFileConfig(); return getSql(); } }
SqlBuilder { public String build() { addCopyTable(); addColumnNames(); addFileConfig(); return getSql(); } SqlBuilder(EntityInfo entityInfo); }
SqlBuilder { public String build() { addCopyTable(); addColumnNames(); addFileConfig(); return getSql(); } SqlBuilder(EntityInfo entityInfo); String build(); void addCopyTable(); void addColumnNames(); void addFileConfig(); String getSql(); }
SqlBuilder { public String build() { addCopyTable(); addColumnNames(); addFileConfig(); return getSql(); } SqlBuilder(EntityInfo entityInfo); String build(); void addCopyTable(); void addColumnNames(); void addFileConfig(); String getSql();  }