@Entity public class CategoricalValue extends Value
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
VALUE |
static String |
VALUE_IDENTIFIER |
| Constructor and Description |
|---|
CategoricalValue() |
CategoricalValue(CategoricalValue copyMe)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
CategoricalValue |
create(Entity entity) |
boolean |
equals(Object obj) |
static List<? extends CategoricalValue> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(CategoricalValue.class, org.molgenis.framework.db.QueryRule ...
|
static CategoricalValue |
findById(Database db,
Integer id) |
Object |
get(String name)
Generic getter.
|
Vector<String> |
getFields() |
Vector<String> |
getFields(boolean skipAutoIds)
Get the names of all public properties of CategoricalValue.
|
String |
getFields(String sep)
Deprecated.
|
String |
getIdField() |
Object |
getIdValue() |
List<String> |
getLabelFields() |
Integer |
getValue_Id() |
String |
getValue_Identifier()
Get a pretty label Identifier for cross reference Value to Category.Id.
|
Category |
getValue()
Get the Value.
|
Category |
getValue(Database db)
Deprecated.
|
String |
getValues(String sep)
Deprecated.
|
String |
getXrefIdFieldName(String fieldName) |
int |
hashCode() |
static Query<? extends CategoricalValue> |
query(Database db)
Shorthand for db.query(CategoricalValue.class).
|
void |
set(Entity entity,
boolean strict) |
void |
setValue_Id(Integer value_id)
Set foreign key for field value.
|
void |
setValue_Identifier(String value_Identifier)
Set a pretty label for cross reference Value to Category.Id.
|
void |
setValue(Category value)
Set the Value.
|
void |
setValue(Integer value_id) |
String |
toString() |
String |
toString(boolean verbose) |
void |
validate() |
get__Type, get__Type, get__TypeLabel, get__TypeOptions, getId, set__Type, setIdgetLabelValue, getValues, isObjectRepresentation, isReadonly, set, set, setReadonly, setValuesFromString, string2dateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLabelValue, getValues, isReadonly, set, set, setReadonlypublic static final String VALUE
public static final String VALUE_IDENTIFIER
public static final String ID
public CategoricalValue()
public CategoricalValue(CategoricalValue copyMe) throws Exception
Exceptionpublic static Query<? extends CategoricalValue> query(Database db)
public static List<? extends CategoricalValue> find(Database db, QueryRule... rules) throws DatabaseException
DatabaseExceptionpublic static CategoricalValue findById(Database db, Integer id) throws DatabaseException
DatabaseExceptionpublic Category getValue()
@Deprecated public Category getValue(Database db)
public void setValue(Category value)
value - public void setValue_Id(Integer value_id)
public void setValue(Integer value_id)
public Integer getValue_Id()
public String getValue_Identifier()
public void setValue_Identifier(String value_Identifier)
public void validate()
throws DatabaseException
validate in interface Entityvalidate in class ValueDatabaseExceptionpublic Vector<String> getFields(boolean skipAutoIds)
public String getIdField()
getIdField in interface EntitygetIdField in class Valuepublic List<String> getLabelFields()
getLabelFields in interface EntitygetLabelFields in class Value@Deprecated public String getFields(String sep)
public Object getIdValue()
getIdValue in interface EntitygetIdValue in class Valuepublic String getXrefIdFieldName(String fieldName)
getXrefIdFieldName in interface EntitygetXrefIdFieldName in class Value@Deprecated public String getValues(String sep)
public CategoricalValue create(Entity entity) throws Exception
Copyright © 2013. All Rights Reserved.