Enum NamedObject

java.lang.Object
java.lang.Enum<NamedObject>
net.sf.jsqlparser.util.validation.metadata.NamedObject
All Implemented Interfaces:
Serializable, Comparable<NamedObject>

public enum NamedObject extends Enum<NamedObject>
  • Enum Constant Details

    • 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]
    • index

      public static final NamedObject index
    • 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]
    • synonym

      public static final NamedObject synonym
    • procedure

      public static final NamedObject procedure
    • user

      public static final NamedObject user
    • role

      public static final NamedObject role
    • trigger

      public static final NamedObject trigger
    • alias

      public static final NamedObject alias
  • Constructor Details

    • NamedObject

      private NamedObject()
  • Method Details

    • values

      public static NamedObject[] 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

      public static NamedObject 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
    • equalsIgnoreCase

      public boolean equalsIgnoreCase(String name)
    • forName

      public static NamedObject forName(String name)
      Parameters:
      name -
      Returns:
      null, if not found, otherwise the NamedObject