|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.molgenis.util.AbstractEntity
org.molgenis.omx.observ.Characteristic
org.molgenis.omx.observ.Protocol
@Entity public class Protocol
Protocol: The Protocol class defines parameterizable descriptions of (analysis)methods. Examples of protocols are: Questionaires, SOPs, Assay platforms, Statistical analyses, etc. Each protocol has a unique identifier. Protocol has an association to OntologyTerm to represent the type of protocol. .
| Field Summary | |
|---|---|
static String |
FEATURES
|
static String |
FEATURES_IDENTIFIER
|
static String |
ID
|
static String |
PROTOCOLTYPE
|
static String |
PROTOCOLTYPE_IDENTIFIER
|
static String |
SUBPROTOCOLS
|
static String |
SUBPROTOCOLS_IDENTIFIER
|
| Fields inherited from class org.molgenis.omx.observ.Characteristic |
|---|
__TYPE, DESCRIPTION, IDENTIFIER, NAME |
| Constructor Summary | |
|---|---|
Protocol()
|
|
Protocol(Protocol copyMe)
copy constructor |
|
| Method Summary | |
|---|---|
Protocol |
create(Tuple tuple)
|
boolean |
equals(Object obj)
|
static List<? extends Protocol> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(Protocol.class, org.molgenis.framework.db.QueryRule ... |
static Protocol |
findById(Database db,
Integer id)
|
static Protocol |
findByIdentifier(Database db,
String identifier)
|
Object |
get(String name)
Generic getter. |
List<Integer> |
getFeatures_Id()
|
List<String> |
getFeatures_Identifier()
Get a pretty label for cross reference Features to ObservableFeature.Id. |
List<ObservableFeature> |
getFeatures()
Get the parameters (in/out) that are used or produced by this protocol.. |
List<ObservableFeature> |
getFeatures(Database db)
Deprecated. |
Vector<String> |
getFields()
|
Vector<String> |
getFields(boolean skipAutoIds)
Get the names of all public properties of Protocol. |
String |
getFields(String sep)
Deprecated. |
String |
getIdField()
|
Object |
getIdValue()
|
List<String> |
getLabelFields()
|
Integer |
getProtocolType_Id()
|
String |
getProtocolType_Identifier()
Get a pretty label Identifier for cross reference ProtocolType to OntologyTerm.Id. |
OntologyTerm |
getProtocolType()
Get the classification of protocol. |
OntologyTerm |
getProtocolType(Database db)
Deprecated. |
List<Integer> |
getSubprotocols_Id()
|
List<String> |
getSubprotocols_Identifier()
Get a pretty label for cross reference Subprotocols to Protocol.Id. |
List<Protocol> |
getSubprotocols()
Get the Subprotocols of this protocol. |
List<Protocol> |
getSubprotocols(Database db)
Deprecated. |
Collection<Protocol> |
getSubprotocolsProtocolCollection()
|
Collection<Protocol> |
getSubprotocolsProtocolCollection(Database db)
|
String |
getValues(String sep)
Deprecated. |
String |
getXrefIdFieldName(String fieldName)
|
int |
hashCode()
|
static Query<? extends Protocol> |
query(Database db)
Shorthand for db.query(Protocol.class). |
void |
set(Tuple tuple,
boolean strict)
|
void |
setFeatures_Id(Integer... features)
|
void |
setFeatures_Id(List<Integer> features_id)
Set foreign key for field features. |
void |
setFeatures_Identifier(List<String> features_Identifier)
Update the foreign key Features This sets features to null until next database transaction. |
void |
setFeatures(List<ObservableFeature> features)
Set the parameters (in/out) that are used or produced by this protocol.. |
void |
setFeatures(ObservableFeature... features)
|
void |
setProtocolType_Id(Integer protocolType_id)
Set foreign key for field protocolType. |
void |
setProtocolType_Identifier(String protocolType_Identifier)
Set a pretty label for cross reference ProtocolType to OntologyTerm.Id. |
void |
setProtocolType(Integer protocolType_id)
|
void |
setProtocolType(OntologyTerm protocolType)
Set the classification of protocol. |
void |
setSubprotocols_Id(Integer... subprotocols)
|
void |
setSubprotocols_Id(List<Integer> subprotocols_id)
Set foreign key for field subprotocols. |
void |
setSubprotocols_Identifier(List<String> subprotocols_Identifier)
Update the foreign key Subprotocols This sets subprotocols to null until next database transaction. |
void |
setSubprotocols(List<Protocol> subprotocols)
Set the Subprotocols of this protocol. |
void |
setSubprotocols(Protocol... subprotocols)
|
void |
setSubprotocolsProtocolCollection(Collection<Protocol> collection)
|
String |
toString()
|
String |
toString(boolean verbose)
|
void |
validate()
|
| Methods inherited from class org.molgenis.omx.observ.Characteristic |
|---|
get__Type, get__Type, get__TypeLabel, get__TypeOptions, getDescription, getDescription, getId, getIdentifier, getIdentifier, getName, getName, getValueMrefValueCollection, getValueMrefValueCollection, set__Type, setDescription, setId, setIdentifier, setName, setValueMrefValueCollection |
| Methods inherited from class org.molgenis.util.AbstractEntity |
|---|
getLabelValue, getValues, isObjectRepresentation, isReadonly, set, set, setReadonly, setValuesFromString, string2date |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.molgenis.util.Entity |
|---|
getLabelValue, getValues, isReadonly, set, set, setReadonly |
| Field Detail |
|---|
public static final String PROTOCOLTYPE
public static final String PROTOCOLTYPE_IDENTIFIER
public static final String SUBPROTOCOLS
public static final String SUBPROTOCOLS_IDENTIFIER
public static final String FEATURES
public static final String FEATURES_IDENTIFIER
public static final String ID
| Constructor Detail |
|---|
public Protocol()
public Protocol(Protocol copyMe)
throws Exception
Exception| Method Detail |
|---|
public static Query<? extends Protocol> query(Database db)
public static List<? extends Protocol> find(Database db,
QueryRule... rules)
throws DatabaseException
DatabaseException
public static Protocol findById(Database db,
Integer id)
throws DatabaseException
DatabaseException
public static Protocol findByIdentifier(Database db,
String identifier)
throws DatabaseException
DatabaseExceptionpublic OntologyTerm getProtocolType()
@Deprecated public OntologyTerm getProtocolType(Database db)
public void setProtocolType(OntologyTerm protocolType)
protocolType - public void setProtocolType_Id(Integer protocolType_id)
public void setProtocolType(Integer protocolType_id)
public Integer getProtocolType_Id()
public String getProtocolType_Identifier()
public void setProtocolType_Identifier(String protocolType_Identifier)
public List<Protocol> getSubprotocols()
@Deprecated public List<Protocol> getSubprotocols(Database db)
public void setSubprotocols(List<Protocol> subprotocols)
subprotocols - public void setSubprotocols_Id(Integer... subprotocols)
public void setSubprotocols(Protocol... subprotocols)
public void setSubprotocols_Id(List<Integer> subprotocols_id)
public List<Integer> getSubprotocols_Id()
public List<String> getSubprotocols_Identifier()
public void setSubprotocols_Identifier(List<String> subprotocols_Identifier)
public List<ObservableFeature> getFeatures()
@Deprecated public List<ObservableFeature> getFeatures(Database db)
public void setFeatures(List<ObservableFeature> features)
features - public void setFeatures_Id(Integer... features)
public void setFeatures(ObservableFeature... features)
public void setFeatures_Id(List<Integer> features_id)
public List<Integer> getFeatures_Id()
public List<String> getFeatures_Identifier()
public void setFeatures_Identifier(List<String> features_Identifier)
public Object get(String name)
get in interface Entityget in class Characteristic
public void validate()
throws DatabaseException
validate in interface Entityvalidate in class CharacteristicDatabaseException
public void set(Tuple tuple,
boolean strict)
throws Exception
set in interface Entityset in class CharacteristicExceptionpublic String toString()
toString in class Characteristicpublic String toString(boolean verbose)
toString in class Characteristicpublic Vector<String> getFields(boolean skipAutoIds)
getFields in interface EntitygetFields in class Characteristicpublic Vector<String> getFields()
getFields in interface EntitygetFields in class Characteristicpublic String getIdField()
getIdField in interface EntitygetIdField in class Characteristicpublic List<String> getLabelFields()
getLabelFields in interface EntitygetLabelFields in class Characteristic@Deprecated public String getFields(String sep)
getFields in interface EntitygetFields in class Characteristicpublic Object getIdValue()
getIdValue in interface EntitygetIdValue in class Characteristicpublic String getXrefIdFieldName(String fieldName)
getXrefIdFieldName in interface EntitygetXrefIdFieldName in class Characteristic@Deprecated public String getValues(String sep)
getValues in interface EntitygetValues in class Characteristic
public Protocol create(Tuple tuple)
throws Exception
create in interface Entitycreate in class CharacteristicExceptionpublic Collection<Protocol> getSubprotocolsProtocolCollection()
public Collection<Protocol> getSubprotocolsProtocolCollection(Database db)
public void setSubprotocolsProtocolCollection(Collection<Protocol> collection)
public boolean equals(Object obj)
equals in class Characteristicpublic int hashCode()
hashCode in class Characteristic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||