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
.common
;
13 import java
.sql
.ResultSet
;
16 import org
.springframework
.transaction
.TransactionStatus
;
18 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
26 public interface IPartitionedIO
<STATE
extends IPartitionedState
> {
28 public final String ID_LIST_TOKEN
= "@IdList";
30 //TODO make state more generic
31 public boolean doPartition(ResultSetPartitioner partitioner
, STATE state
);
33 public TransactionStatus
startTransaction();
35 public void commitTransaction(TransactionStatus txStatus
);
37 public String
getPluralString();
43 public Map
<Object
, Map
<String
, ?
extends CdmBase
>> getRelatedObjectsForPartition(ResultSet rs
);