Top Description Fields Constructors Methods
org.hibernate.annotations

public final Enum CacheConcurrencyStrategy

extends Enum<CacheConcurrencyStrategy>
Class Inheritance
Imports
org.hibernate.cache.spi.access.AccessType

Cache concurrency strategy.
Author
Emmanuel Bernard

Field Summary

Modifier and TypeField and Description
private final AccessType
public static final CacheConcurrencyStrategy
NONE

Indicates no concurrency strategy should be applied.

public static final CacheConcurrencyStrategy
NONSTRICT_READ_WRITE

Indicates that the non-strict read-write strategy should be applied.

public static final CacheConcurrencyStrategy
READ_ONLY

Indicates that read-only strategy should be applied.

public static final CacheConcurrencyStrategy
READ_WRITE

Indicates that the read-write strategy should be applied.

public static final CacheConcurrencyStrategy
TRANSACTIONAL

Indicates that the transaction strategy should be applied.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CacheConcurrencyStrategy

Returns:

The corresponding enum value. NONE is returned by default if unable to recognize accessType or if accessType is null.
fromAccessType
(AccessType
The access type to convert
accessType
)

Conversion from AccessType to CacheConcurrencyStrategy.

private boolean
public static CacheConcurrencyStrategy

Returns:

The corresponding enum value, or null if not match was found.
parse
(String
The external representation
name
)

Parse an external representation of a CacheConcurrencyStrategy value.

public AccessType

Returns:

The corresponding concurrency strategy. Note that this will return null for NONE
toAccessType
()

Get the AccessType corresponding to this concurrency strategy.

public static CacheConcurrencyStrategy
public static CacheConcurrencyStrategy[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

accessTypeback to summary
private final AccessType accessType
NONEback to summary
public static final CacheConcurrencyStrategy NONE

Indicates no concurrency strategy should be applied.

NONSTRICT_READ_WRITEback to summary
public static final CacheConcurrencyStrategy NONSTRICT_READ_WRITE

Indicates that the non-strict read-write strategy should be applied.

See Also
AccessType#NONSTRICT_READ_WRITE
READ_ONLYback to summary
public static final CacheConcurrencyStrategy READ_ONLY

Indicates that read-only strategy should be applied.

See Also
AccessType#READ_ONLY
READ_WRITEback to summary
public static final CacheConcurrencyStrategy READ_WRITE

Indicates that the read-write strategy should be applied.

See Also
AccessType#READ_WRITE
TRANSACTIONALback to summary
public static final CacheConcurrencyStrategy TRANSACTIONAL

Indicates that the transaction strategy should be applied.

See Also
AccessType#TRANSACTIONAL

Constructor Detail

CacheConcurrencyStrategyback to summary
private CacheConcurrencyStrategy(AccessType accessType)

Method Detail

fromAccessTypeback to summary
public static CacheConcurrencyStrategy fromAccessType(AccessType accessType)

Conversion from AccessType to CacheConcurrencyStrategy.

Parameters
accessType:AccessType

The access type to convert

Returns:CacheConcurrencyStrategy

The corresponding enum value. NONE is returned by default if unable to recognize accessType or if accessType is null.

isMatchback to summary
private boolean isMatch(String name)
parseback to summary
public static CacheConcurrencyStrategy parse(String name)

Parse an external representation of a CacheConcurrencyStrategy value.

Parameters
name:String

The external representation

Returns:CacheConcurrencyStrategy

The corresponding enum value, or null if not match was found.

toAccessTypeback to summary
public AccessType toAccessType()

Get the AccessType corresponding to this concurrency strategy.

Returns:AccessType

The corresponding concurrency strategy. Note that this will return null for NONE

valueOfback to summary
public static CacheConcurrencyStrategy valueOf(String name)
valuesback to summary
public static CacheConcurrencyStrategy[] values()