|
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.VirtualColumn
public class VirtualColumn
This class is used to define columns in the virtual tables in the
dynamic part of the database that are storing analysed data. The information
in these objects are used by 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
Field Summary | |
---|---|
private 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 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 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_ID
This column stores the id of a reporter. |
private int |
size
The size of the column if it is a string. |
private TypeWrapper |
typeWrapper
The data type of the column. |
private boolean |
untransformIntensities
|
Constructor Summary | |
---|---|
private |
VirtualColumn(String name,
String column,
TypeWrapper type,
int size,
boolean indexed,
boolean nullable,
boolean primaryKey,
boolean untransformIntensities)
Create a new virtual column. |
Method Summary | |
---|---|
static VirtualColumn |
channel(int channel)
Deprecated. In 2.12. Use channelIntensity(int) or
channelRaw(int) instead. This method is forwarded
to channelIntensity(int) for maximum backwards
compatibility. |
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. |
boolean |
equals(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. |
String |
getColumn()
Get the database column name of the column. |
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 |
untransformIntensities()
A flag indicating if transformed intensity valus belonging to a bioassay set should be untransformed as part of a query. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean INDEXED
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 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 Map<Type,VirtualColumn> extraValueColumns
private final String name
private final String column
private final TypeWrapper typeWrapper
private final int size
private final boolean indexed
private final boolean nullable
private final boolean primaryKey
private final boolean untransformIntensities
Constructor Detail |
---|
private VirtualColumn(String name, String column, TypeWrapper type, int size, boolean indexed, boolean nullable, boolean primaryKey, boolean untransformIntensities)
Method Detail |
---|
public static VirtualColumn channel(int channel)
channelIntensity(int)
or
channelRaw(int)
instead. This method is forwarded
to channelIntensity(int)
for maximum backwards
compatibility.
channel
- The channel for which the intensity is calculated.
public static VirtualColumn channelRaw(int channel)
BioAssaySet.getIntensityTransform()
for the current
bioassay set.
channel
- The channel number
channelIntensity(int)
public static VirtualColumn channelIntensity(int channel)
BioAssaySet.getIntensityTransform()
setting for
the current bioassay set), are untransformed automatically.
channel
- The channel number
channelRaw(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 boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName()
SELECT
statements by default.
public String getColumn()
public TypeWrapper getTypeWrapper()
public int getSize()
getType() == Hibernate.STRING
public boolean isIndexed()
public boolean isNullable()
public boolean isPrimaryKey()
public boolean untransformIntensities()
channelIntensity(int)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |