Class ItemListData

All Implemented Interfaces:
AnnotatableData, IdentifiableData, LoggableData, NameableData, OwnableData, RemovableData, ShareableData

public class ItemListData
extends AnnotatedData
This represents an arbitrary collection of items. While the underlying implementation would allow any kind of items to be stored in the list, considerations for GUI support limit the items to those that implement the Listable interface.
See Also:
Hibernate: class
table="`ItemLists`" lazy="false"
  • Field Details


      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
    • subtype

      private ItemSubtypeData subtype
    • rawDataType

      private String rawDataType
    • size

      private int size
    • members

      private Set<Integer> members
    • disableSyncFilters

      private boolean disableSyncFilters
    • disableManualMembers

      private boolean disableManualMembers
    • syncDate

      private Date syncDate
    • sizeAtLastSync

      private int sizeAtLastSync
    • md5AtLastSync

      private String md5AtLastSync
    • syncFilters

      private Set<ItemListSyncFilterData> syncFilters
  • Constructor Details

    • ItemListData

      public ItemListData()
  • Method Details

    • getExternalId

      public String getExternalId()
      Get the external id for this ItemList 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 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)
    • getItemSubtype

      public ItemSubtypeData getItemSubtype()
      Get the subtype of items that can be members in this list. This is a recommendation only and is not enforced.
      Hibernate: many-to-one
      column="`subtype_id`" not-null="false" outer-join="false"
    • setItemSubtype

      public void setItemSubtype​(ItemSubtypeData subtype)
    • getRawDataType

      public String getRawDataType()
      Get the raw data type of raw bioassays that can be members in this list. This is a recommendation only and is not enforced.
      Hibernate: property
      column="`rawdatatype`" type="string" length="255" not-null="false"
    • setRawDataType

      public void setRawDataType​(String rawDataType)
    • 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)
    • getMembers

      public Set<Integer> getMembers()
      Get the set that manages which items that are part of this list.
      Hibernate: set
      table="`ItemListMembers`" lazy="true"
      Hibernate: collection-key
      Hibernate: collection-element
      column="`item_id`" type="int"
    • setMembers

      public void setMembers​(Set<Integer> members)
    • getDisableSyncFilters

      public boolean getDisableSyncFilters()
      If set, syncing members with sync filter is disabled
      Hibernate: property
      column="`disable_syncfilters`" type="boolean" not-null="true"
    • setDisableSyncFilters

      public void setDisableSyncFilters​(boolean disableSyncFilters)
    • getDisableManualMembers

      public boolean getDisableManualMembers()
      If set, manually adding/removing members is disabled
      Hibernate: property
      column="`disable_manual`" type="boolean" not-null="true"
    • setDisableManualMembers

      public void setDisableManualMembers​(boolean disableManualMembers)
    • getSyncDate

      public Date getSyncDate()
      Get the date and time the list members was last synchronized by the filter context.
      Hibernate: property
      column="`sync_date`" type="timestamp" not-null="false"
    • setSyncDate

      public void setSyncDate​(Date syncDate)
    • getSizeAtLastSync

      public int getSizeAtLastSync()
      The size of the item list after the last sync, -1 if it has never been synced.
      Hibernate: property
      column="`size_last_sync`" type="int" not-null="true"
    • setSizeAtLastSync

      public void setSizeAtLastSync​(int sizeAtLastSync)
    • getMd5AtLastSync

      public String getMd5AtLastSync()
      Get the MD5 hash of the concatenated ID values from the last sync. It is always returned as a string with 32 hexadecimal characters. This value can be compared to the MD5 of the current members to detect modifications.
      Hibernate: property
      column="`md5_last_sync`" type="string" length="32" not-null="false"
    • setMd5AtLastSync

      public void setMd5AtLastSync​(String md5AtLastSync)
    • getSyncFilters

      public Set<ItemListSyncFilterData> getSyncFilters()
      This is the inverse end.
      See Also:
      Hibernate: set
      lazy="true" inverse="true" cascade="delete"
      Hibernate: collection-key
      Hibernate: collection-one-to-many
    • setSyncFilters

      void setSyncFilters​(Set<ItemListSyncFilterData> syncFilters)