Enum NamedObject

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<NamedObject>

    public enum NamedObject
    extends java.lang.Enum<NamedObject>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NamedObject()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equalsIgnoreCase​(java.lang.String name)  
      static NamedObject forName​(java.lang.String name)  
      static NamedObject valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static NamedObject[] 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, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • database

        public static final NamedObject database
        a name constisting of max. 1 identifiers, i.e. [database]
      • schema

        public static final NamedObject schema
        a name constisting of max. 2 identifiers, i.e. [database].[schema]
      • table

        public static final NamedObject table
        a name constisting of max. 3 identifiers, i.e. [catalog].[schema].[table]
      • view

        public static final NamedObject view
        a name constisting of max. 3 identifiers, i.e. [catalog].[schema].[view]
      • column

        public static final NamedObject column
        a name constisting of min 2 (the table-reference) and max. 4 identifiers, i.e. [catalog].[schema].[table].[columnName]
      • constraint

        public static final NamedObject constraint
      • uniqueConstraint

        public static final NamedObject uniqueConstraint
      • sequence

        public static final NamedObject sequence
        a name constisting of max. 3 identifiers, i.e. [catalog].[schema].[sequence]
    • Constructor Detail

      • NamedObject

        private NamedObject()
    • Method Detail

      • values

        public static NamedObject[] 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 (NamedObject c : NamedObject.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NamedObject valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • forName

        public static NamedObject forName​(java.lang.String name)
        Parameters:
        name -
        Returns:
        null, if not found, otherwise the NamedObject
      • equalsIgnoreCase

        public boolean equalsIgnoreCase​(java.lang.String name)