public class DataCubeLayer extends ChildItem<DataCubeLayerData>
BioAssaySet
must have a link to an item of this type. It is
possible for more than one bioassayset to link to the same layer.
This item keeps track of two important things. The layer coordinate number
and the number of bytes the data in this layer occupies on disk.
The number of bytes is reported up to the Experiment
which is the
item that handles user quota.DataCube
,
BioAssaySet.getDataCubeLayer()
,
BioAssaySet.getDataCubeLayerNo()
Modifier and Type | Field and Description |
---|---|
static Item |
TYPE
The type of item represented by this class.
|
Constructor and Description |
---|
DataCubeLayer(DataCubeLayerData data)
Creates a new data cube item from the given data.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addBytes(long bytes) |
static DataCubeLayer |
getById(DbControl dc,
int id)
Get a
DataCubeLayer item when you know the id. |
long |
getBytes()
Get the number of bytes the data stored in this layer occupies on disk.
|
DataCube |
getDataCube()
Get the data cube this layer belongs to.
|
short |
getDataCubeNo()
Get the number of the data cube this layer belongs to.
|
short |
getLayerNo()
Get the number of this layer.
|
(package private) static DataCubeLayer |
getNew(DbControl dc,
DataCube cube)
Create a new
DataCubeLayer item. |
(package private) Permission |
getPermissionForWriteDeleteAndCreate()
USE permission is enough to be able to manage data cubes.
|
(package private) SharedData |
getSharedParent()
Get the experiment.
|
Item |
getType()
Get the type of item represented by the object.
|
(package private) VirtualDb |
getVirtualDb()
Get the virtual database this layer belongs to.
|
(package private) void |
onBeforeCommit(Transactional.Action action)
Delete data and update disk usage information on the
experiment if action == Action.DELETE
|
private void |
setDataCube(DataCube cube)
Set the data cube.
|
private void |
setLayerNo(short layerNo) |
getPermissionForUse, getPluginPermissions, initPermissions
addUsingItems, addUsingItems, checkPermission, equals, getData, getDbControl, getId, getPermissions, getSessionControl, getUsingItems, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, onAfterCommit, onAfterInsert, onRollback, setDbControl, setProjectDefaults, toString, validate
public static final Item TYPE
Item.DATACUBELAYER
,
getType()
DataCubeLayer(DataCubeLayerData data)
data
- the datastatic DataCubeLayer getNew(DbControl dc, DataCube cube) throws BaseException
DataCubeLayer
item.dc
- The DbControl
which will be used for
permission checking and database access.cube
- The cube the new layer is located inDataCubeLayer
itemBaseException
- If there is an errorpublic static DataCubeLayer getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
DataCubeLayer
item when you know the id.dc
- The DbControl
which will be used for
permission checking and database access.id
- The id of the item to loadDataCubeLayer
itemItemNotFoundException
- If an item with the specified id
is not foundPermissionDeniedException
- If the logged in user doesn't have
Permission.READ
permission to the itemBaseException
- If there is another errorpublic Item getType()
Identifiable
Item
enumeration.void onBeforeCommit(Transactional.Action action) throws BaseException
onBeforeCommit
in class BasicItem<DataCubeLayerData>
BaseException
- If there is an errorTransactional
,
Developer documentation: Transactions,
Developer documentation: Coding rules and guidelines for item classesSharedData getSharedParent()
getSharedParent
in class ChildItem<DataCubeLayerData>
Permission getPermissionForWriteDeleteAndCreate()
getPermissionForWriteDeleteAndCreate
in class ChildItem<DataCubeLayerData>
public DataCube getDataCube() throws PermissionDeniedException, BaseException
DataCube
objectPermissionDeniedException
- If the logged in user doesn't have
read permission to the itemBaseException
- If there is another errorprivate void setDataCube(DataCube cube)
public short getDataCubeNo()
public short getLayerNo()
private void setLayerNo(short layerNo)
public long getBytes()
void addBytes(long bytes)
VirtualDb getVirtualDb()