Enum Class JdbcDataset.DatabaseProvider
java.lang.Object
java.lang.Enum<JdbcDataset.DatabaseProvider>
com.northconcepts.datapipeline.foundations.pipeline.dataset.JdbcDataset.DatabaseProvider
- All Implemented Interfaces:
Serializable,Comparable<JdbcDataset.DatabaseProvider>,Constable
- Enclosing class:
JdbcDataset
Enumeration of supported database providers for JDBC datasets.
Each database provider implements SQL syntax specific to its database engine.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract StringescapeKeyword(String keyword) Escapes a SQL keyword to make it safe for use as an identifier.abstract StringgetCreateTableSql(String tableName) Returns the SQL statement to create a table with the given name.static JdbcDataset.DatabaseProviderReturns the enum constant of this class with the specified name.static JdbcDataset.DatabaseProvider[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
POSTGRESQL
PostgreSQL database provider.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getCreateTableSql
Returns the SQL statement to create a table with the given name.- Parameters:
tableName- the name of the table to create- Returns:
- the CREATE TABLE SQL statement
-
escapeKeyword
Escapes a SQL keyword to make it safe for use as an identifier.- Parameters:
keyword- the keyword to escape- Returns:
- the escaped keyword
-