public class DataCubeExtraValue extends ChildItem<DataCubeExtraValueData>
Experiment
which is the item that handles user quota.ExtraValue
,
ExtraValueType
,
SpotExtraValueBatcher
,
PositionExtraValueBatcher
,
DataCube
Modifier and Type | Field and Description |
---|---|
static Item |
TYPE
The type of item represented by this class.
|
Constructor and Description |
---|
DataCubeExtraValue(DataCubeExtraValueData data)
Creates a new data cube item from the given data.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addBytes(long bytes) |
static DataCubeExtraValue |
getById(DbControl dc,
int id)
Get a
DataCubeExtraValue item when you know the id. |
long |
getBytes()
Get the number of bytes the data stored in this layer occupies on disk.
|
ExtraValue.CoordinateType |
getCoordinateType()
Get the coordinate type the extra values are attached to.
|
DataCube |
getDataCube()
Get the data cube this extra value belongs to.
|
short |
getDataCubeNo()
Get the number of the data cube this extra value belongs to.
|
short |
getExtraNo()
Get the extra value number.
|
(package private) static DataCubeExtraValue |
getNew(DbControl dc,
DataCube cube,
Type valueType,
ExtraValue.CoordinateType coordinateType)
Create a new
DataCubeExtraValue 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.
|
Type |
getValueType()
Get the value type of the extra values.
|
(package private) VirtualDb |
getVirtualDb()
Get the virtual database this extra value belongs to.
|
(package private) VirtualTable |
getVirtualTable()
Get the virtual table this extra value stores it's data in.
|
(package private) void |
onBeforeCommit(Transactional.Action action)
Delete data and update disk usage information on the
experiment if action == Action.DELETE
|
private void |
setCoordinateType(ExtraValue.CoordinateType coordinateType)
Set the coordinate type.
|
private void |
setDataCube(DataCube cube)
Set the data cube.
|
private void |
setExtraNo(short extraNo) |
private void |
setValueType(Type valueType)
Set the value type.
|
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, toTransferable, validate
public static final Item TYPE
Item.DATACUBEEXTRAVALUE
,
getType()
DataCubeExtraValue(DataCubeExtraValueData data)
data
- the datastatic DataCubeExtraValue getNew(DbControl dc, DataCube cube, Type valueType, ExtraValue.CoordinateType coordinateType) throws BaseException
DataCubeExtraValue
item.dc
- The DbControl
which will be used for
permission checking and database access.cube
- The cube the new extra value is located invalueType
- The data type of the extra valuescoordinateType
- Which coordinates the extra values should be attached toDataCubeExtraValue
itemBaseException
- If there is an errorpublic static DataCubeExtraValue getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
DataCubeExtraValue
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 loadDataCubeExtraValue
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<DataCubeExtraValueData>
BaseException
- If there is an errorTransactional
,
Developer documentation: Transactions,
Developer documentation: Coding rules and guidelines for item classesSharedData getSharedParent()
getSharedParent
in class ChildItem<DataCubeExtraValueData>
Permission getPermissionForWriteDeleteAndCreate()
getPermissionForWriteDeleteAndCreate
in class ChildItem<DataCubeExtraValueData>
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 ExtraValue.CoordinateType getCoordinateType()
private void setCoordinateType(ExtraValue.CoordinateType coordinateType) throws InvalidDataException
InvalidDataException
public Type getValueType()
private void setValueType(Type valueType) throws InvalidDataException
InvalidDataException
public short getDataCubeNo()
public short getExtraNo()
private void setExtraNo(short extraNo)
public long getBytes()
void addBytes(long bytes)
VirtualDb getVirtualDb()
VirtualTable getVirtualTable()