public class PostgreSQLDatabaseAdapter extends GenericDatabaseAdapter
| Constructor and Description |
|---|
PostgreSQLDatabaseAdapter() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAlterTableStatements(String tableName,
List<ColumnDescription> columnsToAdd,
boolean quoteTableName,
boolean quoteColumnNames) |
String |
getDescription() |
String |
getInsertIgnoreStatement(String table,
List<String> columnNames,
Collection<String> uniqueKeyColumnNames)
Returns an SQL INSERT_IGNORE statement - i.e.
|
String |
getName() |
String |
getSQLForDataType(int sqlType) |
String |
getUpsertStatement(String table,
List<String> columnNames,
Collection<String> uniqueKeyColumnNames)
Returns an SQL UPSERT statement - i.e.
|
boolean |
supportsCreateTableIfNotExists() |
boolean |
supportsInsertIgnore()
Tells whether this adapter supports INSERT_IGNORE.
|
boolean |
supportsUpsert()
Tells whether this adapter supports UPSERT.
|
getSelectStatement, getSelectStatementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateTableName, getColumnQuoteString, getCreateTableStatement, getTableAliasClause, getTableQuoteString, getTimesToAddColumnObjectsForUpsert, unwrapIdentifierpublic String getName()
getName in interface DatabaseAdaptergetName in class GenericDatabaseAdapterpublic String getDescription()
getDescription in interface DatabaseAdaptergetDescription in class GenericDatabaseAdapterpublic boolean supportsUpsert()
DatabaseAdapterpublic boolean supportsInsertIgnore()
DatabaseAdapterpublic String getUpsertStatement(String table, List<String> columnNames, Collection<String> uniqueKeyColumnNames)
DatabaseAdapterDatabaseAdapter.supportsUpsert()!table - The name of the table in which to update/insert a record into.columnNames - The name of the columns in the table to add values to.uniqueKeyColumnNames - The name of the columns that form a unique key.public String getInsertIgnoreStatement(String table, List<String> columnNames, Collection<String> uniqueKeyColumnNames)
DatabaseAdapterDatabaseAdapter.supportsInsertIgnore()!table - The name of the table in which to ignore/insert a record into.columnNames - The name of the columns in the table to add values to.uniqueKeyColumnNames - The name of the columns that form a unique key.public boolean supportsCreateTableIfNotExists()
public List<String> getAlterTableStatements(String tableName, List<ColumnDescription> columnsToAdd, boolean quoteTableName, boolean quoteColumnNames)
public String getSQLForDataType(int sqlType)
Copyright © 2023 Apache NiFi Project. All rights reserved.