OrganizationDao extends AbstractXpipeConsoleDAO { @DalTransaction public void createBatchOrganizations(List<OrganizationTbl> orgs) { if (null != orgs) { queryHandler.handleBatchInsert(new DalQuery<int[]>() { @Override public int[] doQuery() throws DalException { return organizationTblDao.insertBatch(orgs.toArray(new OrganizationTbl[orgs.size()])); } }); } }  OrganizationTbl findByPK(long id); OrganizationTbl findByName(String orgName); OrganizationTbl findByOrgId(long orgId); List<OrganizationTbl> findAllOrgs(); List<OrganizationTbl> findInvolvedOrgs(); @DalTransaction void updateOrg(OrganizationTbl org); @DalTransaction void createBatchOrganizations(List<OrganizationTbl> orgs); @DalTransaction void updateBatchOrganizations(List<OrganizationTbl> orgs);  }
@Test public void testInsertBatch() { organizationDao.createBatchOrganizations(createBatchOrgTbl(5)); }