@Test public void testGetSqls() throws IllegalAccessException { Map<String, Object[]> args = new HashMap<String, Object[]>(); args.put("id", new Object[]{1,101,2,102,3}); args.put("cnt", new Object[]{"123"}); SqlSelHashGenerator sqlGen = new SqlSelHashGenerator(DemoHashTable.class, args); String[] sqls = sqlGen.getSqls(); List<Object[]> rArgs = sqlGen.getArgsObjs(); for (int i = 0; i < sqls.length; i++) { System.out.println(sqls[i]); System.out.println(rArgs.get(i).length); } }
public String[] getSqls() throws IllegalAccessException { if (sqls == null) { generateParam(); } return sqls.toArray(new String[0]); }
SqlSelHashGenerator extends SqlSelGenerator implements Generator { public String[] getSqls() throws IllegalAccessException { if (sqls == null) { generateParam(); } return sqls.toArray(new String[0]); } }
SqlSelHashGenerator extends SqlSelGenerator implements Generator { public String[] getSqls() throws IllegalAccessException { if (sqls == null) { generateParam(); } return sqls.toArray(new String[0]); } SqlSelHashGenerator();  SqlSelHashGenerator(Class<?> pojoClazz, Map<String, Object[]> args); }
SqlSelHashGenerator extends SqlSelGenerator implements Generator { public String[] getSqls() throws IllegalAccessException { if (sqls == null) { generateParam(); } return sqls.toArray(new String[0]); } SqlSelHashGenerator();  SqlSelHashGenerator(Class<?> pojoClazz, Map<String, Object[]> args); List<Object[]> getArgsObjs(); String[] getSqls(); }
SqlSelHashGenerator extends SqlSelGenerator implements Generator { public String[] getSqls() throws IllegalAccessException { if (sqls == null) { generateParam(); } return sqls.toArray(new String[0]); } SqlSelHashGenerator();  SqlSelHashGenerator(Class<?> pojoClazz, Map<String, Object[]> args); List<Object[]> getArgsObjs(); String[] getSqls();  }