Revision 4f033523
Added by Andreas Müller over 5 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelAuthorTeamImport.java | ||
---|---|---|
44 | 44 |
private static final String pluralString = "AuthorTeams"; |
45 | 45 |
private static final String dbTableName = "AuthorTeam"; |
46 | 46 |
|
47 |
//TODO pass it in other way, not as a class variable |
|
48 | 47 |
private ResultSet rsSequence; |
49 | 48 |
private Source source; |
50 | 49 |
|
... | ... | |
77 | 76 |
|
78 | 77 |
int recordsPerTransaction = config.getRecordsPerTransaction(); |
79 | 78 |
try{ |
80 |
ResultSetPartitioner partitioner = ResultSetPartitioner.NewInstance(source, strIdQuery, strRecordQuery, recordsPerTransaction); |
|
79 |
ResultSetPartitioner<BerlinModelImportState> partitioner = ResultSetPartitioner.NewInstance(source, strIdQuery, strRecordQuery, recordsPerTransaction);
|
|
81 | 80 |
rsSequence = source.getResultSet(strQuerySequence) ; //only here, to reduce deadlock/timeout probability |
82 | 81 |
while (partitioner.nextPartition()){ |
83 | 82 |
partitioner.doPartition(this, state); |
Also available in: Unified diff
cleanup