public abstract class AbstractHibernateTaxonGraphProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.UUID |
secReferenceUUID
Deprecated.
|
Constructor and Description |
---|
AbstractHibernateTaxonGraphProcessor() |
Modifier and Type | Method and Description |
---|---|
Taxon |
assureSingleTaxon(TaxonName taxonName) |
Taxon |
assureSingleTaxon(TaxonName taxonName,
boolean createMissing) |
protected Reference |
conceptReference(Reference nomenclaturalReference) |
java.util.UUID |
getSecReferenceUUID() |
abstract org.hibernate.Session |
getSession() |
protected java.util.List<TaxonRelationship> |
getTaxonRelationships(Taxon relatedTaxon,
TaxonRelationshipType type,
Reference citation,
RelationshipBase.Direction direction) |
protected java.util.List<TaxonName> |
listNamesAtRank(Rank rank,
java.lang.String genusOrUninomial,
java.lang.String specificEpithet) |
protected java.util.List<TaxonName> |
listNamesBelowRank(Rank rank,
java.lang.String genusOrUninomial,
java.lang.String specificEpithet) |
protected java.util.List<TaxonName> |
relatedHigherNames(TaxonName name) |
protected java.util.List<TaxonName> |
relatedLowerNames(TaxonName name) |
protected TaxonRelationshipType |
relType() |
void |
removeEdges(Taxon taxon,
Reference conceptReference)
Remove all edges from the
taxon having the conceptReference |
Reference |
secReference() |
protected void |
setSecReferenceUUID(java.util.UUID uuid)
Deprecated.
|
protected java.util.List<TaxonRelationship> |
taxonGraphRelationsFrom(Taxon taxon,
Reference citation) |
protected java.util.List<TaxonRelationship> |
taxonGraphRelationsTo(Taxon taxon,
Reference citation) |
void |
updateConceptReferenceInEdges(Taxon taxon,
Reference oldNomReference) |
void |
updateEdges(Taxon taxon)
Create all missing edges from the
taxon . |
protected void |
updateReferenceInEdges(Taxon taxon,
Reference conceptReference,
Reference oldConceptReference) |
@Deprecated protected java.util.UUID secReferenceUUID
public AbstractHibernateTaxonGraphProcessor()
protected TaxonRelationshipType relType()
@Deprecated protected void setSecReferenceUUID(java.util.UUID uuid)
public java.util.UUID getSecReferenceUUID()
public Reference secReference()
public void updateEdges(Taxon taxon) throws TaxonGraphException
taxon
.taxonName
- TaxonGraphException
public void removeEdges(Taxon taxon, Reference conceptReference)
taxon
having the conceptReference
taxon
- oldConceptReference
- public void updateConceptReferenceInEdges(Taxon taxon, Reference oldNomReference) throws TaxonGraphException
taxon
- TaxonGraphException
protected void updateReferenceInEdges(Taxon taxon, Reference conceptReference, Reference oldConceptReference)
taxon
- conceptReference
- oldConceptReference
- public abstract org.hibernate.Session getSession()
public Taxon assureSingleTaxon(TaxonName taxonName) throws TaxonGraphException
TaxonGraphException
public Taxon assureSingleTaxon(TaxonName taxonName, boolean createMissing) throws TaxonGraphException
TaxonGraphException
protected java.util.List<TaxonName> relatedHigherNames(TaxonName name)
name
- protected java.util.List<TaxonName> relatedLowerNames(TaxonName name)
name
- protected java.util.List<TaxonRelationship> taxonGraphRelationsFrom(Taxon taxon, Reference citation)
taxon
- protected java.util.List<TaxonRelationship> taxonGraphRelationsTo(Taxon taxon, Reference citation)
taxon
- protected java.util.List<TaxonName> listNamesAtRank(Rank rank, java.lang.String genusOrUninomial, java.lang.String specificEpithet)
protected java.util.List<TaxonName> listNamesBelowRank(Rank rank, java.lang.String genusOrUninomial, java.lang.String specificEpithet)
protected java.util.List<TaxonRelationship> getTaxonRelationships(Taxon relatedTaxon, TaxonRelationshipType type, Reference citation, RelationshipBase.Direction direction)
relatedTaxon
- requiredtype
- requiredcitation
- can be nulldirection
- requiredCopyright © 2007-2020 EDIT. All Rights Reserved.