@Entity public class Characteristic extends AbstractEntity implements Identifiable
| Modifier and Type | Field and Description |
|---|---|
static String |
__TYPE |
static String |
DESCRIPTION |
static String |
ID |
static String |
IDENTIFIER |
static String |
NAME |
| Constructor and Description |
|---|
Characteristic() |
Characteristic(Characteristic copyMe)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
Characteristic |
create(Entity entity) |
boolean |
equals(Object obj) |
static List<? extends Characteristic> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(Characteristic.class, org.molgenis.framework.db.QueryRule ...
|
static Characteristic |
findById(Database db,
Integer id) |
static Characteristic |
findByIdentifier(Database db,
String identifier) |
String |
get__Type()
Get the Subtypes have to be set to allow searching.
|
String |
get__Type(Database db)
Deprecated.
|
String |
get__TypeLabel()
Get tha label for enum __Type.
|
List<ValueLabel> |
get__TypeOptions()
__Type is enum.
|
Object |
get(String name)
Generic getter.
|
String |
getDescription()
Get the (Optional) Rudimentary meta data about the observable feature.
|
String |
getDescription(Database db)
Deprecated.
|
Vector<String> |
getFields() |
Vector<String> |
getFields(boolean skipAutoIds)
Get the names of all public properties of Characteristic.
|
String |
getFields(String sep)
Deprecated.
|
Integer |
getId()
Get the automatically generated internal id, only for internal use..
|
String |
getIdentifier()
Get the user supplied or automatically assigned (using a decorator) unique and short identifier, e.g.
|
String |
getIdentifier(Database db)
Deprecated.
|
String |
getIdField() |
Object |
getIdValue() |
List<String> |
getLabelFields() |
String |
getName()
Get the human readible name, not necessary unique..
|
String |
getName(Database db)
Deprecated.
|
Collection<MrefValue> |
getValueMrefValueCollection() |
Collection<MrefValue> |
getValueMrefValueCollection(Database db) |
String |
getValues(String sep)
Deprecated.
|
String |
getXrefIdFieldName(String fieldName) |
int |
hashCode() |
static Query<? extends Characteristic> |
query(Database db)
Shorthand for db.query(Characteristic.class).
|
void |
set__Type(String __Type)
Set the Subtypes have to be set to allow searching.
|
void |
set(Entity entity,
boolean strict) |
void |
setDescription(String description)
Set the (Optional) Rudimentary meta data about the observable feature.
|
void |
setId(Integer id)
Set the automatically generated internal id, only for internal use..
|
void |
setIdentifier(String identifier)
Set the user supplied or automatically assigned (using a decorator) unique and short identifier, e.g.
|
void |
setName(String name)
Set the human readible name, not necessary unique..
|
void |
setValueMrefValueCollection(Collection<MrefValue> collection) |
String |
toString() |
String |
toString(boolean verbose) |
void |
validate() |
getLabelValue, getValues, isObjectRepresentation, isReadonly, set, set, setReadonly, setValuesFromString, string2dateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLabelValue, getValues, isReadonly, set, set, setReadonlypublic static final String ID
public static final String IDENTIFIER
public static final String NAME
public static final String __TYPE
public static final String DESCRIPTION
public Characteristic()
public Characteristic(Characteristic copyMe) throws Exception
Exceptionpublic static Query<? extends Characteristic> query(Database db)
public static List<? extends Characteristic> find(Database db, QueryRule... rules) throws DatabaseException
DatabaseExceptionpublic static Characteristic findById(Database db, Integer id) throws DatabaseException
DatabaseExceptionpublic static Characteristic findByIdentifier(Database db, String identifier) throws DatabaseException
DatabaseExceptionpublic Integer getId()
public void setId(Integer id)
public String getIdentifier()
getIdentifier in interface Identifiable@Deprecated public String getIdentifier(Database db)
public void setIdentifier(String identifier)
setIdentifier in interface Identifiableidentifier - public String getName()
getName in interface Identifiable@Deprecated public String getName(Database db)
public void setName(String name)
setName in interface Identifiablename - public String get__Type()
get__Type in class AbstractEntity@Deprecated public String get__Type(Database db)
public void set__Type(String __Type)
set__Type in class AbstractEntity__Type - public String get__TypeLabel()
get__TypeLabel in class AbstractEntitypublic List<ValueLabel> get__TypeOptions()
get__TypeOptions in class AbstractEntitypublic String getDescription()
@Deprecated public String getDescription(Database db)
public void setDescription(String description)
description - public void validate()
throws DatabaseException
validate in interface EntityDatabaseExceptionpublic String toString(boolean verbose)
public Vector<String> getFields(boolean skipAutoIds)
public String getIdField()
getIdField in interface Entitypublic List<String> getLabelFields()
getLabelFields in interface Entity@Deprecated public String getFields(String sep)
public Object getIdValue()
getIdValue in interface Entitypublic String getXrefIdFieldName(String fieldName)
getXrefIdFieldName in interface Entity@Deprecated public String getValues(String sep)
getValues in interface EntitygetValues in class AbstractEntitypublic Characteristic create(Entity entity) throws Exception
public Collection<MrefValue> getValueMrefValueCollection()
public Collection<MrefValue> getValueMrefValueCollection(Database db)
public void setValueMrefValueCollection(Collection<MrefValue> collection)
Copyright © 2013. All Rights Reserved.