@Entity public class MolgenisEntity extends AbstractEntity implements Autoid
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSNAME |
static String |
ID |
static String |
NAME |
static String |
TYPE_ |
| Constructor and Description |
|---|
MolgenisEntity() |
MolgenisEntity(MolgenisEntity copyMe)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
MolgenisEntity |
create(Entity entity) |
boolean |
equals(Object obj) |
static List<? extends MolgenisEntity> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(MolgenisEntity.class, org.molgenis.framework.db.QueryRule ...
|
static MolgenisEntity |
findByClassName(Database db,
String className) |
static MolgenisEntity |
findById(Database db,
Integer id) |
static MolgenisEntity |
findByNameType(Database db,
String name,
String type_) |
Object |
get(String name)
Generic getter.
|
String |
getClassName()
Get the Full name of the entity.
|
String |
getClassName(Database db)
Deprecated.
|
Vector<String> |
getFields() |
Vector<String> |
getFields(boolean skipAutoIds)
Get the names of all public properties of MolgenisEntity.
|
String |
getFields(String sep)
Deprecated.
|
Integer |
getId()
Get the automatically generated internal id, only for internal use..
|
String |
getIdField() |
Object |
getIdValue() |
List<String> |
getLabelFields() |
String |
getName()
Get the Name of the entity.
|
String |
getName(Database db)
Deprecated.
|
String |
getType()
Get the Type of the entity.
|
String |
getType(Database db)
Deprecated.
|
String |
getValues(String sep)
Deprecated.
|
String |
getXrefIdFieldName(String fieldName) |
int |
hashCode() |
static Query<? extends MolgenisEntity> |
query(Database db)
Shorthand for db.query(MolgenisEntity.class).
|
void |
set(Entity entity,
boolean strict) |
void |
setClassName(String className)
Set the Full name of the entity.
|
void |
setId(Integer id)
Set the automatically generated internal id, only for internal use..
|
void |
setName(String name)
Set the Name of the entity.
|
void |
setType(String type_)
Set the Type of the entity.
|
String |
toString() |
String |
toString(boolean verbose) |
void |
validate() |
get__Type, get__TypeLabel, get__TypeOptions, getLabelValue, getValues, isObjectRepresentation, isReadonly, set__Type, 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 NAME
public static final String TYPE_
public static final String CLASSNAME
public MolgenisEntity()
public MolgenisEntity(MolgenisEntity copyMe) throws Exception
Exceptionpublic static Query<? extends MolgenisEntity> query(Database db)
public static List<? extends MolgenisEntity> find(Database db, QueryRule... rules) throws DatabaseException
DatabaseExceptionpublic static MolgenisEntity findById(Database db, Integer id) throws DatabaseException
DatabaseExceptionpublic static MolgenisEntity findByClassName(Database db, String className) throws DatabaseException
DatabaseExceptionpublic static MolgenisEntity findByNameType(Database db, String name, String type_) throws DatabaseException
DatabaseExceptionpublic Integer getId()
public void setId(Integer id)
public String getName()
@Deprecated public String getName(Database db)
public void setName(String name)
name - public String getType()
@Deprecated public String getType(Database db)
public void setType(String type_)
type_ - public String getClassName()
@Deprecated public String getClassName(Database db)
public void setClassName(String className)
className - 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 MolgenisEntity create(Entity entity) throws Exception
Copyright © 2013. All Rights Reserved.