Package org.h2gis.utilities.dbtypes
Enum DBTypes
- java.lang.Object
-
- java.lang.Enum<DBTypes>
-
- org.h2gis.utilities.dbtypes.DBTypes
-
- All Implemented Interfaces:
Serializable,Comparable<DBTypes>
public enum DBTypes extends Enum<DBTypes>
Enumeration of database types.- Author:
- Erwan Bocher (CNRS 2021), Sylvain Palominos (UBS Chaire GEOTERA 2021)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description H2H2GISPOSTGISPOSTGRESQLUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getReservedWords()Return the list of the reserved keywords.PatternspecialNamePattern()Return the special name pattern.static DBTypesvalueOf(String name)Returns the enum constant of this type with the specified name.static DBTypes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static DBTypes[] 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 (DBTypes c : DBTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DBTypes 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
-
getReservedWords
public Set<String> getReservedWords()
Return the list of the reserved keywords.- Returns:
- The list of reserved keywords.
-
specialNamePattern
public Pattern specialNamePattern()
Return the special name pattern.- Returns:
- The spacial name pattern.
-
-