org.molgenis.omx.observ
Class Protocol_Features

java.lang.Object
  extended by org.molgenis.util.AbstractEntity
      extended by org.molgenis.omx.observ.Protocol_Features
All Implemented Interfaces:
Serializable, Entity

public class Protocol_Features
extends AbstractEntity

Protocol_Features: Link table for many-to-many relationship 'Protocol.Features'..

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String AUTOID
           
static String FEATURES
           
static String FEATURES_IDENTIFIER
           
static String PROTOCOL
           
static String PROTOCOL_IDENTIFIER
           
 
Constructor Summary
Protocol_Features()
           
Protocol_Features(Protocol_Features copyMe)
          copy constructor
 
Method Summary
 Protocol_Features create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends Protocol_Features> find(Database db, QueryRule... rules)
          Shorthand for db.find(Protocol_Features.class, org.molgenis.framework.db.QueryRule ...
static Protocol_Features findByAutoid(Database db, Integer autoid)
           
static Protocol_Features findByFeaturesProtocol(Database db, Integer features, Integer protocol)
           
 Object get(String name)
          Generic getter.
 Integer getAutoid()
          Get the automatic id field to ensure ordering of mrefs.
 Integer getFeatures_Id()
           
 String getFeatures_Identifier()
          Get a pretty label Identifier for cross reference Features to ObservableFeature.Id.
 ObservableFeature getFeatures()
          Get the .
 ObservableFeature getFeatures(Database db)
          Deprecated. 
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of Protocol_Features.
 String getFields(String sep)
          Deprecated. 
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 Integer getProtocol_Id()
           
 String getProtocol_Identifier()
          Get a pretty label Identifier for cross reference Protocol to Protocol.Id.
 Protocol getProtocol()
          Get the .
 Protocol getProtocol(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends Protocol_Features> query(Database db)
          Shorthand for db.query(Protocol_Features.class).
 void set(Tuple tuple, boolean strict)
           
 void setAutoid(Integer autoid)
          Set the automatic id field to ensure ordering of mrefs.
 void setFeatures_Id(Integer features_id)
          Set foreign key for field features.
 void setFeatures_Identifier(String features_Identifier)
          Set a pretty label for cross reference Features to ObservableFeature.Id.
 void setFeatures(Integer features_id)
           
 void setFeatures(ObservableFeature features)
          Set the .
 void setProtocol_Id(Integer protocol_id)
          Set foreign key for field protocol.
 void setProtocol_Identifier(String protocol_Identifier)
          Set a pretty label for cross reference Protocol to Protocol.Id.
 void setProtocol(Integer protocol_id)
           
 void setProtocol(Protocol protocol)
          Set the .
 String toString()
           
 String toString(boolean verbose)
           
 void validate()
           
 
Methods inherited from class org.molgenis.util.AbstractEntity
get__Type, get__TypeLabel, get__TypeOptions, getLabelValue, getValues, isObjectRepresentation, isReadonly, set__Type, set, set, setReadonly, setValuesFromString, string2date
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTOID

public static final String AUTOID
See Also:
Constant Field Values

FEATURES

public static final String FEATURES
See Also:
Constant Field Values

FEATURES_IDENTIFIER

public static final String FEATURES_IDENTIFIER
See Also:
Constant Field Values

PROTOCOL

public static final String PROTOCOL
See Also:
Constant Field Values

PROTOCOL_IDENTIFIER

public static final String PROTOCOL_IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

Protocol_Features

public Protocol_Features()

Protocol_Features

public Protocol_Features(Protocol_Features copyMe)
                  throws Exception
copy constructor

Throws:
Exception
Method Detail

query

public static Query<? extends Protocol_Features> query(Database db)
Shorthand for db.query(Protocol_Features.class).


find

public static List<? extends Protocol_Features> find(Database db,
                                                     QueryRule... rules)
                                              throws DatabaseException
Shorthand for db.find(Protocol_Features.class, org.molgenis.framework.db.QueryRule ... rules).

Throws:
DatabaseException

findByAutoid

public static Protocol_Features findByAutoid(Database db,
                                             Integer autoid)
                                      throws DatabaseException
Throws:
DatabaseException

findByFeaturesProtocol

public static Protocol_Features findByFeaturesProtocol(Database db,
                                                       Integer features,
                                                       Integer protocol)
                                                throws DatabaseException
Throws:
DatabaseException

getAutoid

public Integer getAutoid()
Get the automatic id field to ensure ordering of mrefs.

Returns:
autoid.

setAutoid

public void setAutoid(Integer autoid)
Set the automatic id field to ensure ordering of mrefs.

Parameters:
autoid -

getFeatures

public ObservableFeature getFeatures()
Get the .

Returns:
features.

getFeatures

@Deprecated
public ObservableFeature getFeatures(Database db)
Deprecated. 


setFeatures

public void setFeatures(ObservableFeature features)
Set the .

Parameters:
features -

setFeatures_Id

public void setFeatures_Id(Integer features_id)
Set foreign key for field features. This will erase any foreign key objects currently set. FIXME: can we autoload the new object?


setFeatures

public void setFeatures(Integer features_id)

getFeatures_Id

public Integer getFeatures_Id()

getFeatures_Identifier

public String getFeatures_Identifier()
Get a pretty label Identifier for cross reference Features to ObservableFeature.Id.


setFeatures_Identifier

public void setFeatures_Identifier(String features_Identifier)
Set a pretty label for cross reference Features to ObservableFeature.Id. Implies setFeatures(null) until save


getProtocol

public Protocol getProtocol()
Get the .

Returns:
protocol.

getProtocol

@Deprecated
public Protocol getProtocol(Database db)
Deprecated. 


setProtocol

public void setProtocol(Protocol protocol)
Set the .

Parameters:
protocol -

setProtocol_Id

public void setProtocol_Id(Integer protocol_id)
Set foreign key for field protocol. This will erase any foreign key objects currently set. FIXME: can we autoload the new object?


setProtocol

public void setProtocol(Integer protocol_id)

getProtocol_Id

public Integer getProtocol_Id()

getProtocol_Identifier

public String getProtocol_Identifier()
Get a pretty label Identifier for cross reference Protocol to Protocol.Id.


setProtocol_Identifier

public void setProtocol_Identifier(String protocol_Identifier)
Set a pretty label for cross reference Protocol to Protocol.Id. Implies setProtocol(null) until save


get

public Object get(String name)
Generic getter. Get the property by using the name.


validate

public void validate()
              throws DatabaseException
Throws:
DatabaseException

set

public void set(Tuple tuple,
                boolean strict)
         throws Exception
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(boolean verbose)

getFields

public Vector<String> getFields(boolean skipAutoIds)
Get the names of all public properties of Protocol_Features.


getFields

public Vector<String> getFields()

getIdField

public String getIdField()

getLabelFields

public List<String> getLabelFields()

getFields

@Deprecated
public String getFields(String sep)
Deprecated. 


getIdValue

public Object getIdValue()

getXrefIdFieldName

public String getXrefIdFieldName(String fieldName)

getValues

@Deprecated
public String getValues(String sep)
Deprecated. 

Specified by:
getValues in interface Entity
Overrides:
getValues in class AbstractEntity

create

public Protocol_Features create(Tuple tuple)
                         throws Exception
Throws:
Exception

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.