Enum ConnectionIdentifier.Type

    • Enum Constant Detail

      • CORE

        public static final ConnectionIdentifier.Type CORE
        Core system DB connection. No ID required. There exists exactly one core system DB connection.
      • DB_ACCESS_ENTITY

        public static final ConnectionIdentifier.Type 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 Detail

      • values

        public static ConnectionIdentifier.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ConnectionIdentifier.Type c : ConnectionIdentifier.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ConnectionIdentifier.Type valueOf​(String name)
        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 name
        NullPointerException - if the argument is null
      • isValidId

        public boolean isValidId​(Serializable id)
        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