ilog.rules.res.session.config

Enum IlrPersistenceType

  • java.lang.Object
  • 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.
      • 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
    • 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 name
        java.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 class java.lang.Enum<IlrPersistenceType>
      • getName

        public java.lang.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(java.lang.String name)
        Parses a string representation of a persistence type. Parsable values correspond to the values returned by getName().
        Throws:
        ilog.rules.res.session.internal.IlrIllegalPersistenceTypeException
        java.lang.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

© Copyright IBM Corp. 1987, 2020