2.17.2: 2011-06-17

net.sf.basedb.core
Interface FileStoreEnabled

All Superinterfaces:
AccessControlled, Identifiable
All Known Implementing Classes:
ArrayDesign, BioAssaySet, ExtraValue, RawBioAssay

public interface FileStoreEnabled
extends Identifiable

This interface is implemented by items that can use files instead of the database for storing data. For example, to store raw data for a RawBioAssay and features for a ArrayDesign.

Version:
2.5
Author:
Nicklas
Last modified
$Date: 2008-09-11 22:11:02 +0200 (Thu, 11 Sep 2008) $

Method Summary
 FileSet getFileSet()
          Get the file set that collects all files that holds data for this item.
 Collection<FileSet> getParentFileSets()
          Get the file sets of parent item(s) that are related to the current item.
 Platform getPlatform()
          Get the platform the item is related to.
 PlatformVariant getVariant()
          Get the platform variant the item is related to.
 boolean hasFileSet()
          Check if this item has a file set.
 
Methods inherited from interface net.sf.basedb.core.Identifiable
getId, getType, getVersion
 
Methods inherited from interface net.sf.basedb.core.AccessControlled
checkPermission, getPermissions, hasPermission
 

Method Detail

getFileSet

FileSet getFileSet()
Get the file set that collects all files that holds data for this item. If no file set exists a new one is created and automatically saved to the database when DbControl.commit() is called. To check if an item has files without creating a new file set use the hasFileSet() method.

Returns:
A file set

hasFileSet

boolean hasFileSet()
Check if this item has a file set. Always call this method before getFileSet() to avoid creating a new file set when there is no need for it.

Returns:
TRUE if a file set exists, FALSE if not

getPlatform

Platform getPlatform()
Get the platform the item is related to. The platform is used to limit the DataFileType:s that can be added to the file set.

Returns:
A platform or null if the items is not related to any platform.

getVariant

PlatformVariant getVariant()
Get the platform variant the item is related to. The platform is used to limit the DataFileType:s that can be added to the file set.

Returns:
A platform or null if the items is not related to any variant.

getParentFileSets

Collection<FileSet> getParentFileSets()
Get the file sets of parent item(s) that are related to the current item. If the item has no parent(s) or if the parent has no file set, null or an empty collection is returned.

Returns:
A collection of FileSet or null

2.17.2: 2011-06-17