Example usage for org.springframework.transaction.annotation Propagation NOT_SUPPORTED

List of usage examples for org.springframework.transaction.annotation Propagation NOT_SUPPORTED

Introduction

In this page you can find the example usage for org.springframework.transaction.annotation Propagation NOT_SUPPORTED.

Prototype

Propagation NOT_SUPPORTED

To view the source code for org.springframework.transaction.annotation Propagation NOT_SUPPORTED.

Click Source Link

Document

Execute non-transactionally, suspend the current transaction if one exists.

Usage

From source file:com.gcrm.service.impl.BaseService.java

@Override
@Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
public List<T> getAllObjects(String clazz, String columns) {
    return baseDao.getAllObjects(clazz, columns);
}

From source file:com.xyz.framework.data.impl.JpaDao.java

/**
 * ?./*  w ww  . j  a v a 2  s . c o  m*/
 */
@Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
public List<T> find(List<PropertyFilter> filters) {
    String criterions = buildPropertyFilterCriterions(filters);
    return find(criterions);
}

From source file:com.gcrm.service.impl.BaseService.java

@Override
@Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
public SearchResult<T> getPaginationObjects(String clazz, String columns, SearchCondition searchCondition) {
    return baseDao.getPaginationObjects(clazz, columns, searchCondition);
}

From source file:com.xyz.framework.data.impl.JpaDao.java

/**
 * ?./*from w  ww. j a  v a2 s  .  com*/
 */
@Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
public Page<T> findPage(final Page<T> page, final List<PropertyFilter> filters) {

    String criterions = buildPropertyFilterCriterions(filters);
    return findPage(page, criterions);
}

From source file:com.wms.studio.service.WallpaperServiveImpl.java

@Override
@Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
public PageDto<WallpaperDto> findByUser(String userId, PageSize pageSize) {

    if (StringUtils.isBlank(userId)) {
        return PageDto.EMPTY_PAGE();
    }/*  w  w  w. ja  va2  s . c o  m*/

    if (pageSize == null) {
        pageSize = new PageSize();
    }

    return this.wallpaperCovert.covertToDto(this.wallpaperRepository.findByUser(new User(userId),
            new PageRequest(pageSize.getPage() - 1, pageSize.getLimit())));
}

From source file:com.gcrm.service.impl.BaseService.java

@Override
@Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
public List<T> getObjects(String clazz, String columns, String condition) {
    return baseDao.getObjects(clazz, columns, condition);
}

From source file:com.ibm.asset.trails.service.impl.ReconWorkspaceServiceImpl.java

@Transactional(readOnly = false, propagation = Propagation.NOT_SUPPORTED)
public List<ReconcileType> reconcileTypes(boolean isManual) {
    //User Story 23223 - remove "CO/CM" from reconcile type list Start
    List<ReconcileType> reconcileTypeList = reconTypeDAO.reconcileTypes(isManual);

    if (isManual) {
        List<ReconcileType> reconcileTypeRemoveList = new ArrayList<ReconcileType>();

        for (ReconcileType reconcileType : reconcileTypeList) {
            if (reconcileType.getId() != null && reconcileType.getId().intValue() == 2) {//judge if reconcile type is manual CO/CM
                reconcileTypeRemoveList.add(reconcileType);//add manual CO/CM reconcile type into reconcile type remove list
            }/*w  w  w.java 2s .  co m*/
        }

        reconcileTypeList.removeAll(reconcileTypeRemoveList);//remove manual CO/CM reconcile type from reconcile type list

    }

    return reconcileTypeList;
    // User Story 23223 - remove "CO/CM" from reconcile type list End
}

From source file:com.xn.interfacetest.service.impl.TestSuitServiceImpl.java

@Override
@Transactional(propagation = Propagation.NOT_SUPPORTED)
public CommonResult excuteSuitList(List<TestSuitDto> testSuitDtoList, TestEnvironmentDto testEnvironmentDto,
        Long planId) throws Exception {
    CommonResult result = new CommonResult();
    TestReportDto testReportDto = new TestReportDto();
    try {//w  ww.  ja  v  a2s  .c  o m
        ExecutorService exe = Executors.newFixedThreadPool(50);

        TestPlanDto testPlanDto = testPlanService.get(planId);
        //?????
        changePlanInfo(testSuitDtoList, testEnvironmentDto, planId, PlanStatusEnum.EXCUTING.getId());

        ReportResult.resetReportResult();
        ReportResult.getReportResult().setStartTime(new Date());
        logger.info("reportResult"
                + ReportResult.getReportResult().toString());

        testReportDto = initTestReport(testEnvironmentDto, testPlanDto, testReportDto, testSuitDtoList);
        result.setData(testReportDto);

        excute(testSuitDtoList, testEnvironmentDto, planId, testReportDto);
    } catch (Exception e) {
        logger.error("?", e);
        result.setCode(1);
        result.setMessage("" + e.getMessage());
        throw e;
    } finally {
        //?
        changePlanInfo(testSuitDtoList, testEnvironmentDto, planId, PlanStatusEnum.EXECUTED.getId());
    }
    //?
    updateReportResult(testReportDto);

    return result;
}

From source file:com.wms.studio.service.WallpaperServiveImpl.java

@Override
@Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
public PageDto<WallpaperDto> listWallpapers(PageSize pageSize) {

    if (pageSize == null) {
        pageSize = new PageSize();
    }/* ww  w.j  a  v  a 2  s . co m*/

    return this.wallpaperCovert.covertToDto(
            wallpaperRepository.findAll(new PageRequest(pageSize.getPage() - 1, pageSize.getLimit())));
}

From source file:com.gettec.fsnip.fsn.service.business.impl.BusinessUnitServiceImpl.java

@Transactional(propagation = Propagation.NOT_SUPPORTED, rollbackFor = Exception.class)
public int getProductCount() {
    return getDAO().getProductCount();
}