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 JournalHandler
public int getBatchSize()
getBatchSize
in interface JournalHandler
public java.lang.String getTargetQuery()
getTargetQuery
in interface JournalHandler
public void publish(Data data) throws PublishException
publish
in interface JournalHandler
data
- Data
objectPublishException
- failed to publish retrieved datapublic JournalStrategy getStrategy()
JournalHandler
getStrategy
in interface JournalHandler