Package com.adaptris.interlok.jdbc
Class JDBCStatementBuilder
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.adaptris.core.jdbc.JdbcService
-
- com.adaptris.interlok.jdbc.JDBCStatementBuilder
-
- All Implemented Interfaces:
AdaptrisComponent,ComponentLifecycle,ComponentLifecycleExtension,ConnectedService,MessageEventGenerator,Service,StateManagedComponent
- Direct Known Subclasses:
JDBCCaptureStatementBuilder,JDBCQueryStatementBuilder
public abstract class JDBCStatementBuilder extends JdbcService
Base class for JDBC data statement builder services; turns the given statement into the necessary query/capture service with the necessary parameter list.- Since:
- 4.1.0
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ServiceImp
log
-
-
Constructor Summary
Constructors Constructor Description JDBCStatementBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected JdbcServiceWithParametersbuildService(java.lang.String statement)Build a JDBC data query service using the given statement to create the necessary parameter list.protected abstract JdbcServiceWithParameterscreateService(java.lang.String statement)@NonNull java.lang.StringgetStatement()The SQL statement.voidprepareService()Prepare for initialisation.voidsetStatement(@NonNull java.lang.String statement)The SQL statement.-
Methods inherited from class com.adaptris.core.jdbc.JdbcService
applyTimeout, closeJdbcService, closeService, createStatement, getConnection, getConnection, getStatementTimeout, initJdbcService, initService, prepare, prepareStatement, prepareStatement, setConnection, setStatementTimeout, start, startService, stop, stopService
-
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.AdaptrisComponent
getUniqueId
-
Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init
-
Methods inherited from interface com.adaptris.core.MessageEventGenerator
createName, createQualifier, isTrackingEndpoint
-
Methods inherited from interface com.adaptris.core.Service
continueOnFailure, doService, isBranching, setUniqueId
-
Methods inherited from interface com.adaptris.core.StateManagedComponent
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
-
-
-
-
Method Detail
-
prepareService
public void prepareService() throws CoreExceptionPrepare for initialisation.- Specified by:
prepareServicein classJdbcService- Throws:
CoreException
-
createService
protected abstract JdbcServiceWithParameters createService(java.lang.String statement)
-
buildService
protected JdbcServiceWithParameters buildService(java.lang.String statement) throws CoreException
Build a JDBC data query service using the given statement to create the necessary parameter list.- Parameters:
statement- The SQL statement.- Returns:
- The constructed JDBC query service.
- Throws:
CoreException
-
getStatement
@NonNull public @NonNull java.lang.String getStatement()
The SQL statement.
-
setStatement
public void setStatement(@NonNull @NonNull java.lang.String statement)The SQL statement.
-
-