Package org.springframework.data.gemfire
Enum Class JndiDataSourceType
- All Implemented Interfaces:
Serializable
,Comparable<JndiDataSourceType>
,Constable
The JndiDataSourceType class is an enumeration of valid JNDI DataSource implementation types supported by GemFire.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the GemFire name of the support JNDI DataSource implementation type.toString()
Returns a String describing this JNDI DataSource implementation based on the GemFire supported names.static JndiDataSourceType
Returns the enum constant of this class with the specified name.static JndiDataSourceType
valueOfIgnoreCase
(String name) Returns a JndiDataSourceType enumerated value based on the GemFire preferred name for the supported JNDI, DataSource implementation, ignoring case and all extra leading/trailing whitespace.static JndiDataSourceType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MANAGED
-
POOLED
-
SIMPLE
-
XA
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOfIgnoreCase
Returns a JndiDataSourceType enumerated value based on the GemFire preferred name for the supported JNDI, DataSource implementation, ignoring case and all extra leading/trailing whitespace.- Parameters:
name
- the GemFire named JNDI DataSource implementation.- Returns:
- the JndiDataSourceType enumerated value matching the given GemFire name used for the supported JNDI, DataSource implementation, or null if not match was found.
- See Also:
-
values()
isMatch(JndiDataSourceType, String)
-
getName
Gets the GemFire name of the support JNDI DataSource implementation type.- Returns:
- the GemFire named JNDI DataSource implementation.
-
toString
Returns a String describing this JNDI DataSource implementation based on the GemFire supported names.- Overrides:
toString
in classEnum<JndiDataSourceType>
- Returns:
- a String description for this JNDI DataSource (implementation) type.
-