Rule Execution Server API

ilog.rules.res.session.config
Enum IlrPersistenceType

java.lang.Object
  extended by java.lang.Enum<IlrPersistenceType>
      extended by ilog.rules.res.session.config.IlrPersistenceType
All Implemented Interfaces:
Serializable, Comparable<IlrPersistenceType>

public enum IlrPersistenceType
extends Enum<IlrPersistenceType>

Represents the supported persistence types: file, JDBC, or datasource.

Since:
8.0

Enum Constant Summary
DATASOURCE
          Datasource based persistence.
FILE
          File system based persistence.
JDBC
          JDBC based persistence.
 
Method Summary
 String getName()
          Returns the string representation of this persistence type.
static IlrPersistenceType parse(String name)
          Parses a string representation of a persistence type.
 String toString()
           
static IlrPersistenceType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IlrPersistenceType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FILE

public static final IlrPersistenceType FILE
File system based persistence.


JDBC

public static final IlrPersistenceType JDBC
JDBC based persistence.


DATASOURCE

public static final IlrPersistenceType DATASOURCE
Datasource based persistence.

Method Detail

values

public static IlrPersistenceType[] values()
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IlrPersistenceType valueOf(String name)
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name

toString

public String toString()
Overrides:
toString in class Enum<IlrPersistenceType>

getName

public String getName()
Returns the string representation of this persistence type. Can be parsed by parse(String).

Returns:
the string representation of this persistence type

parse

public static IlrPersistenceType parse(String name)
Parses a string representation of a persistence type. Parsable values correspond to the values returned by getName().

Throws:
IllegalArgumentException - in case no IlrPersistenceType value correspond to the given name
Parameters:
name - the name to be parsed
Returns:
the IlrPersistenceType value corresponding to name

Rule Execution Server API

© Copyright IBM Corp. 1987, 2012