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