public class DataCubeColumn extends ChildItem
BioAssay
must have a link to an item of this type. It is
possible for more than one bioassay to link to the same column.
Actually, if two BioAssaySet
:s, one which is the child of the other,
are in the same data cube, a bioassay must link to the same column as
the parent bioassay.Modifier and Type | Field and Description |
---|---|
static Item |
TYPE
The type of item represented by this class.
|
Constructor and Description |
---|
DataCubeColumn(DataCubeColumnData data)
Creates a new data cube item from the given data.
|
Modifier and Type | Method and Description |
---|---|
static DataCubeColumn |
getById(DbControl dc,
int id)
Get a
DataCubeColumn item when you know the id. |
short |
getColumnNo()
Get the number of this column.
|
(package private) DataCubeColumnData |
getData()
Get the
BasicData object that holds all data for this item. |
DataCube |
getDataCube()
Get the data cube this layer belongs to.
|
short |
getDataCubeNo()
Get the number of the data cube this layer belongs to.
|
(package private) static DataCubeColumn |
getNew(DbControl dc,
DataCube cube)
Create a new
DataCubeColumn 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 column belongs to.
|
(package private) void |
initPermissions(int granted,
int denied)
Deny DELETE permission.
|
private void |
setColumnNo(short columnNo) |
private void |
setDataCube(DataCube cube)
Set the experiment.
|
getPermissionForUse, getPluginPermissions
addUsingItems, addUsingItems, checkPermission, equals, getBasicData, getDbControl, getId, getPermissions, getSessionControl, getUsingItems, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, onAfterCommit, onAfterInsert, onBeforeCommit, onRollback, setDbControl, setProjectDefaults, toString, validate
public static final Item TYPE
Item.DATACUBECOLUMN
,
getType()
DataCubeColumn(DataCubeColumnData data)
data
- the datastatic DataCubeColumn getNew(DbControl dc, DataCube cube) throws BaseException
DataCubeColumn
item.dc
- The DbControl
which will be used for
permission checking and database access.cube
- The cube the new column is located inDataCubeColumn
itemBaseException
- If there is an errorpublic static DataCubeColumn getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
DataCubeColumn
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 loadDataCubeColumn
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 errorDataCubeColumnData getData()
BasicItem
BasicData
object that holds all data for this item.public Item getType()
Identifiable
Item
enumeration.void initPermissions(int granted, int denied) throws BaseException
initPermissions
in class ChildItem
granted
- Permissions that have been granted by the subclassdenied
- Permissions that have been denied by the subclassBaseException
- If the permissions couldn't be initialisedSharedData getSharedParent()
getSharedParent
in class ChildItem
Permission getPermissionForWriteDeleteAndCreate()
getPermissionForWriteDeleteAndCreate
in class ChildItem
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) throws PermissionDeniedException, InvalidDataException
public short getDataCubeNo()
public short getColumnNo()
private void setColumnNo(short columnNo)
VirtualDb getVirtualDb()