Java 类org.springframework.data.jpa.repository.Lock 实例源码

项目:ait-platform    文件:IAitTaskEmailPivotRepo.java   
@Lock(LockModeType.PESSIMISTIC_WRITE)
@Query("SELECT p FROM AitTaskEmailPivot p WHERE p.state = ?1 order by p.id")
List<AitTaskEmailPivot> listByState(final String state);
项目:configcenter    文件:PropertyValueDao.java   
@Lock(LockModeType.PESSIMISTIC_WRITE)
PropertyValue findLockByAppCodeAndKeyAndProfileCode(String appCode, String key, String profileCode);
项目:configcenter    文件:AppDao.java   
@Lock(LockModeType.PESSIMISTIC_WRITE)
App findLockByAppCode(String appCode);
项目:configcenter    文件:ProfileDao.java   
@Lock(LockModeType.PESSIMISTIC_WRITE)
Profile findLockByProfileCode(String profileCode);
项目:configcenter    文件:PropertyKeyDao.java   
@Lock(LockModeType.PESSIMISTIC_WRITE)
PropertyKey findLockByAppCodeAndKey(String appCode, String key);
项目:configcenter    文件:ManagerDao.java   
@Lock(LockModeType.PESSIMISTIC_WRITE)
Manager findLockByManagerCode(String managerCode);
项目:configcenter    文件:ManagerAppDao.java   
@Lock(LockModeType.PESSIMISTIC_WRITE)
ManagerApp findLockByManagerCodeAndAppCode(String managerCode, String appCode);
项目:payment    文件:TransactionDao.java   
@Lock(LockModeType.PESSIMISTIC_WRITE)
@Query("SELECT m FROM #{#entityName} m WHERE m.id=:transactionId")
TransactionPO findOneOnLock(@Param("transactionId") Long transactionId);
项目:payment    文件:TransactionDao.java   
@Lock(LockModeType.PESSIMISTIC_WRITE)
@Query("SELECT m FROM #{#entityName} m WHERE m.transactionNo=:orderNo")
List<TransactionPO> findByOrderNoOnLock(@Param("orderNo") String orderNo);
项目:springboot-tourreservation    文件:TourinfoRepository.java   
@Query("SELECT t FROM Tourinfo t WHERE t.tourCode = :tourCode")
@Lock(LockModeType.PESSIMISTIC_WRITE)
Tourinfo findOneForUpdate(@Param("tourCode") String tourCode);
项目:springboot-tourreservation    文件:ReserveRepository.java   
@Query("SELECT r FROM Reserve r WHERE reserveNo = :reserveNo")
@Lock(LockModeType.PESSIMISTIC_WRITE)
Reserve findOneForUpdate(@Param("reserveNo") String reserveNo);
项目:yona-server    文件:UserRepository.java   
@Lock(LockModeType.PESSIMISTIC_WRITE)
@Query("select u from User u where u.id = :id")
User findOneForUpdate(@Param("id") UUID id);
项目:imcms    文件:VersionRepository.java   
@Lock(LockModeType.PESSIMISTIC_WRITE)
@Query(name = "Version.findLatestNo")
Integer findLatestNoForUpdate(int docId);
项目:OperatieBRP    文件:SelectieTaakJpaRepository.java   
/**
 * Zoek een gepersisteerde {@link Selectietaak selectietaak} voor een update.
 * @param id het ID van de taak
 * @return de selectietaak
 */
@Query("select t from Selectietaak t where id= :id")
@Lock(LockModeType.PESSIMISTIC_WRITE)
Selectietaak findOneForUpdate(@Param("id") Integer id);
项目:rest-example    文件:JpaRepositoryCustomisations.java   
/**
 * Persists the supplied entity.
 * If the entity has an id and previously has been persisted, it will be merged
 *  to the persistence context otherwise it will be inserted into the
 *  persistence context.
 *
 * @param inEntity Entity to persist.
 * @return Persisted entity.
 */
@Lock(LockModeType.PESSIMISTIC_WRITE)
T persist(T inEntity);