Revision 6d38d5c2
Added by Andreas Müller over 1 year ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/SingleTermRemover.java | ||
---|---|---|
163 | 163 |
} |
164 | 164 |
} |
165 | 165 |
|
166 |
private boolean checkTermInUse(ICdmDataSource datasource, IProgressMonitor monitor, int id, CaseType caseType) throws SQLException { |
|
166 |
private boolean checkTermInUse(ICdmDataSource datasource, |
|
167 |
@SuppressWarnings("unused") IProgressMonitor monitor, int id, CaseType caseType) |
|
168 |
throws SQLException { |
|
169 |
|
|
167 | 170 |
for (String query : checkUsedQueries){ |
168 | 171 |
query = String.format(caseType.replaceTableNames(query), id); |
169 | 172 |
Number i = (Number)datasource.getSingleValue(query); |
... | ... | |
174 | 177 |
return false; |
175 | 178 |
} |
176 | 179 |
|
177 |
public SingleTermRemover addCheckUsedQuery(String query, int adapt){
|
|
180 |
public SingleTermRemover addCheckUsedQuery(String query){ |
|
178 | 181 |
this.checkUsedQueries.add(query); |
179 | 182 |
return this; |
180 | 183 |
} |
Also available in: Unified diff
cleanup