File temp = new File(fileDataSource.getDriver().completeFileName(getDataSourceFactory().getTempFile()));
getDriver().writeFile(temp, this);
try {
rowOrientedEdition.commitTrans();
} catch (DriverException e) {
throw new FreeingResourcesException("Cannot free resources: data writen in " + temp.getAbsolutePath(), e);
}
try {
getDriver().copy(temp, fileDataSource.getFile());
} catch (IOException e) {
throw new FreeingResourcesException("Cannot copy file: data writen in " + temp.getAbsolutePath(), e);
}
}