@Test public void testGetSql() throws IllegalAccessException { Map<String, Object[]> args = new HashMap<String, Object[]>(); args.put("id", new Object[]{1,2,3}); SqlSelGenerator sqlGen = new SqlSelGenerator(DemoTablePO.class, args); System.out.println(sqlGen.getSql()); System.out.println(sqlGen.getArgs().length); }
public String getSql() throws IllegalAccessException { if (sql == null) { generateParam(); } return sql; }
SqlSelGenerator implements Generator { public String getSql() throws IllegalAccessException { if (sql == null) { generateParam(); } return sql; } }
SqlSelGenerator implements Generator { public String getSql() throws IllegalAccessException { if (sql == null) { generateParam(); } return sql; } SqlSelGenerator();  SqlSelGenerator(Class<?> pojoClazz, Map<String, Object[]> args); }
SqlSelGenerator implements Generator { public String getSql() throws IllegalAccessException { if (sql == null) { generateParam(); } return sql; } SqlSelGenerator();  SqlSelGenerator(Class<?> pojoClazz, Map<String, Object[]> args); Object[] getArgs(); String getSql(); Class<?> getPojoClazz(); void setPojoClazz(Class<?> pojoClazz); }
SqlSelGenerator implements Generator { public String getSql() throws IllegalAccessException { if (sql == null) { generateParam(); } return sql; } SqlSelGenerator();  SqlSelGenerator(Class<?> pojoClazz, Map<String, Object[]> args); Object[] getArgs(); String getSql(); Class<?> getPojoClazz(); void setPojoClazz(Class<?> pojoClazz);  }