Class JdbcDataCaptureService
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,ConnectedService
,MessageEventGenerator
,Service
,StateManagedComponent
While not deprecated; you are encouraged to use JdbcBatchingDataCaptureService
instead for performance reasons. Set the
JdbcBatchingDataCaptureService.setBatchWindow(Integer)
to 1
to have functionally equivalent behaviour to this
class.
If the DocumentBuilderFactoryBuilder
has been explicitly set to be not namespace aware and the document does in fact
contain namespaces, then Saxon can cause merry havoc in the sense that //NonNamespaceXpath
doesn't work if the document
has namespaces in it. We have included a shim so that behaviour can be toggled based on what you have configured.
- See Also:
In the adapter configuration file this class is aliased as jdbc-data-capture-service which is the preferred alternative to the fully qualified classname when building your configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.adaptris.core.services.jdbc.JdbcDataCaptureServiceImpl
JdbcDataCaptureServiceImpl.DatabaseActor
-
Field Summary
Fields inherited from class com.adaptris.core.services.jdbc.JdbcDataCaptureServiceImpl
actor
Fields inherited from class com.adaptris.core.ServiceImp
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected long
executeUpdate
(PreparedStatement insert) protected long
finishUpdate
(PreparedStatement insert) Methods inherited from class com.adaptris.core.services.jdbc.JdbcIteratingDataCaptureServiceImpl
doService, getIterates, getIterationXpath, getNamespaceContext, getXmlDocumentFactoryConfig, initJdbcService, setIterates, setIterationXpath, setNamespaceContext, setXmlDocumentFactoryConfig
Methods inherited from class com.adaptris.core.services.jdbc.JdbcDataCaptureServiceImpl
closeJdbcService, configureActor, getRowsUpdatedMetadataKey, getSaveReturnedKeys, getStatement, prepareService, saveKeys, saveReturnedKeys, setRowsUpdatedMetadataKey, setSaveReturnedKeys, setStatement, startService, stopService, updateMetadata
Methods inherited from class com.adaptris.core.services.jdbc.JdbcServiceWithParameters
addStatementParameter, getParameterApplicator, getStatementParameters, setParameterApplicator, setStatementParameters
Methods inherited from class com.adaptris.core.jdbc.JdbcService
applyTimeout, closeService, createStatement, getConnection, getConnection, getStatementTimeout, initService, prepare, prepareStatement, prepareStatement, setConnection, setStatementTimeout, start, stop
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, isBranching, setUniqueId
Methods inherited from interface com.adaptris.core.StateManagedComponent
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
-
Constructor Details
-
JdbcDataCaptureService
public JdbcDataCaptureService() -
JdbcDataCaptureService
-
-
Method Details
-
executeUpdate
- Specified by:
executeUpdate
in classJdbcIteratingDataCaptureServiceImpl
- Throws:
SQLException
-
finishUpdate
- Specified by:
finishUpdate
in classJdbcIteratingDataCaptureServiceImpl
- Throws:
SQLException
-