Java Code Examples for org.apache.ignite.cache.CacheAtomicityMode#TRANSACTIONAL

The following examples show how to use org.apache.ignite.cache.CacheAtomicityMode#TRANSACTIONAL . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IgniteSqlNotNullConstraintTest.java    From ignite with Apache License 2.0 5 votes vote down vote up
/** */
private void executeWithAllTxCaches(final TestClosure clo) throws Exception {
    for (CacheConfiguration ccfg : cacheConfigurations()) {
        if (ccfg.getAtomicityMode() == CacheAtomicityMode.TRANSACTIONAL) {
            for (TransactionConcurrency con : TransactionConcurrency.values()) {
                for (TransactionIsolation iso : TransactionIsolation.values())
                    executeForCache(ccfg, clo, con, iso);
            }
        }
    }
}
 
Example 2
Source File: JdbcThinDynamicIndexTransactionalReplicatedSelfTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 3
Source File: GridCacheContinuousQueryReplicatedTxOneNodeTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/**
 * @return Atomicity mode for a cache.
 */
protected CacheAtomicityMode atomicMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 4
Source File: IgniteCachePartitionedTransactionalColumnConstraintsTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override @NotNull protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 5
Source File: IgniteCacheReplicatedTransactionalColumnConstraintsTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@NotNull @Override protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 6
Source File: GridCacheBinaryTransactionalEntryProcessorDeploymentSelfTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 7
Source File: JdbcThinDynamicIndexTransactionalPartitionedSelfTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 8
Source File: ClientReconnectContinuousQueryTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/**
 * @return Transaction snapshot.
 */
protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 9
Source File: H2DynamicIndexingComplexClientTransactionalPartitionedTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/**
 * Constructor.
 */
public H2DynamicIndexingComplexClientTransactionalPartitionedTest() {
    super(CacheMode.PARTITIONED, CacheAtomicityMode.TRANSACTIONAL, 1, CLIENT_IDX);
}
 
Example 10
Source File: GridCacheClientModesTcpClientDiscoveryAbstractTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 11
Source File: GridCacheClientModesTcpClientDiscoveryAbstractTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 12
Source File: CacheVersionedEntryPartitionedTransactionalSelfTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 13
Source File: H2DynamicIndexingComplexClientTransactionalPartitionedNoBackupsTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/**
 * Constructor.
 */
public H2DynamicIndexingComplexClientTransactionalPartitionedNoBackupsTest() {
    super(CacheMode.PARTITIONED, CacheAtomicityMode.TRANSACTIONAL, 0, CLIENT_IDX);
}
 
Example 14
Source File: DynamicIndexPartitionedTransactionalConcurrentSelfTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/**
 * Constructor.
 */
public DynamicIndexPartitionedTransactionalConcurrentSelfTest() {
    super(CacheMode.PARTITIONED, CacheAtomicityMode.TRANSACTIONAL);
}
 
Example 15
Source File: CacheContinuousQueryCounterReplicatedTxTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 16
Source File: GridCacheInterceptorTransactionalRebalanceTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 17
Source File: H2DynamicIndexingComplexServerTransactionalReplicatedTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/**
 * Constructor.
 */
public H2DynamicIndexingComplexServerTransactionalReplicatedTest() {
    super(CacheMode.REPLICATED, CacheAtomicityMode.TRANSACTIONAL, 1, SRV_IDX);
}
 
Example 18
Source File: CacheContinuousQueryCounterPartitionedTxTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 19
Source File: GridCacheContinuousQueryPartitionTxOneNodeTest.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override protected CacheAtomicityMode atomicMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}
 
Example 20
Source File: GridCacheCommandHandlerSelfTest.java    From ignite with Apache License 2.0 2 votes vote down vote up
/**
 *
 * @return CacheAtomicityMode for the cache.
 */
protected CacheAtomicityMode atomicityMode() {
    return CacheAtomicityMode.TRANSACTIONAL;
}