• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java TransactionSupport类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中javax.resource.spi.TransactionSupport的典型用法代码示例。如果您正苦于以下问题:Java TransactionSupport类的具体用法?Java TransactionSupport怎么用?Java TransactionSupport使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TransactionSupport类属于javax.resource.spi包,在下文中一共展示了TransactionSupport类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: doBenchTransx

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
protected void doBenchTransx() throws Exception {
    DataSource ds = ManagedDataSourceBuilder.builder()
            .dataSource(new StubDataSource())
            .transaction(TransactionSupport.TransactionSupportLevel.NoTransaction)
            .userName("brettw")
            .password("")
            .minIdle(0)
            .maxPoolSize(32)
            .connectionTimeout(8000)
            .build();
    doBench(ds);
    ((AutoCloseable) ds).close();
}
 
开发者ID:ops4j,项目名称:org.ops4j.pax.transx,代码行数:14,代码来源:Bench.java


示例2: setup

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
@Setup(Level.Trial)
public void setup(BenchmarkParams params) throws Exception
{
    DS = ManagedDataSourceBuilder.builder()
            .dataSource(new StubDataSource())
            .userName("gnodet")
            .password("")
            .transaction(TransactionSupport.TransactionSupportLevel.NoTransaction)
            .minIdle(0)
            .maxPoolSize(maxPoolSize)
            .connectionTimeout(8000)
            .build();
}
 
开发者ID:ops4j,项目名称:org.ops4j.pax.transx,代码行数:14,代码来源:BenchBase.java


示例3: createNoTxActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation W/o Tx
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 2)
private ResourceAdaptersDescriptor createNoTxActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.NoTransaction,
         "UnifiedSecurityNoTxConnectionFactory", true, 10);
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:FlushAllIdleConnectionTestCase.java


示例4: createNoTxNoPrefillActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation w7o Tx w/o Prefill
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.NoTransaction,
         "UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0, "AllIdleConnections");
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:FlushAllIdleConnectionTestCase.java


示例5: createNoTxActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation w7o Tx
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 2)
private ResourceAdaptersDescriptor createNoTxActivation() throws Throwable
{
   return ResourceAdapterFactory
         .createCapacityActivation(null, null, TransactionSupport.TransactionSupportLevel.NoTransaction,
               "CapacityNoTxConnectionFactory", MaxPoolSizeIncrementer.class.getName(),
               MinPoolSizeDecrementer.class.getName());
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:14,代码来源:CapacityNoCredentialsTestCase.java


示例6: createNoTxActivationFILO

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation w7o Tx
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxActivationFILO() throws Throwable
{
   return ResourceAdapterFactory
         .createCapacityActivation(null, null, TransactionSupport.TransactionSupportLevel.NoTransaction,
               "CapacityNoTxConnectionFactoryFILO", MaxPoolSizeIncrementer.class.getName(),
               TimedOutDecrementer.class.getName());
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:14,代码来源:CapacityNoCredentialsTestCase.java


示例7: createNoTxActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation w7o Tx
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 2)
private ResourceAdaptersDescriptor createNoTxActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.NoTransaction,
         "UnifiedSecurityNoTxConnectionFactory", false, 0);
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:NoCredentialsTestCase.java


示例8: createActivationLocalTx

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 3)
private ResourceAdaptersDescriptor createActivationLocalTx() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.LocalTransaction,
         "UnifiedSecurityLocalTxConnectionFactory", false, 0);
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:NoCredentialsTestCase.java


示例9: createActivationXaTx

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 4)
private ResourceAdaptersDescriptor createActivationXaTx() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.XATransaction,
         "UnifiedSecurityXATxConnectionFactory", false, 0);
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:NoCredentialsTestCase.java


示例10: createNoTxNoPrefillActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation w7o Tx w/o Prefill
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.NoTransaction,
         "UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0, "AllInvalidIdleConnections", true, null, null);
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:FlushAllInvalidIdleConnectionTestCase.java


示例11: createNoTxNoPrefillActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation w7o Tx w/o Prefill
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.NoTransaction,
         "UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0, "InvalidIdleConnections", true, null, null);
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:FlushInvalidIdleConnectionTestCase.java


示例12: createNoTxActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation W/o Tx
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 2)
private ResourceAdaptersDescriptor createNoTxActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, "DefaultSecurityDomain",
         TransactionSupport.TransactionSupportLevel.NoTransaction,
         "UnifiedSecurityNoTxConnectionFactory", false, 0);
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:SubjectTestCase.java


示例13: createLocalTxActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation W/ LocalTx
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 3)
private ResourceAdaptersDescriptor createLocalTxActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, "DefaultSecurityDomain",
         TransactionSupport.TransactionSupportLevel.LocalTransaction,
         "UnifiedSecurityLocalTxConnectionFactory", false, 0);
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:SubjectTestCase.java


示例14: createXATxActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation W/ XATx
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 4)
private ResourceAdaptersDescriptor createXATxActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, "DefaultSecurityDomain",
         TransactionSupport.TransactionSupportLevel.XATransaction,
         "UnifiedSecurityXATxConnectionFactory", false, 0);
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:SubjectTestCase.java


示例15: createNoTxNoPrefillActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation w7o Tx w/o Prefill
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.NoTransaction,
         "UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0);
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:FlushMethodCallCriTestCase.java


示例16: createNoTxNoPrefillActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation w7o Tx w/o Prefill
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.NoTransaction,
         "UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0, "AllConnections");
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:FlushAllConnectionsTestCase.java


示例17: createNoTxNoPrefillActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation w7o Tx w/o Prefill
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.NoTransaction,
         "UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0, "IdleConnections");
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:FlushIdleConnectionTestCase.java


示例18: createNoTxNoPrefillActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation w7o Tx w/o Prefill
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.NoTransaction,
         "UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0, "FailingConnectionOnly");
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:FlushFailingConnectionOnlyTestCase.java


示例19: createNoTxNoPrefillActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation w7o Tx w/o Prefill
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.NoTransaction,
         "UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0, "EntirePool");
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:FlushEntirePoolTestCase.java


示例20: createNoTxNoPrefillActivation

import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
 * The activation w7o Tx w/o Prefill
 *
 * @throws Throwable In case of an error
 */
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
   return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
         TransactionSupport.TransactionSupportLevel.NoTransaction,
         "UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0, "Gracefully");
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:13,代码来源:FlushGracefullyTestCase.java



注:本文中的javax.resource.spi.TransactionSupport类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ClassInfo类代码示例发布时间:2022-05-23
下一篇:
Java ClientPipelineHook类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap