public class VirtualColumn
extends java.lang.Object
HibernateUtil.createVirtualTable(VirtualDb, VirtualTable)
to create the extra tables needed by an experiment to store analysed
data. These objects are also used in query elements by DynamicQuery
:s
when it needs to reference a certain column in one of the dynamic tables.VirtualTable
,
Dynamic
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
column
The column name in the database of the column.
|
static VirtualColumn |
COLUMN
This column stores the data cube column coordinate.
|
static VirtualColumn |
CUBE
This column stores the data cube number.
|
static VirtualColumn |
EXTRA
This column stores the data cube extra value number.
|
static VirtualColumn |
EXTRA_FLOAT
This column stores extra float values.
|
static VirtualColumn |
EXTRA_INT
This column stores extra integer values.
|
static VirtualColumn |
EXTRA_STRING
This column stores extra string values.
|
private static java.util.Map<Type,VirtualColumn> |
extraValueColumns
A cache of virtual column objects for extra value types.
|
static VirtualColumn |
FILTER
This column stores the data cube filter number.
|
private boolean |
indexed
If the column should be indexed or not.
|
static boolean |
INDEXED
Used in constructor to tell that the column should be indexed.
|
static VirtualColumn |
LAYER
This column stores the data cube layer coordinate.
|
private java.lang.String |
name
The name of the column.
|
private boolean |
nullable
If the column should be nullable or not.
|
static boolean |
NULLABLE
Used in constructor to tell that the column should be nullable.
|
static VirtualColumn |
POSITION
This column stores the data cube position coordinate.
|
static boolean |
PRIMARY_KEY
Used in constructor to tell that the column is part of the primary key.
|
private boolean |
primaryKey
If the column should be part of the primary key or not.
|
static VirtualColumn |
RAWBIOASSAY_ID
This column stores the id of a raw bioassay.
|
static VirtualColumn |
RAWDATA_ID
This column stores the id of a raw date object.
|
static VirtualColumn |
REPORTER_EXTERNAL_ID
Column for storing the external reporter id.
|
static VirtualColumn |
REPORTER_ID
This column stores the id of a reporter.
|
static VirtualColumn |
REPORTER_ID_PK
Column for storing the id of a reporter when it is part of the
primary key.
|
static VirtualColumn |
REPORTER_VERSION
Column for storing the original version of a reporter that
is cloned to a virtual table.
|
private int |
size
The size of the column if it is a string.
|
private TypeWrapper<?> |
typeWrapper
The data type of the column.
|
private boolean |
unique
If the column must contain unique values or not.
|
static boolean |
UNIQUE
Used in constructor to tell that the column must contain only
unique values.
|
private boolean |
untransformIntensities |
Modifier | Constructor and Description |
---|---|
private |
VirtualColumn(java.lang.String name,
java.lang.String column,
TypeWrapper<?> type,
int size,
boolean indexed,
boolean unique,
boolean nullable,
boolean primaryKey,
boolean untransformIntensities)
Create a new virtual column.
|
Modifier and Type | Method and Description |
---|---|
static VirtualColumn |
channelIntensity(int channel)
Get a column that returns the intensity values for a channel.
|
static VirtualColumn |
channelRaw(int channel)
Get a column that stores the raw spot value for a channel.
|
static VirtualColumn |
clonableProperty(ClonableProperty property)
Get a virtual column view of a cloned reporter property.
|
boolean |
equals(java.lang.Object other)
A virtual column is equal to another if both have the same name.
|
static VirtualColumn |
extraValue(Type valueType)
Get a column that stores the calculated extra values for a value type.
|
java.lang.String |
getColumn()
Get the database column name of the column.
|
java.lang.String |
getName()
Get the name of the column.
|
int |
getSize()
Get the maximum size of data in the column if it is a string.
|
TypeWrapper<?> |
getTypeWrapper()
Get a wrapper for accessing underlying type information from Hibernate.
|
int |
hashCode() |
boolean |
isIndexed()
If the column is indexed or not.
|
boolean |
isNullable()
If null values are allowed in the column or not.
|
boolean |
isPrimaryKey()
If the column is part of the primary key or not.
|
boolean |
isUnique()
If the column must contain unique values or not.
|
boolean |
untransformIntensities()
A flag indicating if transformed intensity valus belonging
to a bioassay set should be untransformed as part of a query.
|
public static final boolean INDEXED
public static final boolean UNIQUE
public static final boolean NULLABLE
public static final boolean PRIMARY_KEY
public static final VirtualColumn CUBE
DataCube.getCubeNo()
public static final VirtualColumn LAYER
DataCubeLayer.getLayerNo()
public static final VirtualColumn COLUMN
DataCubeColumn.getColumnNo()
public static final VirtualColumn POSITION
public static final VirtualColumn FILTER
DataCubeFilter.getFilterNo()
public static final VirtualColumn EXTRA
DataCubeExtraValue.getExtraNo()
public static final VirtualColumn REPORTER_ID
Reporters
table.ReporterData
public static final VirtualColumn REPORTER_ID_PK
Reporters
table.public static final VirtualColumn REPORTER_VERSION
public static final VirtualColumn REPORTER_EXTERNAL_ID
public static final VirtualColumn RAWDATA_ID
RawData
public static final VirtualColumn RAWBIOASSAY_ID
RawBioAssays
table.RawBioAssay
public static final VirtualColumn EXTRA_INT
public static final VirtualColumn EXTRA_FLOAT
public static final VirtualColumn EXTRA_STRING
private static final java.util.Map<Type,VirtualColumn> extraValueColumns
private final java.lang.String name
private final java.lang.String column
private final TypeWrapper<?> typeWrapper
private final int size
private final boolean indexed
private final boolean unique
private final boolean nullable
private final boolean primaryKey
private final boolean untransformIntensities
private VirtualColumn(java.lang.String name, java.lang.String column, TypeWrapper<?> type, int size, boolean indexed, boolean unique, boolean nullable, boolean primaryKey, boolean untransformIntensities)
public static VirtualColumn channelRaw(int channel)
BioAssaySet.getIntensityTransform()
for the current
bioassay set.channel
- The channel numberchannelIntensity(int)
public static VirtualColumn channelIntensity(int channel)
BioAssaySet.getIntensityTransform()
setting for
the current bioassay set), are untransformed automatically.channel
- The channel numberchannelRaw(int)
public static VirtualColumn extraValue(Type valueType)
VirtualColumn
object per type exists. Only
Type.INT
, Type.FLOAT
and Type.STRING
are
supported.valueType
- The type to get the column for.public static VirtualColumn clonableProperty(ClonableProperty property)
property
- The cloned reporter propertypublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getName()
SELECT
statements by default.public java.lang.String getColumn()
public TypeWrapper<?> getTypeWrapper()
public int getSize()
getType() == Hibernate.STRING
public boolean isIndexed()
public boolean isUnique()
public boolean isNullable()
public boolean isPrimaryKey()
public boolean untransformIntensities()
channelIntensity(int)