RepTransactionFormatter interface
package com.sybase.connector.repra.rep;
import com.sybase.connector.repra.logging.RaLogger
public interface RepTransactionFormatter
{
/**
returns an Object formatted by this formatter implementation.
rse - the internal Object containing a replication event.
*/
publicObject format(RepEvent rse) throws RepraException;
/**
returns an Object formatted by this formatter implementation.
rse - The internal Object containing a replication event.
*/
public Object formatTransaction(RepEvent[] events)
throws RepraException;
/**
Return true if RepEvent metadata is required for formatting.
If it returns true, the RepEvent will contain the data type of
each field. Otherwise, the data type will be ignored for this
RepEvent.
*/
public boolean requiresMetaData();
/**
Return true if RepEvent is required to be parsed to be a standard
RepEvent that the RepEventParser can handle. If it returns false,
the RepEvent will contain a text stream of the RepEvent only for the
messaging client to parse it.
*/
public boolean requiresParse();
/**
sets the default logger
*/
public void setLogger(RaLogger log);
}