Enum HibernateObjectDao.Cacheability
- java.lang.Object
-
- java.lang.Enum<HibernateObjectDao.Cacheability>
-
- com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao.Cacheability
-
- All Implemented Interfaces:
Serializable
,Comparable<HibernateObjectDao.Cacheability>
- Enclosing class:
- HibernateObjectDao<T extends com.atlassian.core.bean.EntityObject>
public static enum HibernateObjectDao.Cacheability extends Enum<HibernateObjectDao.Cacheability>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CACHEABLE
Deprecated.since 5.8 - Hibernate query caching isn't cluster-friendly and should be avoidedNOT_CACHEABLE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HibernateObjectDao.Cacheability
fromBoolean(boolean flag)
static HibernateObjectDao.Cacheability
valueOf(String name)
Returns the enum constant of this type with the specified name.static HibernateObjectDao.Cacheability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CACHEABLE
@Deprecated public static final HibernateObjectDao.Cacheability CACHEABLE
Deprecated.since 5.8 - Hibernate query caching isn't cluster-friendly and should be avoided
-
NOT_CACHEABLE
public static final HibernateObjectDao.Cacheability NOT_CACHEABLE
-
-
Method Detail
-
values
public static HibernateObjectDao.Cacheability[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HibernateObjectDao.Cacheability c : HibernateObjectDao.Cacheability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HibernateObjectDao.Cacheability valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromBoolean
public static HibernateObjectDao.Cacheability fromBoolean(boolean flag)
-
-