@Override public void updateEntity(EquipmentEntity entity, Object attach) { entity.saveBefore(); IDaoOperate daoOperate = daoOperateFactory.createDaoOperate(dao, DaoOperateType.Update, entity, "", null, attach); operatePool.execute(daoOperate); }
@Override public void batchRemoveEntity(List<EquipmentEntity> entitys, Object attach) { IDaoOperate daoOperate = daoOperateFactory.createDaoOperate( dao, DaoOperateType.BatchRemove, entitys, "", null, attach); operatePool.execute(daoOperate); }
@Override public void insertEntity(MatchShopEntity entity, Object attach) { entity.saveBefore(); IDaoOperate daoOperate = daoOperateFactory.createDaoOperate(dao, DaoOperateType.Insert, entity, "", null, attach); operatePool.execute(daoOperate); }
@Override public void batchInsertEntity(List<EquipmentEntity> entitys, Object attach) { for (EquipmentEntity entity : entitys) { entity.saveBefore(); } IDaoOperate daoOperate = daoOperateFactory.createDaoOperate( dao, DaoOperateType.BatchInsert, entitys, "", null, attach); operatePool.execute(daoOperate); }
@Override public void batchUpdateEntity(List<MatchShopEntity> entitys, Object attach) { for (MatchShopEntity entity : entitys) { entity.saveBefore(); } IDaoOperate daoOperate = daoOperateFactory.createDaoOperate( dao, DaoOperateType.BatchUpdate, entitys, "", null, attach); operatePool.execute(daoOperate); }
@Override public void removeEntity(EquipmentEntity entity, Object attach) { IDaoOperate daoOperate = daoOperateFactory.createDaoOperate(dao, DaoOperateType.Remove, entity, "", null, attach); operatePool.execute(daoOperate); }