org.molgenis.omx.ngs
Class SampleBarcode

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

@Entity
public class SampleBarcode
extends AbstractEntity
implements Autoid

SampleBarcode: .

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String ID
           
static String SAMPLEBARCODENAME
           
static String SAMPLEBARCODENR
           
static String SAMPLEBARCODESEQUENCE
           
static String SAMPLEBARCODETYPE
           
static String SAMPLEBARCODETYPE_SAMPLEBARCODETYPENAME
           
 
Constructor Summary
SampleBarcode()
           
SampleBarcode(SampleBarcode copyMe)
          copy constructor
 
Method Summary
 SampleBarcode create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends SampleBarcode> find(Database db, QueryRule... rules)
          Shorthand for db.find(SampleBarcode.class, org.molgenis.framework.db.QueryRule ...
static SampleBarcode findById(Database db, Integer id)
           
static SampleBarcode findBySampleBarcodeName(Database db, String sampleBarcodeName)
           
static SampleBarcode findBySampleBarcodeTypeSampleBarcodeNrSampleBarcodeSequence(Database db, Integer sampleBarcodeType, String sampleBarcodeNr, String sampleBarcodeSequence)
           
 Object get(String name)
          Generic getter.
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of SampleBarcode.
 String getFields(String sep)
          Deprecated. 
 Integer getId()
          Get the automatically generated internal id, only for internal use..
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 String getSampleBarcodeName()
          Get the A concatenated value of Type, Nr and Sequence.
 String getSampleBarcodeName(Database db)
          Deprecated. 
 String getSampleBarcodeNr()
          Get the The identifier of a barcode given by the supplier.
 String getSampleBarcodeNr(Database db)
          Deprecated. 
 String getSampleBarcodeSequence()
          Get the The nucleotide sequence which forms the barcode.
 String getSampleBarcodeSequence(Database db)
          Deprecated. 
 Integer getSampleBarcodeType_Id()
           
 String getSampleBarcodeType_SampleBarcodeTypeName()
          Get a pretty label SampleBarcodeTypeName for cross reference SampleBarcodeType to SampleBarcodeType.Id.
 SampleBarcodeType getSampleBarcodeType()
          Get the Type.
 SampleBarcodeType getSampleBarcodeType(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends SampleBarcode> query(Database db)
          Shorthand for db.query(SampleBarcode.class).
 void set(Tuple tuple, boolean strict)
           
 void setId(Integer id)
          Set the automatically generated internal id, only for internal use..
 void setSampleBarcodeName(String sampleBarcodeName)
          Set the A concatenated value of Type, Nr and Sequence.
 void setSampleBarcodeNr(String sampleBarcodeNr)
          Set the The identifier of a barcode given by the supplier.
 void setSampleBarcodeSequence(String sampleBarcodeSequence)
          Set the The nucleotide sequence which forms the barcode.
 void setSampleBarcodeType_Id(Integer sampleBarcodeType_id)
          Set foreign key for field sampleBarcodeType.
 void setSampleBarcodeType_SampleBarcodeTypeName(String sampleBarcodeType_SampleBarcodeTypeName)
          Set a pretty label for cross reference SampleBarcodeType to SampleBarcodeType.Id.
 void setSampleBarcodeType(Integer sampleBarcodeType_id)
           
 void setSampleBarcodeType(SampleBarcodeType sampleBarcodeType)
          Set the Type.
 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

SAMPLEBARCODENR

public static final String SAMPLEBARCODENR
See Also:
Constant Field Values

SAMPLEBARCODESEQUENCE

public static final String SAMPLEBARCODESEQUENCE
See Also:
Constant Field Values

SAMPLEBARCODETYPE

public static final String SAMPLEBARCODETYPE
See Also:
Constant Field Values

SAMPLEBARCODETYPE_SAMPLEBARCODETYPENAME

public static final String SAMPLEBARCODETYPE_SAMPLEBARCODETYPENAME
See Also:
Constant Field Values

SAMPLEBARCODENAME

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

SampleBarcode

public SampleBarcode()

SampleBarcode

public SampleBarcode(SampleBarcode copyMe)
              throws Exception
copy constructor

Throws:
Exception
Method Detail

query

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


find

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

Throws:
DatabaseException

findById

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

findBySampleBarcodeName

public static SampleBarcode findBySampleBarcodeName(Database db,
                                                    String sampleBarcodeName)
                                             throws DatabaseException
Throws:
DatabaseException

findBySampleBarcodeTypeSampleBarcodeNrSampleBarcodeSequence

public static SampleBarcode findBySampleBarcodeTypeSampleBarcodeNrSampleBarcodeSequence(Database db,
                                                                                        Integer sampleBarcodeType,
                                                                                        String sampleBarcodeNr,
                                                                                        String sampleBarcodeSequence)
                                                                                 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 -

getSampleBarcodeNr

public String getSampleBarcodeNr()
Get the The identifier of a barcode given by the supplier.

Returns:
sampleBarcodeNr.

getSampleBarcodeNr

@Deprecated
public String getSampleBarcodeNr(Database db)
Deprecated. 


setSampleBarcodeNr

public void setSampleBarcodeNr(String sampleBarcodeNr)
Set the The identifier of a barcode given by the supplier.

Parameters:
sampleBarcodeNr -

getSampleBarcodeSequence

public String getSampleBarcodeSequence()
Get the The nucleotide sequence which forms the barcode.

Returns:
sampleBarcodeSequence.

getSampleBarcodeSequence

@Deprecated
public String getSampleBarcodeSequence(Database db)
Deprecated. 


setSampleBarcodeSequence

public void setSampleBarcodeSequence(String sampleBarcodeSequence)
Set the The nucleotide sequence which forms the barcode.

Parameters:
sampleBarcodeSequence -

getSampleBarcodeType

public SampleBarcodeType getSampleBarcodeType()
Get the Type.

Returns:
sampleBarcodeType.

getSampleBarcodeType

@Deprecated
public SampleBarcodeType getSampleBarcodeType(Database db)
Deprecated. 


setSampleBarcodeType

public void setSampleBarcodeType(SampleBarcodeType sampleBarcodeType)
Set the Type.

Parameters:
sampleBarcodeType -

setSampleBarcodeType_Id

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


setSampleBarcodeType

public void setSampleBarcodeType(Integer sampleBarcodeType_id)

getSampleBarcodeType_Id

public Integer getSampleBarcodeType_Id()

getSampleBarcodeType_SampleBarcodeTypeName

public String getSampleBarcodeType_SampleBarcodeTypeName()
Get a pretty label SampleBarcodeTypeName for cross reference SampleBarcodeType to SampleBarcodeType.Id.


setSampleBarcodeType_SampleBarcodeTypeName

public void setSampleBarcodeType_SampleBarcodeTypeName(String sampleBarcodeType_SampleBarcodeTypeName)
Set a pretty label for cross reference SampleBarcodeType to SampleBarcodeType.Id. Implies setSampleBarcodeType(null) until save


getSampleBarcodeName

public String getSampleBarcodeName()
Get the A concatenated value of Type, Nr and Sequence.

Returns:
sampleBarcodeName.

getSampleBarcodeName

@Deprecated
public String getSampleBarcodeName(Database db)
Deprecated. 


setSampleBarcodeName

public void setSampleBarcodeName(String sampleBarcodeName)
Set the A concatenated value of Type, Nr and Sequence.

Parameters:
sampleBarcodeName -

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

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