@Tags(value={"database","dbcp","sql"}) @CapabilityDescription(value="Fetches parameters from database tables") public class DatabaseParameterProvider extends AbstractParameterProvider implements VerifiableParameterProvider
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
DB_TYPE |
protected static Map<String,DatabaseAdapter> |
dbAdapters |
static PropertyDescriptor |
DBCP_SERVICE |
(package private) static AllowableValue |
GROUPING_BY_COLUMN |
(package private) static AllowableValue |
GROUPING_BY_TABLE_NAME |
static PropertyDescriptor |
PARAMETER_GROUP_NAME_COLUMN |
static PropertyDescriptor |
PARAMETER_GROUPING_STRATEGY |
static PropertyDescriptor |
PARAMETER_NAME_COLUMN |
static PropertyDescriptor |
PARAMETER_VALUE_COLUMN |
private List<PropertyDescriptor> |
properties |
static PropertyDescriptor |
SQL_WHERE_CLAUSE |
static PropertyDescriptor |
TABLE_NAME |
static PropertyDescriptor |
TABLE_NAMES |
| Constructor and Description |
|---|
DatabaseParameterProvider() |
| Modifier and Type | Method and Description |
|---|---|
List<ParameterGroup> |
fetchParameters(ConfigurationContext context) |
(package private) String |
getQuery(ConfigurationContext context,
String tableName,
List<String> columns,
String whereClause) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ParameterProviderInitializationContext config) |
private void |
validateValueNotNull(String value,
String columnName) |
List<ConfigVerificationResult> |
verify(ConfigurationContext context,
ComponentLog verificationLogger) |
getIdentifier, getLogger, getName, getNodeTypeProvider, initializecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprotected static final Map<String,DatabaseAdapter> dbAdapters
public static final PropertyDescriptor DB_TYPE
static AllowableValue GROUPING_BY_COLUMN
static AllowableValue GROUPING_BY_TABLE_NAME
public static final PropertyDescriptor DBCP_SERVICE
public static final PropertyDescriptor PARAMETER_GROUPING_STRATEGY
public static final PropertyDescriptor TABLE_NAMES
public static final PropertyDescriptor TABLE_NAME
public static final PropertyDescriptor PARAMETER_NAME_COLUMN
public static final PropertyDescriptor PARAMETER_VALUE_COLUMN
public static final PropertyDescriptor PARAMETER_GROUP_NAME_COLUMN
public static final PropertyDescriptor SQL_WHERE_CLAUSE
private List<PropertyDescriptor> properties
protected void init(ParameterProviderInitializationContext config)
init in class AbstractParameterProviderprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentpublic List<ParameterGroup> fetchParameters(ConfigurationContext context)
fetchParameters in interface ParameterProviderString getQuery(ConfigurationContext context, String tableName, List<String> columns, String whereClause)
public List<ConfigVerificationResult> verify(ConfigurationContext context, ComponentLog verificationLogger)
verify in interface VerifiableParameterProviderCopyright © 2023 Apache NiFi Project. All rights reserved.