public interface ContentPublisher
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteResource(java.lang.String resourceName,
java.lang.String resourceKey,
java.util.HashMap oneRecord)
This method deletes the data from the target resource repository.
|
void |
finishPublish()
This method is called before the publish finishes.
|
void |
flushBeforeTransaction()
This method should be called before an explicit call to transaction commit.
|
void |
initialize(java.lang.String initParameters)
This method initializes the publisher, should be called after the publisher is instantiated
and before any other methods are called.
|
void |
insertResource(java.lang.String resourceName,
java.lang.String resourceKey,
java.util.HashMap oneRecord)
This method inserts the data into the target resource repository.
|
void |
prepareForCommit()
This method prepares the transaction to be committed.
|
void |
prepareForRollback()
This method prepares the transaction for rollback.
|
void |
updateResource(java.lang.String resourceName,
java.lang.String resourceKey,
java.util.HashMap oneRecord)
This method updates the data in the target resource repository.
|
static final java.lang.String COPYRIGHT
void initialize(java.lang.String initParameters) throws ResourceException
initParameters
- The initialization parameters. The publisher implementation
should decide its syntax and the parameters should be put into the resource container
manager's configuration file.ResourceException
void insertResource(java.lang.String resourceName, java.lang.String resourceKey, java.util.HashMap oneRecord) throws ResourceException
resourceName
- The resource name.resourceKey
- The resource key.oneRecord
- The data of the resource.ResourceException
void updateResource(java.lang.String resourceName, java.lang.String resourceKey, java.util.HashMap oneRecord) throws ResourceException
resourceName
- The resource name.resourceKey
- The resource key.oneRecord
- The data of the resource.ResourceException
void deleteResource(java.lang.String resourceName, java.lang.String resourceKey, java.util.HashMap oneRecord) throws ResourceException
resourceName
- The resource name.resourceKey
- The resource key.oneRecord
- The data of the resource.ResourceException
void prepareForCommit() throws ResourceException
insertResource
, updateResource
and deleteResource
involve, can be a 1-PC or 2-PC one. The method can be used by publisher
to flush buffered changes, for example.ResourceException
void prepareForRollback() throws ResourceException
insertResource
,
updateResource
and deleteResource
involve,
can be a 1-PC or 2-PC one. The method can be used by publisher
to clear buffered changes, for example.ResourceException
void finishPublish() throws ResourceException
ResourceException
void flushBeforeTransaction() throws ResourceException
ResourceException
- Resource exception