3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.cdm
.io
.berlinModel
.in
;
13 import java
.sql
.ResultSet
;
16 import org
.springframework
.transaction
.TransactionStatus
;
18 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
26 public interface IPartitionedIO
{
28 //TODO make state more generic
29 public boolean doPartition(ResultSetPartitioner partitioner
, BerlinModelImportState state
);
31 public TransactionStatus
startTransaction();
33 public void commitTransaction(TransactionStatus txStatus
);
39 public Map
<Object
, Map
<String
, ?
extends CdmBase
>> getRelatedObjectsForPartition(ResultSet rs
);