Enum DbEntityType
- java.lang.Object
-
- java.lang.Enum<DbEntityType>
-
- com.feedzai.commons.sql.abstraction.ddl.DbEntityType
-
- All Implemented Interfaces:
Serializable,Comparable<DbEntityType>
public enum DbEntityType extends Enum<DbEntityType>
The database entity types.- Since:
- 2.0.0
- Author:
- Rafael Marmelo (rafael.marmelo@feedzai.com)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SYSTEM_TABLEThe system table type.SYSTEM_VIEWThe system view type.TABLEThe table type.UNMAPPEDA type that is not mapped.VIEWThe view type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DbEntityTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DbEntityType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TABLE
public static final DbEntityType TABLE
The table type.
-
VIEW
public static final DbEntityType VIEW
The view type.
-
SYSTEM_TABLE
public static final DbEntityType SYSTEM_TABLE
The system table type.
-
SYSTEM_VIEW
public static final DbEntityType SYSTEM_VIEW
The system view type.
-
UNMAPPED
public static final DbEntityType UNMAPPED
A type that is not mapped.
-
-
Method Detail
-
values
public static DbEntityType[] 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 (DbEntityType c : DbEntityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DbEntityType 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 nameNullPointerException- if the argument is null
-
-