List of usage examples for org.springframework.transaction.annotation Propagation NOT_SUPPORTED
Propagation NOT_SUPPORTED
To view the source code for org.springframework.transaction.annotation Propagation NOT_SUPPORTED.
Click Source Link
From source file:com.dm.platform.core.service.impl.BaseService.java
@Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED) @Override public Model find(Object entityId) { return null; }
From source file:com.mycomm.dao.mydao.base.MyDaoSupport.java
@Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED) public ResultHelp<T> getScrollData(int firstindex, int maxresult, String wherejpql, Object[] queryParams, LinkedHashMap<String, String> orderby) { ResultHelp qr = new ResultHelp<T>(); String entityname = getEntityName(this.entityClass); Query query = entityManager.createQuery("select o from " + entityname + " o " + (wherejpql == null || "".equals(wherejpql.trim()) ? "" : "where " + wherejpql) + buildOrderby(orderby));//from w w w .j av a2 s . c om setQueryParams(query, queryParams); if (firstindex != -1 && maxresult != -1) { query.setFirstResult(firstindex).setMaxResults(maxresult); } qr.setResultlist(query.getResultList()); query = entityManager.createQuery("select count(" + getCountField(this.entityClass) + ") from " + entityname + " o " + (wherejpql == null || "".equals(wherejpql.trim()) ? "" : "where " + wherejpql)); setQueryParams(query, queryParams); qr.setTotalrecord((Long) query.getSingleResult()); return qr; }
From source file:com.dm.platform.core.service.impl.BaseService.java
@Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED) @Override public long getCount() { return 0; }
From source file:com.gettec.fsnip.fsn.service.product.impl.ProductInstanceServiceImpl.java
@Transactional(propagation = Propagation.NOT_SUPPORTED, rollbackFor = Exception.class) public ProductInstance findLastByPID(Long productId) { return getDAO().findLastBySP(null, productId); }
From source file:com.gcrm.service.impl.BaseService.java
@Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true) public T findByName(String clazz, String name) { return baseDao.findByName(clazz, name); }
From source file:org.hsweb.web.service.impl.datasource.DataSourceServiceImpl.java
@Override @Cacheable(value = CACHE_NAME, key = "'id:'+#id") @Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED) public DataSource selectByPk(String id) { return super.selectByPk(id); }
From source file:com.gcrm.service.impl.OptionService.java
@SuppressWarnings({ "rawtypes", "unchecked" }) @Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true) public T getOptionById(Class<T> entityClass, Integer id) { T option = null;//from w ww .j a va2 s . c o m String clazz = entityClass.getSimpleName(); if (itemsMap.containsKey(clazz)) { Map itemMap = itemsMap.get(clazz); option = (T) itemMap.get(id); } else { option = this.getBaseDao().getEntityById(entityClass, id); } return option; }
From source file:com.dm.platform.core.service.impl.BaseService.java
@SuppressWarnings("unchecked") @Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED) @Override/*from w ww.j ava 2 s . c o m*/ public QueryResult<Model> getScrollData(int firstIndex, int maxResult, String whereJpql, Object[] queryParams, LinkedHashMap<String, String> orderBy) { return null; }
From source file:com.gettec.fsnip.fsn.service.product.impl.ProductInstanceServiceImpl.java
@Transactional(propagation = Propagation.NOT_SUPPORTED, rollbackFor = Exception.class) public ProductInstance findByBSP(String batchSerialNo, String serial, Long productId) { return getDAO().findByBSP(batchSerialNo, serial, productId); }
From source file:com.gcrm.service.impl.BaseService.java
@Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true) public List<T> findByParam(String hql, Object paramValue) { return baseDao.findByParam(hql, paramValue); }