org.javalite.activejdbc.cache
Enum CacheEvent.CacheEventType

java.lang.Object
  extended by java.lang.Enum<CacheEvent.CacheEventType>
      extended by org.javalite.activejdbc.cache.CacheEvent.CacheEventType
All Implemented Interfaces:
Serializable, Comparable<CacheEvent.CacheEventType>
Enclosing class:
CacheEvent

public static enum CacheEvent.CacheEventType
extends Enum<CacheEvent.CacheEventType>


Enum Constant Summary
ALL
          This type means that all caches need to be cleared.
GROUP
          This type means that only a cache for a specific group (table) needs to be cleared.
 
Method Summary
static CacheEvent.CacheEventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CacheEvent.CacheEventType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALL

public static final CacheEvent.CacheEventType ALL
This type means that all caches need to be cleared.


GROUP

public static final CacheEvent.CacheEventType GROUP
This type means that only a cache for a specific group (table) needs to be cleared.

Method Detail

values

public static CacheEvent.CacheEventType[] 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 (CacheEvent.CacheEventType c : CacheEvent.CacheEventType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CacheEvent.CacheEventType 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 name
NullPointerException - if the argument is null


Copyright © 2015 JavaLite. All rights reserved.