org.molgenis.omx.ngs
Class Flowcell

java.lang.Object
  extended by org.molgenis.util.AbstractEntity
      extended by org.molgenis.omx.ngs.Flowcell
All Implemented Interfaces:
Serializable, Autoid, Entity

@Entity
public class Flowcell
extends AbstractEntity
implements Autoid

Flowcell: .

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String FLOWCELLDIRECTION
           
static String FLOWCELLNAME
           
static String ID
           
static String MACHINE
           
static String MACHINE_MACHINENAME
           
static String RUN
           
static String RUNDATE
           
 
Constructor Summary
Flowcell()
           
Flowcell(Flowcell copyMe)
          copy constructor
 
Method Summary
 Flowcell create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends Flowcell> find(Database db, QueryRule... rules)
          Shorthand for db.find(Flowcell.class, org.molgenis.framework.db.QueryRule ...
static Flowcell findByFlowcellName(Database db, String flowcellName)
           
static Flowcell findById(Database db, Integer id)
           
 Object get(String name)
          Generic getter.
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of Flowcell.
 String getFields(String sep)
          Deprecated. 
 String getFlowcellDirection()
          Get the The direction used to read sequences.
 String getFlowcellDirection(Database db)
          Deprecated. 
 String getFlowcellDirectionLabel()
          Get tha label for enum FlowcellDirection.
 List<ValueLabel> getFlowcellDirectionOptions()
          FlowcellDirection is enum.
 String getFlowcellName()
          Get the The unique name of a flowcell.
 String getFlowcellName(Database db)
          Deprecated. 
 Integer getId()
          Get the automatically generated internal id, only for internal use..
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 Integer getMachine_Id()
           
 String getMachine_MachineName()
          Get a pretty label MachineName for cross reference Machine to Machine.Id.
 Machine getMachine()
          Get the The machine used for sequencing.
 Machine getMachine(Database db)
          Deprecated. 
 String getRun()
          Get the The run number always use 4 digits (with leading 0's).
 String getRun(Database db)
          Deprecated. 
 Date getRunDate()
          Get the The date the flowcell was run on the machine..
 Date getRunDate(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends Flowcell> query(Database db)
          Shorthand for db.query(Flowcell.class).
 void set(Tuple tuple, boolean strict)
           
 void setFlowcellDirection(String flowcellDirection)
          Set the The direction used to read sequences.
 void setFlowcellName(String flowcellName)
          Set the The unique name of a flowcell.
 void setId(Integer id)
          Set the automatically generated internal id, only for internal use..
 void setMachine_Id(Integer machine_id)
          Set foreign key for field machine.
 void setMachine_MachineName(String machine_MachineName)
          Set a pretty label for cross reference Machine to Machine.Id.
 void setMachine(Integer machine_id)
           
 void setMachine(Machine machine)
          Set the The machine used for sequencing.
 void setRun(String run)
          Set the The run number always use 4 digits (with leading 0's).
 void setRunDate(Date runDate)
          Set the The date the flowcell was run on the machine..
 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

FLOWCELLDIRECTION

public static final String FLOWCELLDIRECTION
See Also:
Constant Field Values

FLOWCELLNAME

public static final String FLOWCELLNAME
See Also:
Constant Field Values

MACHINE

public static final String MACHINE
See Also:
Constant Field Values

MACHINE_MACHINENAME

public static final String MACHINE_MACHINENAME
See Also:
Constant Field Values

RUN

public static final String RUN
See Also:
Constant Field Values

RUNDATE

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

Flowcell

public Flowcell()

Flowcell

public Flowcell(Flowcell copyMe)
         throws Exception
copy constructor

Throws:
Exception
Method Detail

query

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


find

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

Throws:
DatabaseException

findById

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

findByFlowcellName

public static Flowcell findByFlowcellName(Database db,
                                          String flowcellName)
                                   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 -

getFlowcellDirection

public String getFlowcellDirection()
Get the The direction used to read sequences.

Returns:
flowcellDirection.

getFlowcellDirection

@Deprecated
public String getFlowcellDirection(Database db)
Deprecated. 


setFlowcellDirection

public void setFlowcellDirection(String flowcellDirection)
Set the The direction used to read sequences.

Parameters:
flowcellDirection -

getFlowcellDirectionLabel

public String getFlowcellDirectionLabel()
Get tha label for enum FlowcellDirection.


getFlowcellDirectionOptions

public List<ValueLabel> getFlowcellDirectionOptions()
FlowcellDirection is enum. This method returns all available enum options.


getFlowcellName

public String getFlowcellName()
Get the The unique name of a flowcell.

Returns:
flowcellName.

getFlowcellName

@Deprecated
public String getFlowcellName(Database db)
Deprecated. 


setFlowcellName

public void setFlowcellName(String flowcellName)
Set the The unique name of a flowcell.

Parameters:
flowcellName -

getMachine

public Machine getMachine()
Get the The machine used for sequencing.

Returns:
machine.

getMachine

@Deprecated
public Machine getMachine(Database db)
Deprecated. 


setMachine

public void setMachine(Machine machine)
Set the The machine used for sequencing.

Parameters:
machine -

setMachine_Id

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


setMachine

public void setMachine(Integer machine_id)

getMachine_Id

public Integer getMachine_Id()

getMachine_MachineName

public String getMachine_MachineName()
Get a pretty label MachineName for cross reference Machine to Machine.Id.


setMachine_MachineName

public void setMachine_MachineName(String machine_MachineName)
Set a pretty label for cross reference Machine to Machine.Id. Implies setMachine(null) until save


getRun

public String getRun()
Get the The run number always use 4 digits (with leading 0's).

Returns:
run.

getRun

@Deprecated
public String getRun(Database db)
Deprecated. 


setRun

public void setRun(String run)
Set the The run number always use 4 digits (with leading 0's).

Parameters:
run -

getRunDate

public Date getRunDate()
Get the The date the flowcell was run on the machine..

Returns:
runDate.

getRunDate

@Deprecated
public Date getRunDate(Database db)
Deprecated. 


setRunDate

public void setRunDate(Date runDate)
Set the The date the flowcell was run on the machine..

Parameters:
runDate -

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 Flowcell.

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 Flowcell 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.