org.molgenis.omx.ngs
Class Sample_SampleInPool

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

public class Sample_SampleInPool
extends AbstractEntity

Sample_SampleInPool: Link table for many-to-many relationship 'Sample.SampleInPool'..

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String AUTOID
           
static String SAMPLE
           
static String SAMPLE_INTERNALID
           
static String SAMPLEINPOOL
           
static String SAMPLEINPOOL_INTERNALID
           
 
Constructor Summary
Sample_SampleInPool()
           
Sample_SampleInPool(Sample_SampleInPool copyMe)
          copy constructor
 
Method Summary
 Sample_SampleInPool create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends Sample_SampleInPool> find(Database db, QueryRule... rules)
          Shorthand for db.find(Sample_SampleInPool.class, org.molgenis.framework.db.QueryRule ...
static Sample_SampleInPool findByAutoid(Database db, Integer autoid)
           
static Sample_SampleInPool findBySampleInPoolSample(Database db, Integer sampleInPool, Integer sample)
           
 Object get(String name)
          Generic getter.
 Integer getAutoid()
          Get the automatic id field to ensure ordering of mrefs.
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of Sample_SampleInPool.
 String getFields(String sep)
          Deprecated. 
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 Integer getSample_Id()
           
 String getSample_InternalId()
          Get a pretty label InternalId for cross reference Sample to Sample.Id.
 Sample getSample()
          Get the .
 Sample getSample(Database db)
          Deprecated. 
 Integer getSampleInPool_Id()
           
 String getSampleInPool_InternalId()
          Get a pretty label InternalId for cross reference SampleInPool to Sample.Id.
 Sample getSampleInPool()
          Get the .
 Sample getSampleInPool(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends Sample_SampleInPool> query(Database db)
          Shorthand for db.query(Sample_SampleInPool.class).
 void set(Tuple tuple, boolean strict)
           
 void setAutoid(Integer autoid)
          Set the automatic id field to ensure ordering of mrefs.
 void setSample_Id(Integer sample_id)
          Set foreign key for field sample.
 void setSample_InternalId(String sample_InternalId)
          Set a pretty label for cross reference Sample to Sample.Id.
 void setSample(Integer sample_id)
           
 void setSample(Sample sample)
          Set the .
 void setSampleInPool_Id(Integer sampleInPool_id)
          Set foreign key for field sampleInPool.
 void setSampleInPool_InternalId(String sampleInPool_InternalId)
          Set a pretty label for cross reference SampleInPool to Sample.Id.
 void setSampleInPool(Integer sampleInPool_id)
           
 void setSampleInPool(Sample sampleInPool)
          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

SAMPLEINPOOL

public static final String SAMPLEINPOOL
See Also:
Constant Field Values

SAMPLEINPOOL_INTERNALID

public static final String SAMPLEINPOOL_INTERNALID
See Also:
Constant Field Values

SAMPLE

public static final String SAMPLE
See Also:
Constant Field Values

SAMPLE_INTERNALID

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

Sample_SampleInPool

public Sample_SampleInPool()

Sample_SampleInPool

public Sample_SampleInPool(Sample_SampleInPool copyMe)
                    throws Exception
copy constructor

Throws:
Exception
Method Detail

query

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


find

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

Throws:
DatabaseException

findByAutoid

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

findBySampleInPoolSample

public static Sample_SampleInPool findBySampleInPoolSample(Database db,
                                                           Integer sampleInPool,
                                                           Integer sample)
                                                    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 -

getSampleInPool

public Sample getSampleInPool()
Get the .

Returns:
sampleInPool.

getSampleInPool

@Deprecated
public Sample getSampleInPool(Database db)
Deprecated. 


setSampleInPool

public void setSampleInPool(Sample sampleInPool)
Set the .

Parameters:
sampleInPool -

setSampleInPool_Id

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


setSampleInPool

public void setSampleInPool(Integer sampleInPool_id)

getSampleInPool_Id

public Integer getSampleInPool_Id()

getSampleInPool_InternalId

public String getSampleInPool_InternalId()
Get a pretty label InternalId for cross reference SampleInPool to Sample.Id.


setSampleInPool_InternalId

public void setSampleInPool_InternalId(String sampleInPool_InternalId)
Set a pretty label for cross reference SampleInPool to Sample.Id. Implies setSampleInPool(null) until save


getSample

public Sample getSample()
Get the .

Returns:
sample.

getSample

@Deprecated
public Sample getSample(Database db)
Deprecated. 


setSample

public void setSample(Sample sample)
Set the .

Parameters:
sample -

setSample_Id

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


setSample

public void setSample(Integer sample_id)

getSample_Id

public Integer getSample_Id()

getSample_InternalId

public String getSample_InternalId()
Get a pretty label InternalId for cross reference Sample to Sample.Id.


setSample_InternalId

public void setSample_InternalId(String sample_InternalId)
Set a pretty label for cross reference Sample to Sample.Id. Implies setSample(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 Sample_SampleInPool.


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