- java.lang.Object
-
- java.lang.Enum<NamedObject>
-
- net.sf.jsqlparser.util.validation.metadata.NamedObject
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NamedObject>
public enum NamedObject extends java.lang.Enum<NamedObject>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description alias
column
a name constisting of min 2 (the table-reference) and max.constraint
database
a name constisting of max.index
procedure
role
schema
a name constisting of max.sequence
a name constisting of max.synonym
table
a name constisting of max.trigger
uniqueConstraint
user
view
a name constisting of max.
-
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.
-
-
-
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]
-
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
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
forName
public static NamedObject forName(java.lang.String name)
- Parameters:
name
-- Returns:
null
, if not found, otherwise theNamedObject
-
equalsIgnoreCase
public boolean equalsIgnoreCase(java.lang.String name)
-
-