Revision 4208745a
Added by Ben Clark over 15 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/name/NonViralNameDefaultCacheStrategy.java | ||
---|---|---|
448 | 448 |
return resultString + " " + appendedPhrase; |
449 | 449 |
} |
450 | 450 |
} |
451 |
|
|
451 |
|
|
452 |
|
|
453 |
public String getLastEpithet(T taxonNameBase) { |
|
454 |
Rank rank = taxonNameBase.getRank(); |
|
455 |
if(rank.isGenus() || rank.isSupraGeneric()) { |
|
456 |
return taxonNameBase.getGenusOrUninomial(); |
|
457 |
} else if(rank.isInfraGeneric()) { |
|
458 |
return taxonNameBase.getInfraGenericEpithet(); |
|
459 |
} else if(rank.isSpecies()) { |
|
460 |
return taxonNameBase.getSpecificEpithet(); |
|
461 |
} else { |
|
462 |
return taxonNameBase.getInfraSpecificEpithet(); |
|
463 |
} |
|
464 |
} |
|
452 | 465 |
} |
Also available in: Unified diff
Lots of changes, but primarily:
Enabled the marshalling / unmarshalling of LSIDAuthority
Renamed the User table to UserAccount to avoid problems on SQLServer
Major refactoring of CacheStrategyGenerators so that the generic framework extends across all IIdentifiableEntities, allowing (but not requiring) the use of @Configurable and aop to inject custom cache strategy generators at runtime