Interface IDataWriter


public interface IDataWriter
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear the destination source.
    void
    Close the data writer
    Create an empty data object for the source
    boolean
    Returns true, if the implementation needs transformation hints.
    void
    Always perform a rollback on close, since an unrecoverable error occured.
    void
    setTransformationHints(de.uplanet.lucy.server.datatrans.IDataProvider p_sourceProvider, IDataSet p_sourceDataSet, de.uplanet.lucy.server.datatrans.configuration.ITransformerConfiguration p_transCfg)
    Sets the transformation hints
    void
    write(IDataObject p_object)
    Write the given data object to the destination
  • Method Details

    • createEmptyDataObject

      IDataObject createEmptyDataObject()
      Create an empty data object for the source
      Returns:
      new data object
    • clearData

      void clearData() throws Exception
      Clear the destination source.
      Throws:
      Exception - if any occurs
    • write

      void write(IDataObject p_object) throws Exception
      Write the given data object to the destination
      Parameters:
      p_object - data object
      Throws:
      Exception - if any occurs
    • isNeedingTransformationHints

      boolean isNeedingTransformationHints()
      Returns true, if the implementation needs transformation hints.
      Returns:
      true or false
    • setTransformationHints

      void setTransformationHints(de.uplanet.lucy.server.datatrans.IDataProvider p_sourceProvider, IDataSet p_sourceDataSet, de.uplanet.lucy.server.datatrans.configuration.ITransformerConfiguration p_transCfg) throws Exception
      Sets the transformation hints
      Parameters:
      p_sourceProvider - data source provider
      p_sourceDataSet - data set
      p_transCfg - transformer configuration
      Throws:
      Exception - if any occurs
    • close

      void close() throws Exception
      Close the data writer
      Throws:
      Exception - if any occurs
    • setRollbackOnly

      void setRollbackOnly()
      Always perform a rollback on close, since an unrecoverable error occured.