@Test public void buildInsertStatement() { SystemCodes sc = new SystemCodes("category1","key1","value1"); SyncUtil.buildInsertStatement(sc); Assert.assertEquals( "insert into system_codes (KEY_,VALUE_,CATEGORY_) values ('KEY1','value1','CATEGORY1')", SyncUtil.buildInsertStatement(sc)); Date now = new Date(); sc.setCreateDate(now); String nowString = DateUtil.dateToString(now, "yyyy-MM-dd HH:mm:ss"); Assert.assertEquals( "insert into system_codes (CREATEDATE,KEY_,VALUE_,CATEGORY_) values ('" + nowString + "','KEY1','value1','CATEGORY1')", SyncUtil.buildInsertStatement(sc)); SystemCodes p = new SystemCodes("categoryP","keyP","parentP"); p.setId(2l); sc.setParent(p); sc.setId(3l); Assert.assertEquals( "insert into system_codes (ID,CREATEDATE,KEY_,VALUE_,CATEGORY_,PARENT_) values (3,'" + nowString + "','KEY1','value1','CATEGORY1',2)", SyncUtil.buildInsertStatement(sc)); }
public static String[] buildInsertStatement(BaseEntity obj) { return buildInsertStatement(obj, null); }
SyncUtil { public static String[] buildInsertStatement(BaseEntity obj) { return buildInsertStatement(obj, null); } }
SyncUtil { public static String[] buildInsertStatement(BaseEntity obj) { return buildInsertStatement(obj, null); }  }
SyncUtil { public static String[] buildInsertStatement(BaseEntity obj) { return buildInsertStatement(obj, null); }  static String[] buildInsertStatement(BaseEntity obj); static String[] buildInsertStatement(BaseEntity obj, Class<?> clazz); static String[] buildUpdateStatement(BaseEntity obj, List<String> fields); static String buildDeleteStatement(BaseEntity obj); static String getTableName(BaseEntity obj); void setSyncNormalizerList(List<Normalizer> normalizer); }
SyncUtil { public static String[] buildInsertStatement(BaseEntity obj) { return buildInsertStatement(obj, null); }  static String[] buildInsertStatement(BaseEntity obj); static String[] buildInsertStatement(BaseEntity obj, Class<?> clazz); static String[] buildUpdateStatement(BaseEntity obj, List<String> fields); static String buildDeleteStatement(BaseEntity obj); static String getTableName(BaseEntity obj); void setSyncNormalizerList(List<Normalizer> normalizer);  }