Enum DBIdentifier.DBIdentifierType
- java.lang.Object
-
- java.lang.Enum<DBIdentifier.DBIdentifierType>
-
- org.apache.openjpa.jdbc.identifier.DBIdentifier.DBIdentifierType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DBIdentifier.DBIdentifierType>
- Enclosing class:
- DBIdentifier
public static enum DBIdentifier.DBIdentifierType extends java.lang.Enum<DBIdentifier.DBIdentifierType>
Database identifier types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CATALOG
COLUMN
used for column namesCOLUMN_DEFINITION
used for column type definitionCONSTANT
CONSTRAINT
DATABASE
DEFAULT
FOREIGN_KEY
INDEX
NULL
PROCEDURE
SCHEMA
SEQUENCE
TABLE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DBIdentifier.DBIdentifierType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DBIdentifier.DBIdentifierType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final DBIdentifier.DBIdentifierType DEFAULT
-
TABLE
public static final DBIdentifier.DBIdentifierType TABLE
-
SCHEMA
public static final DBIdentifier.DBIdentifierType SCHEMA
-
CATALOG
public static final DBIdentifier.DBIdentifierType CATALOG
-
DATABASE
public static final DBIdentifier.DBIdentifierType DATABASE
-
COLUMN
public static final DBIdentifier.DBIdentifierType COLUMN
used for column names
-
COLUMN_DEFINITION
public static final DBIdentifier.DBIdentifierType COLUMN_DEFINITION
used for column type definition
-
SEQUENCE
public static final DBIdentifier.DBIdentifierType SEQUENCE
-
CONSTRAINT
public static final DBIdentifier.DBIdentifierType CONSTRAINT
-
INDEX
public static final DBIdentifier.DBIdentifierType INDEX
-
FOREIGN_KEY
public static final DBIdentifier.DBIdentifierType FOREIGN_KEY
-
CONSTANT
public static final DBIdentifier.DBIdentifierType CONSTANT
-
PROCEDURE
public static final DBIdentifier.DBIdentifierType PROCEDURE
-
NULL
public static final DBIdentifier.DBIdentifierType NULL
-
-
Method Detail
-
values
public static DBIdentifier.DBIdentifierType[] 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 (DBIdentifier.DBIdentifierType c : DBIdentifier.DBIdentifierType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DBIdentifier.DBIdentifierType 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
-
-