Package com.adaptris.core.services.jdbc
Class JdbcIteratingDataCaptureServiceImpl
java.lang.Object
com.adaptris.core.ServiceImp
com.adaptris.core.jdbc.JdbcService
com.adaptris.core.services.jdbc.JdbcServiceWithParameters
com.adaptris.core.services.jdbc.JdbcDataCaptureServiceImpl
com.adaptris.core.services.jdbc.JdbcIteratingDataCaptureServiceImpl
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,ConfigComment
,ConnectedService
,MessageEventGenerator
,Service
,StateManagedComponent
- Direct Known Subclasses:
JdbcBatchingDataCaptureService
,JdbcDataCaptureService
-
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 TypeMethodDescriptionvoid
doService
(AdaptrisMessage msg) Apply the service to the message.protected abstract long
executeUpdate
(PreparedStatement insert) protected abstract long
finishUpdate
(PreparedStatement insert) Get the configured iteration flag.Get the configured iteration xpath.protected void
void
setIterates
(Boolean iterates) Set the service to iterate on the given xpath.void
setIterationXpath
(String xpath) An Xpath that can be iterated on.void
Set the namespace context for resolving namespaces.void
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, getComments, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setComments, 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.ConfigComment
getComments, setComments
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
-
JdbcIteratingDataCaptureServiceImpl
public JdbcIteratingDataCaptureServiceImpl()
-
-
Method Details
-
initJdbcService
- Overrides:
initJdbcService
in classJdbcDataCaptureServiceImpl
- Throws:
CoreException
-
doService
Description copied from interface:Service
Apply the service to the message.
- Parameters:
msg
- theAdaptrisMessage
to process- Throws:
ServiceException
- wrapping any underlyingException
s
-
executeUpdate
- Throws:
SQLException
-
finishUpdate
- Throws:
SQLException
-
getNamespaceContext
- Returns:
- the namespaceContext
-
setNamespaceContext
Set the namespace context for resolving namespaces.- The key is the namespace prefix
- The value is the namespace uri
- Parameters:
kvps
- the namespace context- See Also:
-
getXmlDocumentFactoryConfig
-
setXmlDocumentFactoryConfig
-
setIterationXpath
An Xpath that can be iterated on.
An Iteration Xpath defines some repeating element or value in the payload.
- Parameters:
xpath
- the xpath- See Also:
-
getIterationXpath
Get the configured iteration xpath.- Returns:
- the xpath.
-
setIterates
Set the service to iterate on the given xpath.
If set to true, then it is expected that there is a configured iteration xpath available for use. If this is not the case, then results are undefined, and depends on the underlying Xpath implementation
- Parameters:
iterates
- the flag.- See Also:
-
getIterates
Get the configured iteration flag.- Returns:
- the flag.
-