Package de.uplanet.lucy.server.datatrans
Interface IDataWriter
public interface IDataWriter
-
Method Summary
Modifier and TypeMethodDescriptionvoidClear the destination source.voidclose()Close the data writerCreate an empty data object for the sourcebooleanReturns true, if the implementation needs transformation hints.voidAlways perform a rollback on close, since an unrecoverable error occurred.voidsetTransformationHints(de.uplanet.lucy.server.datatrans.IDataProvider p_sourceProvider, IDataSet p_sourceDataSet, de.uplanet.lucy.server.datatrans.configuration.ITransformerConfiguration p_transCfg) Sets the transformation hintsvoidwrite(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
Clear the destination source.- Throws:
Exception- if any occurs
-
write
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 providerp_sourceDataSet- data setp_transCfg- transformer configuration- Throws:
Exception- if any occurs
-
close
Close the data writer- Throws:
Exception- if any occurs
-
setRollbackOnly
void setRollbackOnly()Always perform a rollback on close, since an unrecoverable error occurred.
-