Package org.qubership.nifi.service
Class AbstractPreparedStatementProvider
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.qubership.nifi.service.AbstractPreparedStatementProvider
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.controller.ControllerService,PreparedStatementProvider
- Direct Known Subclasses:
OraclePreparedStatementWithArrayProvider,PostgresPreparedStatementWithArrayProvider
public abstract class AbstractPreparedStatementProvider
extends org.apache.nifi.controller.AbstractControllerService
implements PreparedStatementProvider
Abstract controller service providing PreparedStatement and setting parameters in it.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate instance of PreparedStatementProvider -
Method Summary
Modifier and TypeMethodDescriptionprotected Object[]convertArray(Collection<String> ids, DBElementType type) createPreparedStatement(String query, org.apache.nifi.processor.ProcessContext context, Collection<String> ids, Connection con) createPreparedStatement(String query, org.apache.nifi.processor.ProcessContext context, Collection<String> ids, Connection con, int numberOfBinds, int bindsOffset) createPreparedStatement(String query, org.apache.nifi.processor.ProcessContext context, Collection<String> ids, Connection con, DBElementType type) protected StringgetArrayType(DBElementType type) Methods 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, getSupportedPropertyDescriptors, 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
-
Field Details
-
charArrayType
-
numArrayType
-
-
Constructor Details
-
AbstractPreparedStatementProvider
public AbstractPreparedStatementProvider()Create instance of PreparedStatementProvider
-
-
Method Details
-
convertArray
-
getArrayType
-
createPreparedStatement
public PreparedStatement createPreparedStatement(String query, org.apache.nifi.processor.ProcessContext context, Collection<String> ids, Connection con, int numberOfBinds, int bindsOffset) throws SQLException - Specified by:
createPreparedStatementin interfacePreparedStatementProvider- Throws:
SQLException
-
createPreparedStatement
public PreparedStatement createPreparedStatement(String query, org.apache.nifi.processor.ProcessContext context, Collection<String> ids, Connection con) throws SQLException - Specified by:
createPreparedStatementin interfacePreparedStatementProvider- Throws:
SQLException
-
createPreparedStatement
public PreparedStatement createPreparedStatement(String query, org.apache.nifi.processor.ProcessContext context, Collection<String> ids, Connection con, DBElementType type) throws SQLException - Specified by:
createPreparedStatementin interfacePreparedStatementProvider- Throws:
SQLException
-