Revision 9dc896c9
Added by Andreas Müller almost 7 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/name/ITaxonNameDao.java | ||
---|---|---|
23 | 23 |
import eu.etaxonomy.cdm.model.name.NameRelationshipType; |
24 | 24 |
import eu.etaxonomy.cdm.model.name.Rank; |
25 | 25 |
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignationStatus; |
26 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
|
26 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
|
27 | 27 |
import eu.etaxonomy.cdm.model.name.TypeDesignationBase; |
28 | 28 |
import eu.etaxonomy.cdm.model.name.TypeDesignationStatusBase; |
29 | 29 |
import eu.etaxonomy.cdm.persistence.dao.common.IIdentifiableDao; |
... | ... | |
36 | 36 |
* @author a.mueller |
37 | 37 |
* |
38 | 38 |
*/ |
39 |
public interface ITaxonNameDao extends IIdentifiableDao<TaxonNameBase> {
|
|
39 |
public interface ITaxonNameDao extends IIdentifiableDao<TaxonName> { |
|
40 | 40 |
|
41 | 41 |
/** |
42 | 42 |
* Return a count of names related to or from this name, optionally filtered |
... | ... | |
51 | 51 |
* the relationship type (or null to return all relationships) |
52 | 52 |
* @return a count of NameRelationship instances |
53 | 53 |
*/ |
54 |
public int countNameRelationships(TaxonNameBase name, NameRelationship.Direction direction, NameRelationshipType type);
|
|
54 |
public int countNameRelationships(TaxonName name, NameRelationship.Direction direction, NameRelationshipType type); |
|
55 | 55 |
|
56 | 56 |
/** |
57 | 57 |
* Return a List of relationships related to or from this name, optionally filtered |
... | ... | |
75 | 75 |
* @param propertyPaths properties to initialize - see {@link IBeanInitializer#initialize(Object, List)} |
76 | 76 |
* @return a List of NameRelationship instances |
77 | 77 |
*/ |
78 |
public List<NameRelationship> getNameRelationships(TaxonNameBase name, NameRelationship.Direction direction,
|
|
78 |
public List<NameRelationship> getNameRelationships(TaxonName name, NameRelationship.Direction direction, |
|
79 | 79 |
NameRelationshipType type, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, |
80 | 80 |
List<String> propertyPaths); |
81 | 81 |
|
... | ... | |
119 | 119 |
* the type designation status (or null to return all types) |
120 | 120 |
* @return a count of TypeDesignationBase instances |
121 | 121 |
*/ |
122 |
public int countTypeDesignations(TaxonNameBase name,
|
|
122 |
public int countTypeDesignations(TaxonName name, |
|
123 | 123 |
SpecimenTypeDesignationStatus status); |
124 | 124 |
|
125 | 125 |
/** |
... | ... | |
141 | 141 |
* @param propertyPaths |
142 | 142 |
* @return a List of TypeDesignationBase instances |
143 | 143 |
*/ |
144 |
public <T extends TypeDesignationBase> List<T> getTypeDesignations(TaxonNameBase name,
|
|
144 |
public <T extends TypeDesignationBase> List<T> getTypeDesignations(TaxonName name, |
|
145 | 145 |
Class<T> type, |
146 | 146 |
TypeDesignationStatusBase status, Integer pageSize, Integer pageNumber, |
147 | 147 |
List<String> propertyPaths); |
... | ... | |
162 | 162 |
* set (0 - based) |
163 | 163 |
* @param propertyPaths |
164 | 164 |
* @return a List of TypeDesignationBase instances |
165 |
* @deprecated use {@link #getTypeDesignations(TaxonNameBase, Class, TypeDesignationStatusBase, Integer, Integer, List)} instead
|
|
165 |
* @deprecated use {@link #getTypeDesignations(TaxonName, Class, TypeDesignationStatusBase, Integer, Integer, List)} instead |
|
166 | 166 |
*/ |
167 | 167 |
@Deprecated |
168 |
public List<TypeDesignationBase> getTypeDesignations(TaxonNameBase name,
|
|
168 |
public List<TypeDesignationBase> getTypeDesignations(TaxonName name, |
|
169 | 169 |
TypeDesignationStatusBase status, Integer pageSize, Integer pageNumber, |
170 | 170 |
List<String> propertyPaths); |
171 | 171 |
|
172 | 172 |
/** |
173 |
* Returns a List of TaxonNameBase instances that match the properties
|
|
173 |
* Returns a List of TaxonName instances that match the properties |
|
174 | 174 |
* passed |
175 | 175 |
* |
176 | 176 |
* @param uninomial |
... | ... | |
186 | 186 |
* set (0 - based) |
187 | 187 |
* @param propertyPaths |
188 | 188 |
* @param orderHints |
189 |
* @return a List of TaxonNameBase instances
|
|
189 |
* @return a List of TaxonName instances |
|
190 | 190 |
*/ |
191 |
public List<TaxonNameBase> searchNames(String uninomial,
|
|
191 |
public List<TaxonName> searchNames(String uninomial, |
|
192 | 192 |
String infraGenericEpithet, String specificEpithet, |
193 | 193 |
String infraspecificEpithet, Rank rank, Integer pageSize, |
194 | 194 |
Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths); |
195 | 195 |
|
196 | 196 |
/** |
197 |
* Returns a count of TaxonNameBase instances that match the properties
|
|
197 |
* Returns a count of TaxonName instances that match the properties |
|
198 | 198 |
* passed |
199 | 199 |
* |
200 | 200 |
* @param uninomial |
... | ... | |
202 | 202 |
* @param specificEpithet |
203 | 203 |
* @param infraspecificEpithet |
204 | 204 |
* @param rank |
205 |
* @return a count of TaxonNameBase instances
|
|
205 |
* @return a count of TaxonName instances |
|
206 | 206 |
*/ |
207 | 207 |
public int countNames(String uninomial, String infraGenericEpithet, |
208 | 208 |
String specificEpithet, String infraspecificEpithet, Rank rank); |
209 | 209 |
|
210 | 210 |
/** |
211 |
* Returns a count of TaxonNameBase instances that match the properties passed
|
|
211 |
* Returns a count of TaxonName instances that match the properties passed |
|
212 | 212 |
* |
213 | 213 |
* @param queryString |
214 | 214 |
* @param matchMode |
... | ... | |
217 | 217 |
public int countNames(String queryString, MatchMode matchMode, List<Criterion> criteria); |
218 | 218 |
|
219 | 219 |
/** |
220 |
* Returns a List of TaxonNameBase instances which nameCache matches the
|
|
220 |
* Returns a List of TaxonName instances which nameCache matches the |
|
221 | 221 |
* query string |
222 | 222 |
* |
223 | 223 |
* @param queryString |
... | ... | |
227 | 227 |
* @param pageNumber |
228 | 228 |
* The offset (in pageSize chunks) from the start of the result |
229 | 229 |
* set (0 - based) |
230 |
* @return a List of TaxonNameBase instances
|
|
230 |
* @return a List of TaxonName instances |
|
231 | 231 |
*/ |
232 |
public List<TaxonNameBase<?, ?>> searchNames(String queryString,
|
|
232 |
public List<TaxonName<?, ?>> searchNames(String queryString, |
|
233 | 233 |
Integer pageSize, Integer pageNumber); |
234 | 234 |
|
235 | 235 |
|
236 | 236 |
|
237 | 237 |
/** |
238 |
* Returns a count of TaxonNameBase instances which nameCache matches the
|
|
238 |
* Returns a count of TaxonName instances which nameCache matches the |
|
239 | 239 |
* String queryString |
240 | 240 |
* |
241 | 241 |
* @param queryString |
242 |
* @return a count of TaxonNameBase instances
|
|
242 |
* @return a count of TaxonName instances |
|
243 | 243 |
*/ |
244 | 244 |
public int countNames(String queryString); |
245 | 245 |
|
... | ... | |
252 | 252 |
* @param propertyPaths TODO |
253 | 253 |
* @return |
254 | 254 |
*/ |
255 |
public List<? extends TaxonNameBase<?, ?>> findByName(boolean doIncludeAuthors,
|
|
255 |
public List<? extends TaxonName<?, ?>> findByName(boolean doIncludeAuthors, |
|
256 | 256 |
String queryString, |
257 | 257 |
MatchMode matchmode, Integer pageSize, Integer pageNumber, |
258 | 258 |
List<Criterion> criteria, List<String> propertyPaths); |
... | ... | |
266 | 266 |
* @param propertyPaths TODO |
267 | 267 |
* @return |
268 | 268 |
*/ |
269 |
public List<? extends TaxonNameBase<?, ?>> findByTitle(String queryString,
|
|
269 |
public List<? extends TaxonName<?, ?>> findByTitle(String queryString, |
|
270 | 270 |
MatchMode matchmode, Integer pageSize, Integer pageNumber, |
271 | 271 |
List<Criterion> criteria, List<String> propertyPaths); |
272 | 272 |
|
... | ... | |
281 | 281 |
* |
282 | 282 |
* @return |
283 | 283 |
*/ |
284 |
public TaxonNameBase<?, ?> findByUuid(UUID uuid, List<Criterion> criteria, List<String> propertyPaths);
|
|
284 |
public TaxonName<?, ?> findByUuid(UUID uuid, List<Criterion> criteria, List<String> propertyPaths); |
|
285 | 285 |
|
286 | 286 |
/** |
287 | 287 |
* @param queryString |
... | ... | |
307 | 307 |
* @param propertyPaths TODO |
308 | 308 |
* @return |
309 | 309 |
*/ |
310 |
public List<TaxonNameBase> findByName(Class<? extends TaxonNameBase> clazz, String queryString, MatchMode matchmode, List<Criterion> criteria,Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths);
|
|
310 |
public List<TaxonName> findByName(Class<? extends TaxonName> clazz, String queryString, MatchMode matchmode, List<Criterion> criteria,Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths);
|
|
311 | 311 |
|
312 | 312 |
/** |
313 | 313 |
* @param clazz |
... | ... | |
316 | 316 |
* @param criteria |
317 | 317 |
* @return |
318 | 318 |
*/ |
319 |
public long countByName(Class<? extends TaxonNameBase> clazz, String queryString, MatchMode matchmode, List<Criterion> criteria);
|
|
319 |
public long countByName(Class<? extends TaxonName> clazz, String queryString, MatchMode matchmode, List<Criterion> criteria); |
|
320 | 320 |
|
321 | 321 |
public IZoologicalName findZoologicalNameByUUID(UUID uuid); |
322 | 322 |
|
Also available in: Unified diff
fix #6368 rename table and class TaxonNameBase