@Entity public class Polymorphism extends ObservationTarget
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE |
static String |
ID |
static String |
VALUE |
__TYPE, DESCRIPTION, IDENTIFIER, NAME| Constructor and Description |
|---|
Polymorphism() |
Polymorphism(Polymorphism copyMe)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
Polymorphism |
create(Entity entity) |
boolean |
equals(Object obj) |
static List<? extends Polymorphism> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(Polymorphism.class, org.molgenis.framework.db.QueryRule ...
|
static Polymorphism |
findById(Database db,
Integer id) |
static Polymorphism |
findByIdentifier(Database db,
String identifier) |
Object |
get(String name)
Generic getter.
|
String |
getBase()
Get the The affected DNA base.
|
String |
getBase(Database db)
Deprecated.
|
String |
getBaseLabel()
Get tha label for enum Base.
|
List<ValueLabel> |
getBaseOptions()
Base is enum.
|
Vector<String> |
getFields() |
Vector<String> |
getFields(boolean skipAutoIds)
Get the names of all public properties of Polymorphism.
|
String |
getFields(String sep)
Deprecated.
|
String |
getIdField() |
Object |
getIdValue() |
List<String> |
getLabelFields() |
Collection<SNP> |
getPolymorphismSNPCollection() |
Collection<SNP> |
getPolymorphismSNPCollection(Database db) |
String |
getValue()
Get the The strain/genotype for which this polymorphism was discovered.
|
String |
getValue(Database db)
Deprecated.
|
String |
getValues(String sep)
Deprecated.
|
String |
getXrefIdFieldName(String fieldName) |
int |
hashCode() |
static Query<? extends Polymorphism> |
query(Database db)
Shorthand for db.query(Polymorphism.class).
|
void |
set(Entity entity,
boolean strict) |
void |
setBase(String base)
Set the The affected DNA base.
|
void |
setPolymorphismSNPCollection(Collection<SNP> collection) |
void |
setValue(String value)
Set the The strain/genotype for which this polymorphism was discovered.
|
String |
toString() |
String |
toString(boolean verbose) |
void |
validate() |
get__Type, get__Type, get__TypeLabel, get__TypeOptions, getDescription, getDescription, getId, getIdentifier, getIdentifier, getName, getName, getValueMrefValueCollection, getValueMrefValueCollection, set__Type, setDescription, setId, setIdentifier, setName, setValueMrefValueCollectiongetLabelValue, getValues, isObjectRepresentation, isReadonly, set, set, setReadonly, setValuesFromString, string2dateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLabelValue, getValues, isReadonly, set, set, setReadonlypublic static final String BASE
public static final String VALUE
public static final String ID
public Polymorphism()
public Polymorphism(Polymorphism copyMe) throws Exception
Exceptionpublic static Query<? extends Polymorphism> query(Database db)
public static List<? extends Polymorphism> find(Database db, QueryRule... rules) throws DatabaseException
DatabaseExceptionpublic static Polymorphism findById(Database db, Integer id) throws DatabaseException
DatabaseExceptionpublic static Polymorphism findByIdentifier(Database db, String identifier) throws DatabaseException
DatabaseExceptionpublic String getBase()
@Deprecated public String getBase(Database db)
public void setBase(String base)
base - public String getBaseLabel()
public List<ValueLabel> getBaseOptions()
public String getValue()
@Deprecated public String getValue(Database db)
public void setValue(String value)
value - public Object get(String name)
get in interface Entityget in class ObservationTargetpublic void validate()
throws DatabaseException
validate in interface Entityvalidate in class ObservationTargetDatabaseExceptionpublic void set(Entity entity, boolean strict) throws Exception
set in interface Entityset in class ObservationTargetExceptionpublic String toString()
toString in class ObservationTargetpublic String toString(boolean verbose)
toString in class ObservationTargetpublic Vector<String> getFields(boolean skipAutoIds)
getFields in interface EntitygetFields in class ObservationTargetpublic Vector<String> getFields()
getFields in interface EntitygetFields in class ObservationTargetpublic String getIdField()
getIdField in interface EntitygetIdField in class ObservationTargetpublic List<String> getLabelFields()
getLabelFields in interface EntitygetLabelFields in class ObservationTarget@Deprecated public String getFields(String sep)
getFields in interface EntitygetFields in class ObservationTargetpublic Object getIdValue()
getIdValue in interface EntitygetIdValue in class ObservationTargetpublic String getXrefIdFieldName(String fieldName)
getXrefIdFieldName in interface EntitygetXrefIdFieldName in class ObservationTarget@Deprecated public String getValues(String sep)
getValues in interface EntitygetValues in class ObservationTargetpublic Polymorphism create(Entity entity) throws Exception
create in interface Entitycreate in class ObservationTargetExceptionpublic Collection<SNP> getPolymorphismSNPCollection()
public Collection<SNP> getPolymorphismSNPCollection(Database db)
public void setPolymorphismSNPCollection(Collection<SNP> collection)
public boolean equals(Object obj)
equals in class ObservationTargetpublic int hashCode()
hashCode in class ObservationTargetCopyright © 2013. All Rights Reserved.