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.mycomm.dao.mydao.base.MyDaoSupport.java
@Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED) public long getCount() { String jpq_getcount = "select count(" + getCountField(this.entityClass) + ") from " + getEntityName(this.entityClass) + " o"; return (Long) entityManager.createQuery(jpq_getcount).getSingleResult(); }
From source file:com.xyz.framework.data.impl.JpaDao.java
/** * ?.//from w ww. ja va 2s .c om */ @Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true) public Page<T> getAll(final Page<T> page) { return findPage(page, ""); }
From source file:org.hsweb.web.service.impl.quartz.QuartzJobHistoryServiceImpl.java
@Override @Transactional(propagation = Propagation.NOT_SUPPORTED) public String createAndInsertHistory(String jobId) { QuartzJobHistory history = new QuartzJobHistory(); history.setId(QuartzJobHistory.createUID()); history.setStatus(QuartzJobHistory.Status.RUNNING.getValue()); history.setStartTime(new Date()); history.setJobId(jobId);/* w w w. ja v a2s . co m*/ quartzJobHistoryMapper.insert(InsertParam.build(history)); return history.getId(); }
From source file:org.openhie.openempi.dao.UserDao.java
/** * Retrieves the password in DB for a user * @param username the user's username//from www . j a v a 2 s. c o m * @return the password in DB, if the user is already persisted */ @Transactional(propagation = Propagation.NOT_SUPPORTED) String getUserPassword(String username);
From source file:ca.uhn.fhir.jpa.search.StaleSearchDeletingSvc.java
@Scheduled(fixedDelay = 10 * DateUtils.MILLIS_PER_SECOND) @Transactional(propagation = Propagation.NOT_SUPPORTED) public synchronized void pollForStaleSearches() { Date cutoff = new Date(System.currentTimeMillis() - myDaoConfig.getExpireSearchResultsAfterMillis()); ourLog.debug("Searching for searches which are before {}", cutoff); Collection<Search> toDelete = mySearchDao.findWhereCreatedBefore(cutoff); if (toDelete.isEmpty()) { return;/*from w w w . j a v a2 s. c o m*/ } TransactionTemplate tt = new TransactionTemplate(myTransactionManager); for (final Search next : toDelete) { tt.execute(new TransactionCallbackWithoutResult() { @Override protected void doInTransactionWithoutResult(TransactionStatus theArg0) { Search searchToDelete = mySearchDao.findOne(next.getId()); ourLog.info("Expiring stale search {} / {}", searchToDelete.getId(), searchToDelete.getUuid()); mySearchIncludeDao.deleteForSearch(searchToDelete.getId()); mySearchResultDao.deleteForSearch(searchToDelete.getId()); mySearchDao.delete(searchToDelete); } }); } ourLog.info("Deleted {} searches, {} remaining", toDelete.size(), mySearchDao.count()); }
From source file:ca.uhn.fhir.jpa.search.StaleSearchDeletingSvcImpl.java
@Scheduled(fixedDelay = 10 * DateUtils.MILLIS_PER_SECOND) @Transactional(propagation = Propagation.NOT_SUPPORTED) @Override//www . j a v a 2 s .c o m public synchronized void schedulePollForStaleSearches() { if (!myDaoConfig.isSchedulingDisabled()) { if (myDaoConfig.isExpireSearchResults()) { pollForStaleSearchesAndDeleteThem(); } } }
From source file:org.musicrecital.dao.UserDao.java
/** * Retrieves the password in DB for a user * @param userId the user's id//w w w. jav a 2 s.c o m * @return the password in DB, if the user is already persisted */ @Transactional(propagation = Propagation.NOT_SUPPORTED) String getUserPassword(Long userId);
From source file:gov.nih.nci.cabig.caaers.dao.report.ReportDao.java
/** * Get the Class representation of the domain object that this DAO is representing. * // www .jav a2s.c om * @return Class representation of the domain object that this DAO is representing. */ @Override @Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED) public Class<Report> domainClass() { return Report.class; }
From source file:com.eclecticlogic.pedal.impl.TransactionImpl.java
/** * @param propagation/* w ww. j a va2s. c om*/ * @return */ @Override public TransactionRunner with(Propagation propagation) { if (propagation == Propagation.NOT_SUPPORTED) { throw new IllegalArgumentException(propagation.name()); } else { DefaultTransactionDefinition transactionDefinition = new DefaultTransactionDefinition(); transactionDefinition.setPropagationBehavior(propagation.value()); localTransactionDefinition.get().push(transactionDefinition); return this; } }
From source file:gov.nih.nci.cabig.caaers.dao.InvestigatorDao.java
/** * Get the Class representation of the domain object that this DAO is representing. * //from w ww.j av a 2s .co m * @return Class representation of the domain object that this DAO is representing. */ @Override @Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED) public Class<Investigator> domainClass() { return Investigator.class; }