@Test public void testGetSql() throws IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException, ParseException { UserPO po = new UserPO(); po.setId(1L); SqlUpdGenerator generator = new SqlUpdGenerator(po, true); System.out.println(generator.getSql()); Object[] args = generator.getArgs(); for (Object arg : args) { System.out.print(arg + ","); } }
public String getSql() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException, ParseException { if (sql == null) { generate(); } return sql; }
SqlUpdGenerator implements Generator { public String getSql() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException, ParseException { if (sql == null) { generate(); } return sql; } }
SqlUpdGenerator implements Generator { public String getSql() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException, ParseException { if (sql == null) { generate(); } return sql; } SqlUpdGenerator();  SqlUpdGenerator(Object pojo, boolean usePhysicalPk); }
SqlUpdGenerator implements Generator { public String getSql() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException, ParseException { if (sql == null) { generate(); } return sql; } SqlUpdGenerator();  SqlUpdGenerator(Object pojo, boolean usePhysicalPk); String getSql(); Object[] getArgs(); }
SqlUpdGenerator implements Generator { public String getSql() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException, ParseException { if (sql == null) { generate(); } return sql; } SqlUpdGenerator();  SqlUpdGenerator(Object pojo, boolean usePhysicalPk); String getSql(); Object[] getArgs();  }