Class MSSQL2008DatabaseAdapter
java.lang.Object
org.apache.nifi.processors.standard.db.impl.MSSQLDatabaseAdapter
org.apache.nifi.processors.standard.db.impl.MSSQL2008DatabaseAdapter
- All Implemented Interfaces:
DatabaseAdapter
A database adapter that generates MS SQL Compatible SQL for version 2008.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getSelectStatement(String tableName, String columnNames, String whereClause, String orderByClause, Long limit, Long offset) Returns a SQL SELECT statement with the given clauses applied.getSelectStatement(String tableName, String columnNames, String whereClause, String orderByClause, Long limit, Long offset, String columnForPartitioning) Returns a SQL SELECT statement with the given clauses applied.Methods inherited from class org.apache.nifi.processors.standard.db.impl.MSSQLDatabaseAdapter
getAlterTableStatementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.nifi.processors.standard.db.DatabaseAdapter
generateTableName, getAutoCommitForReads, getCreateTableStatement, getInsertIgnoreStatement, getSQLForDataType, getTableAliasClause, getUpsertStatement, supportsCreateTableIfNotExists, supportsInsertIgnore, supportsUpsert
-
Constructor Details
-
MSSQL2008DatabaseAdapter
public MSSQL2008DatabaseAdapter()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceDatabaseAdapter- Overrides:
getNamein classMSSQLDatabaseAdapter
-
getDescription
- Specified by:
getDescriptionin interfaceDatabaseAdapter- Overrides:
getDescriptionin classMSSQLDatabaseAdapter
-
getSelectStatement
public String getSelectStatement(String tableName, String columnNames, String whereClause, String orderByClause, Long limit, Long offset) Description copied from interface:DatabaseAdapterReturns a SQL SELECT statement with the given clauses applied.- Specified by:
getSelectStatementin interfaceDatabaseAdapter- Overrides:
getSelectStatementin classMSSQLDatabaseAdapter- Parameters:
tableName- The name of the table to fetch rows fromcolumnNames- The names of the columns to fetch from the tablewhereClause- The filter to apply to the statement. This should not include the WHERE keywordorderByClause- The columns/clause used for ordering the result rows. This should not include the ORDER BY keywordslimit- The value for the LIMIT clause (i.e. the number of rows to return)offset- The value for the OFFSET clause (i.e. the number of rows to skip)- Returns:
- A String containing a SQL SELECT statement with the given clauses applied
-
getSelectStatement
public String getSelectStatement(String tableName, String columnNames, String whereClause, String orderByClause, Long limit, Long offset, String columnForPartitioning) Description copied from interface:DatabaseAdapterReturns a SQL SELECT statement with the given clauses applied. Note that if this method is overridden, the other overloaded methods need to be overridden as well, to call this method with columnForPartitioning = false- Specified by:
getSelectStatementin interfaceDatabaseAdapter- Overrides:
getSelectStatementin classMSSQLDatabaseAdapter- Parameters:
tableName- The name of the table to fetch rows fromcolumnNames- The names of the columns to fetch from the tablewhereClause- The filter to apply to the statement. This should not include the WHERE keywordorderByClause- The columns/clause used for ordering the result rows. This should not include the ORDER BY keywordslimit- The value for the LIMIT clause (i.e. the number of rows to return)offset- The value for the OFFSET clause (i.e. the number of rows to skip)columnForPartitioning- The (optional) column name that, if provided, the limit and offset values are based on values from the column itself (rather than the row number)- Returns:
- A String containing a SQL SELECT statement with the given clauses applied
-