2.17.2: 2011-06-17

net.sf.basedb.core.data
Class BioMaterialListData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by net.sf.basedb.core.data.OwnedData
          extended by net.sf.basedb.core.data.SharedData
              extended by net.sf.basedb.core.data.CommonData
                  extended by net.sf.basedb.core.data.BioMaterialListData
All Implemented Interfaces:
IdentifiableData, NameableData, OwnableData, RemovableData, ShareableData

public class BioMaterialListData
extends CommonData

This represents an arbitrary collection of biomaterials.

Version:
2.10
Author:
Nicklas
See Also:
BioMaterialList, Biomaterials overview
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $
Hibernate: class
table="`BioMaterialLists`" lazy="false"

Field Summary
private  Set<BioMaterialData> bioMaterials
           
private  String externalId
           
static int MAX_EXTERNAL_ID_LENGTH
          The maximum length of the external ID that can be stored in the database.
private  int memberType
           
private  int size
           
 
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
 
Constructor Summary
BioMaterialListData()
           
 
Method Summary
 Set<BioMaterialData> getBioMaterials()
          Get the set that manages which biomaterials are part of this list.
 String getExternalId()
          Get the external id for this ReporterList item.
 int getMemberType()
          Get the type of (biomaterial) items this list can hold.
 int getSize()
          The number of biomaterials in the list.
(package private)  void setBioMaterials(Set<BioMaterialData> bioMaterials)
           
 void setExternalId(String externalId)
           
 void setMemberType(int memberType)
           
 void setSize(int size)
           
 
Methods inherited from class net.sf.basedb.core.data.CommonData
getDescription, getName, isRemoved, setDescription, setName, setRemoved
 
Methods inherited from class net.sf.basedb.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
 
Methods inherited from class net.sf.basedb.core.data.OwnedData
getOwner, setOwner
 
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getId, getVersion
 
Methods inherited from interface net.sf.basedb.core.data.OwnableData
getOwner, setOwner
 

Field Detail

MAX_EXTERNAL_ID_LENGTH

public static final int MAX_EXTERNAL_ID_LENGTH
The maximum length of the external ID that can be stored in the database.

See Also:
setExternalId(String), Constant Field Values

externalId

private String externalId

memberType

private int memberType

size

private int size

bioMaterials

private Set<BioMaterialData> bioMaterials
Constructor Detail

BioMaterialListData

public BioMaterialListData()
Method Detail

getExternalId

public String getExternalId()
Get the external id for this ReporterList item.

Hibernate: property
column="`external_id`" type="string" length="255" not-null="false"

setExternalId

public void setExternalId(String externalId)

getMemberType

public int getMemberType()
Get the type of (biomaterial) items this list can hold. Not possible to change after creation.

Hibernate: property
column="`member_type`" type="int" not-null="true" update="false"

setMemberType

public void setMemberType(int memberType)

getSize

public int getSize()
The number of biomaterials in the list.

Hibernate: property
column="`size`" type="int" not-null="true"

setSize

public void setSize(int size)

getBioMaterials

public Set<BioMaterialData> getBioMaterials()
Get the set that manages which biomaterials are part of this list.

Hibernate: set
table="`BioMaterialListMembers`" lazy="true"
Hibernate: collection-key
column="`list_id`"
Hibernate: collection-many-to-many
column="`biomaterial_id`" class="net.sf.basedb.core.data.BioMaterialData"

setBioMaterials

void setBioMaterials(Set<BioMaterialData> bioMaterials)

2.17.2: 2011-06-17