@Entity public class Protocol extends Characteristic
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURES |
static String |
FEATURES_IDENTIFIER |
static String |
ID |
static String |
PROTOCOLTYPE |
static String |
PROTOCOLTYPE_IDENTIFIER |
static String |
REQUIREDFEATURES |
static String |
REQUIREDFEATURES_IDENTIFIER |
static String |
ROOT |
static String |
SUBPROTOCOLS |
static String |
SUBPROTOCOLS_IDENTIFIER |
__TYPE, DESCRIPTION, IDENTIFIER, NAME| Constructor and Description |
|---|
Protocol() |
Protocol(Protocol copyMe)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
Protocol |
create(Entity entity) |
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> |
getRequiredFeatures_Id() |
List<String> |
getRequiredFeatures_Identifier()
Get a pretty label for cross reference RequiredFeatures to ObservableFeature.Id.
|
List<ObservableFeature> |
getRequiredFeatures()
Get the ...........
|
List<ObservableFeature> |
getRequiredFeatures(Database db)
Deprecated.
|
Boolean |
getRoot()
Get the Indicator whether this protocol defines a workflow (e.g is the first protocol of a workflow)..
|
Boolean |
getRoot(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(Entity entity,
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 |
setRequiredFeatures_Id(Integer... requiredFeatures) |
void |
setRequiredFeatures_Id(List<Integer> requiredFeatures_id)
Set foreign key for field requiredFeatures.
|
void |
setRequiredFeatures_Identifier(List<String> requiredFeatures_Identifier)
Update the foreign key RequiredFeatures
This sets requiredFeatures to null until next database transaction.
|
void |
setRequiredFeatures(List<ObservableFeature> requiredFeatures)
Set the ...........
|
void |
setRequiredFeatures(ObservableFeature... requiredFeatures) |
void |
setRoot(Boolean root)
Set the Indicator whether this protocol defines a workflow (e.g is the first protocol of a workflow)..
|
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() |
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 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 REQUIREDFEATURES
public static final String REQUIREDFEATURES_IDENTIFIER
public static final String ROOT
public static final String ID
public static Query<? extends Protocol> query(Database db)
public static List<? extends Protocol> find(Database db, QueryRule... rules) throws DatabaseException
DatabaseExceptionpublic static Protocol findById(Database db, Integer id) throws DatabaseException
DatabaseExceptionpublic 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<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<String> getFeatures_Identifier()
public void setFeatures_Identifier(List<String> features_Identifier)
public List<ObservableFeature> getRequiredFeatures()
@Deprecated public List<ObservableFeature> getRequiredFeatures(Database db)
public void setRequiredFeatures(List<ObservableFeature> requiredFeatures)
requiredFeatures - public void setRequiredFeatures_Id(Integer... requiredFeatures)
public void setRequiredFeatures(ObservableFeature... requiredFeatures)
public void setRequiredFeatures_Id(List<Integer> requiredFeatures_id)
public List<String> getRequiredFeatures_Identifier()
public void setRequiredFeatures_Identifier(List<String> requiredFeatures_Identifier)
public Boolean getRoot()
@Deprecated public Boolean getRoot(Database db)
public void setRoot(Boolean root)
root - public Object get(String name)
get in interface Entityget in class Characteristicpublic void validate()
throws DatabaseException
validate in interface Entityvalidate in class CharacteristicDatabaseExceptionpublic void set(Entity entity, 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 Characteristicpublic Protocol create(Entity entity) 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 CharacteristicCopyright © 2013. All Rights Reserved.