Enum ConnectionIdentifier.Type
- All Implemented Interfaces:
Serializable, Comparable<ConnectionIdentifier.Type>
- Enclosing class:
ConnectionIdentifier
- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCore system DB connection.Connection to a specific database defined by a DB access entity. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Serializable> booleanChecks if the given ID is valid for this connection type.static ConnectionIdentifier.TypeReturns the enum constant of this type with the specified name.static ConnectionIdentifier.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CORE
Core system DB connection. No ID required. There exists exactly one core system DB connection. -
DB_ACCESS_ENTITY
Connection to a specific database defined by a DB access entity. The ID must be of type Long and refer to the ID (primary key) of the DB access entity.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
isValidId
Checks if the given ID is valid for this connection type.- Parameters:
id- the ID to check- Returns:
- true if the ID is valid for this type, false otherwise
-
getIdClass
-