ilog.rules.res.session.config
Enum IlrPersistenceType
- java.lang.Object
-
- java.lang.Enum<IlrPersistenceType>
-
- ilog.rules.res.session.config.IlrPersistenceType
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<IlrPersistenceType>
public enum IlrPersistenceType extends java.lang.Enum<IlrPersistenceType>
Represents the supported persistence types: file, JDBC, or datasource.- Since:
- 8.0
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description DATASOURCE
Datasource based persistence.FILE
File system based persistence.JDBC
JDBC based persistence.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getName()
Returns the string representation of this persistence type.static IlrPersistenceType
parse(java.lang.String name)
Parses a string representation of a persistence type.java.lang.String
toString()
static IlrPersistenceType
valueOf(java.lang.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.
-
-
-
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(java.lang.String name)
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.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 java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<IlrPersistenceType>
-
getName
public java.lang.String getName()
Returns the string representation of this persistence type. Can be parsed byparse(String)
.- Returns:
- the string representation of this persistence type
-
parse
public static IlrPersistenceType parse(java.lang.String name)
Parses a string representation of a persistence type. Parsable values correspond to the values returned bygetName()
.- Throws:
ilog.rules.res.session.internal.IlrIllegalPersistenceTypeException
java.lang.IllegalArgumentException
- in case noIlrPersistenceType
value correspond to the given name- Parameters:
name
- the name to be parsed- Returns:
- the
IlrPersistenceType
value corresponding to name
-
-