public abstract class DynamicQuery extends AbstractSqlQuery implements ClonableReporterQuery
VirtualTable.SPOT
or VirtualTable.POSITION
as the root table for the query. Use factory methods in the Dynamic
class to join other tables and create restrictions based on the data in those tables.
This type of query is executed by the AbstractSqlQuery.iterate(DbControl)
method
and returns the result as a DynamicResultIterator
.
BioAssaySet.getSpotData()
,
BioAssaySet.getPositionData()
,
ExtraValue.getValues()
AbstractSqlQuery.CountWork
Modifier and Type | Field and Description |
---|---|
private DataCube |
cube |
private boolean |
hasClonedReporters |
private VirtualTable |
rootTable |
private IntensityTransform |
transform |
private boolean |
useClonedReporters |
private VirtualDb |
virtualDb |
Constructor and Description |
---|
DynamicQuery(DataCube cube,
VirtualTable rootTable,
IntensityTransform transform)
Create a new dynamic query.
|
DynamicQuery(VirtualDb vdb,
VirtualTable rootTable)
Create a new non-restricted dynamic query.
|
Modifier and Type | Method and Description |
---|---|
(package private) DataCube |
getDataCube() |
IntensityTransform |
getIntensityTransform()
Get the intensity transform that was used to store spot intensities
for the root bioassay set in this query.
|
abstract JepFunction[] |
getJepFunctions(DbControl dc,
boolean restrictions)
Create custom JEP function that can be used with the current
query.
|
java.lang.String |
getRootAlias()
The alias of the item that is returned by this query.
|
(package private) VirtualTable |
getRootTable() |
VirtualDb |
getVirtualDb()
Get the virtual database that this query is using.
|
boolean |
hasClonedReporters()
Check if the virtual database that this query is using has
cloned reporter annotations or not.
|
void |
setUseClonedReporters(boolean useClonedReporters)
Set if cloned reporters should be used by default or not.
|
boolean |
useClonedReporters()
Checks if this query is using cloned reporter or not by default.
|
bindLimits, closeResultSet, closeStatement, count, getDefaultSelects, getQueryType, iterate, parseParameters, releaseSavepoint, rollbackToSavepoint, setParameters
addAutoJoiner, getCountQuery, getFirstResult, getMainQuery, getMaxResults, getParameterNames, getParameters, getParameterType, getParameterValue, getPermanentSelects, getQueryParameter, getQuerySection, getSelects, group, groupPermanent, hasParameterValue, having, havingPermanent, isCounting, isDistinct, isFailSafe, isReadonly, isReturningTotalCount, join, joinPermanent, order, orderPermanent, postProcessQuery, reset, resetTemporary, restrict, restrictPermanent, select, selectPermanent, setCounting, setDistinct, setFailSafe, setFirstResult, setMaxResults, setParameter, setPermanentParameter, setReturnTotalCount, temporaryJoin, temporarySelect, toQl, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAutoJoiner, getFirstResult, getMaxResults, getParameterNames, getQueryParameter, getQuerySection, group, groupPermanent, hasParameterValue, having, havingPermanent, isCounting, isDistinct, isFailSafe, isReadonly, isReturningTotalCount, join, joinPermanent, order, orderPermanent, reset, restrict, restrictPermanent, select, selectPermanent, setDistinct, setFailSafe, setFirstResult, setMaxResults, setParameter, setPermanentParameter, setReturnTotalCount, toQl
private final DataCube cube
private final VirtualDb virtualDb
private final VirtualTable rootTable
private final IntensityTransform transform
private final boolean hasClonedReporters
private boolean useClonedReporters
DynamicQuery(DataCube cube, VirtualTable rootTable, IntensityTransform transform)
cube
- The cube to query againstrootTable
- The root table of the queryDynamicQuery(VirtualDb vdb, VirtualTable rootTable)
vdb
- The virtual database to userootTable
- The root table of the querypublic java.lang.String getRootAlias()
getRootAlias
in interface Query
Item.getAlias()
public boolean hasClonedReporters()
hasClonedReporters
in interface ClonableReporterQuery
public boolean useClonedReporters()
useClonedReporters
in interface ClonableReporterQuery
public void setUseClonedReporters(boolean useClonedReporters)
setUseClonedReporters
in interface ClonableReporterQuery
useClonedReporters
- TRUE to use cloned reporters by default, FALSE
to use the master reporterspublic VirtualDb getVirtualDb()
getVirtualDb
in interface ClonableReporterQuery
public abstract JepFunction[] getJepFunctions(DbControl dc, boolean restrictions)
JepExpressionFunction
or JepRestrictionFunction
.restrictions
- If FALSE the metod should only return functions
that can be used as Expression
:s, otherwise it should return
both expression and restriction functionsDataCube getDataCube()
VirtualTable getRootTable()
public IntensityTransform getIntensityTransform()