public class DAVariation extends DAObject implements Variation
DAObject.DAComparator
Modifier and Type | Field and Description |
---|---|
protected String |
ancestralAllele |
protected Boolean |
flipped |
protected Set<ObjectType> |
mappedObjectTypes |
protected MappingSet |
mappings |
protected String |
name |
protected HashMap<ObjectType,MappingSet> |
objectTypeMappings |
protected int |
occurrences |
protected Boolean |
somatic |
protected String |
synonym |
protected List<String> |
synonyms |
protected VariationType |
varType |
protected DAVariationXRef |
xref |
daComparator, daoFactory, dbVersion, id, registry, schemaVersion
Constructor and Description |
---|
DAVariation() |
DAVariation(DAOVariationFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
addMappedObjectType(ObjectType mappedType) |
Boolean |
addMapping(Mapping mapping) |
void |
checkInitialized()
This is a hack to classigy the loaded mapping by type, because MyBatis
apparently sets 'mappings' by reflection, not
with the setter, so objectTypeMappings is not initialized by the MyBatis call.
|
void |
clearAllMappings() |
List<String> |
getAllSynonyms() |
String |
getAncestralAllele() |
Mapping |
getChromosomeMapping()
Utility method to pull back a unique chromosomal mapping of this Feature.
|
Mapping |
getChromosomeMapping(Chromosome chr)
Utility method to pull back a single mapping of this Feature on a Given
chromosome.
|
MappingSet |
getChromosomeMappings()
Method to return all chromosomal mappings for this feature.
|
DAOVariationFactory |
getDaoFactory() |
MappingSet |
getLoadedMappings() |
MappingSet |
getLoadedMappings(ObjectType targetType) |
MappingSet |
getMappings() |
String |
getName() |
int |
getOccurrences() |
String |
getSynonym() |
VariationType |
getType() |
DAVariationXRef |
getXRef() |
Boolean |
isCurrent() |
Boolean |
isFlipped() |
Boolean |
isObjectTypeMapped(ObjectType mappedType) |
Boolean |
isSomatic() |
void |
setAncestralAllele(String ancestralAllele) |
void |
setFlipped(Boolean flipped) |
void |
setMappings(MappingSet mappings) |
void |
setName(String name) |
void |
setOccurrences(int count) |
void |
setSomatic(Boolean somatic) |
void |
setSynonym(String altname) |
void |
setVarType(VariationType varType) |
void |
setXRef(DAVariationXRef xref) |
getDBVersion, getHashID, getId, getRegistry, getSchemaVersion, isLazyloadAllowed, setDaoFactory, setId, setLazyloadAllowed, setRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDBVersion, getHashID, getId, getSchemaVersion, setId
protected MappingSet mappings
protected HashMap<ObjectType,MappingSet> objectTypeMappings
protected Set<ObjectType> mappedObjectTypes
protected String ancestralAllele
protected DAVariationXRef xref
protected VariationType varType
protected int occurrences
public DAVariation()
public DAVariation(DAOVariationFactory factory)
public void checkInitialized()
public DAOVariationFactory getDaoFactory()
getDaoFactory
in class DAObject
public VariationType getType()
getType
in interface IdentifiableObject
public void setVarType(VariationType varType)
public void addMappedObjectType(ObjectType mappedType)
addMappedObjectType
in interface Feature
public Boolean isObjectTypeMapped(ObjectType mappedType)
isObjectTypeMapped
in interface Feature
public Mapping getChromosomeMapping(Chromosome chr) throws NonUniqueException
getChromosomeMapping
in interface Feature
chr
- NonUniqueException
- if more than one mapping for the chromosomepublic Mapping getChromosomeMapping() throws NonUniqueException
getChromosomeMapping
in interface Feature
NonUniqueException
- if more than one mapping for the chromosomepublic MappingSet getChromosomeMappings()
getChromosomeMappings
in interface Feature
public MappingSet getLoadedMappings(ObjectType targetType)
getLoadedMappings
in interface MappableObject
public MappingSet getLoadedMappings()
getLoadedMappings
in interface MappableObject
public MappingSet getMappings()
public Boolean addMapping(Mapping mapping)
addMapping
in interface MappableObject
public void setMappings(MappingSet mappings)
public void clearAllMappings()
clearAllMappings
in interface MappableObject
public DAVariationXRef getXRef()
public void setXRef(DAVariationXRef xref)
public void setSomatic(Boolean somatic)
public void setFlipped(Boolean flipped)
public String getAncestralAllele()
getAncestralAllele
in interface Variation
public void setAncestralAllele(String ancestralAllele)
public int getOccurrences()
getOccurrences
in interface Variation
public void setOccurrences(int count)
public String getSynonym()
getSynonym
in interface Variation
public List<String> getAllSynonyms()
getAllSynonyms
in interface Variation
public void setSynonym(String altname)
setSynonym
in interface Variation
JEnsembl: A Java API for Ensembl Data Access v1.78
© Roslin Institute 2010-14. GNU General Public License, version3