@Test public void testInsert() { final RouteRuleLogModel log1 = newModel(); final RouteRuleLogModel log2 = newModel(); final List<RouteRuleLogModel> logs = Lists.newArrayList(log1, log2); routeRuleLogDao.insert(log1, log2); for (final RouteRuleLogModel log : logs) { final List<RouteRuleLog> logModels = query(log); Assert.assertEquals(1, logModels.size()); assertLog(log, logModels.get(0)); } }
public void insert(final RouteRuleLogModel... logs) { if ((logs == null) || (logs.length == 0)) { return; } this.insert(Lists.newArrayList(logs)); }
RouteRuleLogDao { public void insert(final RouteRuleLogModel... logs) { if ((logs == null) || (logs.length == 0)) { return; } this.insert(Lists.newArrayList(logs)); } }
RouteRuleLogDao { public void insert(final RouteRuleLogModel... logs) { if ((logs == null) || (logs.length == 0)) { return; } this.insert(Lists.newArrayList(logs)); } private  RouteRuleLogDao(); }
RouteRuleLogDao { public void insert(final RouteRuleLogModel... logs) { if ((logs == null) || (logs.length == 0)) { return; } this.insert(Lists.newArrayList(logs)); } private  RouteRuleLogDao(); List<RouteRuleLog> select(RouteRuleLogModel filter); List<RouteRuleLog> query(final String condition, final List<Object> args); void insert(final RouteRuleLogModel... logs); void insert(final List<RouteRuleLogModel> logs); }
RouteRuleLogDao { public void insert(final RouteRuleLogModel... logs) { if ((logs == null) || (logs.length == 0)) { return; } this.insert(Lists.newArrayList(logs)); } private  RouteRuleLogDao(); List<RouteRuleLog> select(RouteRuleLogModel filter); List<RouteRuleLog> query(final String condition, final List<Object> args); void insert(final RouteRuleLogModel... logs); void insert(final List<RouteRuleLogModel> logs); static final RouteRuleLogDao INSTANCE; }