org.molgenis.omx.observ.target
Class PanelSource

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

@Entity
public class PanelSource
extends AbstractEntity
implements Autoid

PanelSource: PanelSources is partOf Panel to define how panels are related panels, founder panels, such as overlap, selection criteria, getting assayed panel from a sample panel, etc. .

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String CURRENTPANEL
           
static String CURRENTPANEL_IDENTIFIER
           
static String ID
           
static String NUMBEROFINDIVIDUALS
           
static String SELECTIONCRITERIA
           
static String SOURCEPANEL
           
static String SOURCEPANEL_IDENTIFIER
           
 
Constructor Summary
PanelSource()
           
PanelSource(PanelSource copyMe)
          copy constructor
 
Method Summary
 PanelSource create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends PanelSource> find(Database db, QueryRule... rules)
          Shorthand for db.find(PanelSource.class, org.molgenis.framework.db.QueryRule ...
static PanelSource findById(Database db, Integer id)
           
 Object get(String name)
          Generic getter.
 Integer getCurrentPanel_Id()
           
 String getCurrentPanel_Identifier()
          Get a pretty label Identifier for cross reference CurrentPanel to Panel.Id.
 Panel getCurrentPanel()
          Get the Panel for which these sources are defined..
 Panel getCurrentPanel(Database db)
          Deprecated. 
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of PanelSource.
 String getFields(String sep)
          Deprecated. 
 Integer getId()
          Get the automatically generated internal id, only for internal use..
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 Integer getNumberOfIndividuals()
          Get the Number of individuals lifted over from this source.
 Integer getNumberOfIndividuals(Database db)
          Deprecated. 
 String getSelectionCriteria()
          Get the Inclusion/exclusion criteria used to select these individuals from source into current panel.
 String getSelectionCriteria(Database db)
          Deprecated. 
 Integer getSourcePanel_Id()
           
 String getSourcePanel_Identifier()
          Get a pretty label Identifier for cross reference SourcePanel to Panel.Id.
 Panel getSourcePanel()
          Get the Source that contributed individuals to current panel.
 Panel getSourcePanel(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends PanelSource> query(Database db)
          Shorthand for db.query(PanelSource.class).
 void set(Tuple tuple, boolean strict)
           
 void setCurrentPanel_Id(Integer currentPanel_id)
          Set foreign key for field currentPanel.
 void setCurrentPanel_Identifier(String currentPanel_Identifier)
          Set a pretty label for cross reference CurrentPanel to Panel.Id.
 void setCurrentPanel(Integer currentPanel_id)
           
 void setCurrentPanel(Panel currentPanel)
          Set the Panel for which these sources are defined..
 void setId(Integer id)
          Set the automatically generated internal id, only for internal use..
 void setNumberOfIndividuals(Integer numberOfIndividuals)
          Set the Number of individuals lifted over from this source.
 void setSelectionCriteria(String selectionCriteria)
          Set the Inclusion/exclusion criteria used to select these individuals from source into current panel.
 void setSourcePanel_Id(Integer sourcePanel_id)
          Set foreign key for field sourcePanel.
 void setSourcePanel_Identifier(String sourcePanel_Identifier)
          Set a pretty label for cross reference SourcePanel to Panel.Id.
 void setSourcePanel(Integer sourcePanel_id)
           
 void setSourcePanel(Panel sourcePanel)
          Set the Source that contributed individuals to current panel.
 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
 
Methods inherited from interface org.molgenis.util.Entity
getLabelValue, getValues, isReadonly, set, set, setReadonly
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values

CURRENTPANEL

public static final String CURRENTPANEL
See Also:
Constant Field Values

CURRENTPANEL_IDENTIFIER

public static final String CURRENTPANEL_IDENTIFIER
See Also:
Constant Field Values

SOURCEPANEL

public static final String SOURCEPANEL
See Also:
Constant Field Values

SOURCEPANEL_IDENTIFIER

public static final String SOURCEPANEL_IDENTIFIER
See Also:
Constant Field Values

NUMBEROFINDIVIDUALS

public static final String NUMBEROFINDIVIDUALS
See Also:
Constant Field Values

SELECTIONCRITERIA

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

PanelSource

public PanelSource()

PanelSource

public PanelSource(PanelSource copyMe)
            throws Exception
copy constructor

Throws:
Exception
Method Detail

query

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


find

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

Throws:
DatabaseException

findById

public static PanelSource findById(Database db,
                                   Integer id)
                            throws DatabaseException
Throws:
DatabaseException

getId

public Integer getId()
Get the automatically generated internal id, only for internal use..

Specified by:
getId in interface Autoid
Returns:
id.

setId

public void setId(Integer id)
Set the automatically generated internal id, only for internal use..

Specified by:
setId in interface Autoid
Parameters:
id -

getCurrentPanel

public Panel getCurrentPanel()
Get the Panel for which these sources are defined..

Returns:
currentPanel.

getCurrentPanel

@Deprecated
public Panel getCurrentPanel(Database db)
Deprecated. 


setCurrentPanel

public void setCurrentPanel(Panel currentPanel)
Set the Panel for which these sources are defined..

Parameters:
currentPanel -

setCurrentPanel_Id

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


setCurrentPanel

public void setCurrentPanel(Integer currentPanel_id)

getCurrentPanel_Id

public Integer getCurrentPanel_Id()

getCurrentPanel_Identifier

public String getCurrentPanel_Identifier()
Get a pretty label Identifier for cross reference CurrentPanel to Panel.Id.


setCurrentPanel_Identifier

public void setCurrentPanel_Identifier(String currentPanel_Identifier)
Set a pretty label for cross reference CurrentPanel to Panel.Id. Implies setCurrentPanel(null) until save


getSourcePanel

public Panel getSourcePanel()
Get the Source that contributed individuals to current panel.

Returns:
sourcePanel.

getSourcePanel

@Deprecated
public Panel getSourcePanel(Database db)
Deprecated. 


setSourcePanel

public void setSourcePanel(Panel sourcePanel)
Set the Source that contributed individuals to current panel.

Parameters:
sourcePanel -

setSourcePanel_Id

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


setSourcePanel

public void setSourcePanel(Integer sourcePanel_id)

getSourcePanel_Id

public Integer getSourcePanel_Id()

getSourcePanel_Identifier

public String getSourcePanel_Identifier()
Get a pretty label Identifier for cross reference SourcePanel to Panel.Id.


setSourcePanel_Identifier

public void setSourcePanel_Identifier(String sourcePanel_Identifier)
Set a pretty label for cross reference SourcePanel to Panel.Id. Implies setSourcePanel(null) until save


getNumberOfIndividuals

public Integer getNumberOfIndividuals()
Get the Number of individuals lifted over from this source.

Returns:
numberOfIndividuals.

getNumberOfIndividuals

@Deprecated
public Integer getNumberOfIndividuals(Database db)
Deprecated. 


setNumberOfIndividuals

public void setNumberOfIndividuals(Integer numberOfIndividuals)
Set the Number of individuals lifted over from this source.

Parameters:
numberOfIndividuals -

getSelectionCriteria

public String getSelectionCriteria()
Get the Inclusion/exclusion criteria used to select these individuals from source into current panel.

Returns:
selectionCriteria.

getSelectionCriteria

@Deprecated
public String getSelectionCriteria(Database db)
Deprecated. 


setSelectionCriteria

public void setSelectionCriteria(String selectionCriteria)
Set the Inclusion/exclusion criteria used to select these individuals from source into current panel.

Parameters:
selectionCriteria -

get

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

Specified by:
get in interface Entity

validate

public void validate()
              throws DatabaseException
Specified by:
validate in interface Entity
Throws:
DatabaseException

set

public void set(Tuple tuple,
                boolean strict)
         throws Exception
Specified by:
set in interface Entity
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 PanelSource.

Specified by:
getFields in interface Entity

getFields

public Vector<String> getFields()
Specified by:
getFields in interface Entity

getIdField

public String getIdField()
Specified by:
getIdField in interface Entity

getLabelFields

public List<String> getLabelFields()
Specified by:
getLabelFields in interface Entity

getFields

@Deprecated
public String getFields(String sep)
Deprecated. 

Specified by:
getFields in interface Entity

getIdValue

public Object getIdValue()
Specified by:
getIdValue in interface Entity

getXrefIdFieldName

public String getXrefIdFieldName(String fieldName)
Specified by:
getXrefIdFieldName in interface Entity

getValues

@Deprecated
public String getValues(String sep)
Deprecated. 

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

create

public PanelSource create(Tuple tuple)
                   throws Exception
Specified by:
create in interface Entity
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.