|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.BasicItem<D> net.sf.basedb.core.ChildItem<DataCubeLayerData> net.sf.basedb.core.DataCubeLayer
public class DataCubeLayer
This represents the layer coordinate in a data cube. A 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()
Field Summary | |
---|---|
static Item |
TYPE
The type of item represented by this class. |
Constructor Summary | |
---|---|
DataCubeLayer(DataCubeLayerData data)
Creates a new data cube item from the given data. |
Method Summary | |
---|---|
(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)
|
Methods inherited from class net.sf.basedb.core.ChildItem |
---|
getPluginPermissions, initPermissions |
Methods inherited from class net.sf.basedb.core.BasicItem |
---|
addUsingItems, addUsingItems, checkPermission, equals, getData, getDbControl, getId, getPermissions, getSessionControl, getUsingItems, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, onAfterCommit, onAfterInsert, onRollback, setDbControl, setProjectDefaults, toString, toTransferable, validate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Item TYPE
Item.DATACUBELAYER
,
getType()
Constructor Detail |
---|
DataCubeLayer(DataCubeLayerData data)
data
- the dataMethod Detail |
---|
static 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 in
DataCubeLayer
item
BaseException
- 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 load
DataCubeLayer
item
ItemNotFoundException
- If an item with the specified id
is not found
PermissionDeniedException
- If the logged in user doesn't have
Permission.READ
permission to the item
BaseException
- 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
,
Core API overview - Transaction handling,
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
object
PermissionDeniedException
- If the logged in user doesn't have
read permission to the item
BaseException
- 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()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |