public class TestHandler extends java.lang.Object implements JournalHandler
Sample handler (after import, journal entries are removed):
| Constructor and Description |
|---|
TestHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBatchSize() |
java.lang.String |
getJournalTable() |
JournalStrategy |
getStrategy()
Establish the journal strategy:
DELETE - removes imported rows from journal table
WINDOW - memorizes
|
java.lang.String |
getTargetQuery()
Query parameters must be referenced just like in JPA's NamedQueries.
|
void |
publish(Data data)
Publish imported data to...
|
public java.lang.String getJournalTable()
getJournalTable in interface JournalHandlerpublic int getBatchSize()
getBatchSize in interface JournalHandlerpublic java.lang.String getTargetQuery()
getTargetQuery in interface JournalHandlerpublic void publish(Data data) throws PublishException
publish in interface JournalHandlerdata - Data objectPublishException - failed to publish retrieved datapublic JournalStrategy getStrategy()
JournalHandlergetStrategy in interface JournalHandler