Package org.qubership.nifi.service
Class PostgresPreparedStatementWithArrayProvider
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.qubership.nifi.service.AbstractPreparedStatementProvider
org.qubership.nifi.service.PostgresPreparedStatementWithArrayProvider
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.controller.ControllerService,PreparedStatementProvider
@Tags("properties")
@CapabilityDescription("Provides a prepared statement service.")
public class PostgresPreparedStatementWithArrayProvider
extends AbstractPreparedStatementProvider
implements PreparedStatementProvider
Controller service providing PreparedStatement and setting parameters in it for PostgreSQL DB.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorFields inherited from class org.qubership.nifi.service.AbstractPreparedStatementProvider
charArrayType, numArrayType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePreparedStatement(String query, org.apache.nifi.processor.ProcessContext context, Collection<String> ids, Connection con, DBElementType type, int numberOfBinds, int bindsOffset) protected List<org.apache.nifi.components.PropertyDescriptor> voidonEnable(org.apache.nifi.controller.ConfigurationContext context) Methods inherited from class org.qubership.nifi.service.AbstractPreparedStatementProvider
convertArray, createPreparedStatement, createPreparedStatement, createPreparedStatement, getArrayTypeMethods inherited from class org.apache.nifi.controller.AbstractControllerService
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStatefulMethods inherited from interface org.qubership.nifi.service.PreparedStatementProvider
createPreparedStatement, createPreparedStatement, createPreparedStatement
-
Field Details
-
CHAR_ARRAY_TYPE
public static final org.apache.nifi.components.PropertyDescriptor CHAR_ARRAY_TYPE -
NUMERIC_ARRAY_TYPE
public static final org.apache.nifi.components.PropertyDescriptor NUMERIC_ARRAY_TYPE
-
-
Constructor Details
-
PostgresPreparedStatementWithArrayProvider
public PostgresPreparedStatementWithArrayProvider()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classorg.apache.nifi.components.AbstractConfigurableComponent
-
onEnable
@OnEnabled public void onEnable(org.apache.nifi.controller.ConfigurationContext context) -
createPreparedStatement
public PreparedStatement createPreparedStatement(String query, org.apache.nifi.processor.ProcessContext context, Collection<String> ids, Connection con, DBElementType type, int numberOfBinds, int bindsOffset) throws SQLException - Specified by:
createPreparedStatementin interfacePreparedStatementProvider- Throws:
SQLException
-