org.jvnet.hk2.config.Transaction.canCommit()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.jvnet.hk2.config.Transaction.canCommit()方法的一些代码示例,展示了Transaction.canCommit()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transaction.canCommit()方法的具体详情如下:
包路径:org.jvnet.hk2.config.Transaction
类名称:Transaction
方法名:canCommit

Transaction.canCommit介绍

[英]Tests if the transaction participants will pass the prepare phase successfully. The prepare phase will invoke validation of the changes, so a positive return usually means the changes are valid and unless a external factor arise, the #commit() method will succeed.
[中]测试事务参与者是否能成功通过准备阶段。准备阶段将调用更改的验证,因此正返回通常意味着更改有效,除非出现外部因素,#commit()方法将成功。

代码示例

代码示例来源:origin: javaee/glassfish

throws RetryableException, TransactionFailure {
if (!canCommit()) {
  throw new RetryableException();

代码示例来源:origin: eclipse-ee4j/glassfish

throws RetryableException, TransactionFailure {
if (!canCommit()) {
  throw new RetryableException();

代码示例来源:origin: com.sun.enterprise/config

throws RetryableException, TransactionFailure {
if (!canCommit()) {
  throw new RetryableException();

代码示例来源:origin: org.glassfish.hk2/config

throws RetryableException, TransactionFailure {
if (!canCommit()) {
  throw new RetryableException();

代码示例来源:origin: org.glassfish.hk2/hk2-config

throws RetryableException, TransactionFailure {
if (!canCommit()) {
  throw new RetryableException();

相关文章