Class DynamicRawDataQuery

All Implemented Interfaces:
Query, SqlQuery

public class DynamicRawDataQuery extends AbstractSqlQuery
Represents a query for raw data in a "dynamic" way. The main difference from a client applications point of view, is that it is possible to specify which columns that should be selected. In a techinical point of view the difference is that we are using SQL instead of HQl.

This type of query is needed to bridge the gap between the dynamic and regular parts of the database. For example, a query of this type can be used by a batcher to insert the original intensities in a raw bioassayset.

Version:
2.0
Author:
Nicklas
See Also:
Last modified
$Date: 2017-12-08 14:18:12 +0100 (fr, 08 dec 2017) $
  • Field Details

  • Constructor Details

    • DynamicRawDataQuery

      DynamicRawDataQuery(RawBioAssay rawBioAssay)
      Create a new dynamic query for raw data. NOTE! This constructor doesn't add any restriction to the query. This must be done by the caller.
      Parameters:
      rawBioAssay - The raw bioassay to query on
    • DynamicRawDataQuery

      DynamicRawDataQuery(RawDataType rawDataType)
      Create a new dynamic query for raw data.
      Parameters:
      rawDataType - The raw data type
      Since:
      3.1
  • Method Details

    • getQuery

      public static DynamicRawDataQuery getQuery(RawBioAssay raw)
      Create a new dynamic query for raw data.
      Parameters:
      raw - The raw bioassay to query on
      Since:
      3.9
    • getQuery

      public static DynamicRawDataQuery getQuery(Collection<RawBioAssay> raw)
      Create a new dynamic query for raw data.
      Parameters:
      raw - The raw bioassays to query on which must all be of the same raw data type
      Since:
      3.9
    • getRootAlias

      public String getRootAlias()
      The alias of the item that is returned by this query.
      See Also:
    • isReadonly

      public boolean isReadonly()
      Description copied from interface: Query
      If this query is readonly and cannot be structurally modified. Ie. no more query elements can be added. It is still possible to set parameter values. A call to Query.reset() would unlock the query and allow it to be modified again.
      Specified by:
      isReadonly in interface Query
      Overrides:
      isReadonly in class AbstractQuery
      Returns:
      TRUE if the query is readonly, FALSE otherwise
    • getDefaultSelects

      Select[] getDefaultSelects()
      No default selection.
      Specified by:
      getDefaultSelects in class AbstractSqlQuery
    • getJepFunctions

      public JepFunction[] getJepFunctions(DbControl dc, boolean restrictions)
      Description copied from class: AbstractSqlQuery
      Create custom JEP function that can be used with the current query. The actual function need to implement either JepExpressionFunction or JepRestrictionFunction.
      Specified by:
      getJepFunctions in class AbstractSqlQuery
      restrictions - If FALSE the metod should only return functions that can be used as Expression:s, otherwise it should return both expression and restriction functions
    • getRawDataType

      public RawDataType getRawDataType()
    • getRootTable

      RealTable getRootTable()
    • getRawBioAssay

      public RawBioAssay getRawBioAssay()
    • setAutoJoinType

      public void setAutoJoinType(JoinType joinType)
      Specify the join type of automatic joins. The default join type is JoinType.LEFT. This setting doesn't affect joins that has been made directly to the query.
      Parameters:
      joinType - The type of the automatic joins
      Since:
      3.9
    • joinReporters

      public void joinReporters(JoinType joinType)
      Join information about reporters in the query.
      Parameters:
      joinType - The type of join. Can not be null.
      Throws:
      InvalidDataException - If joinType parameter is null.
      Since:
      3.1
      See Also:
    • joinReporterList

      public void joinReporterList(ReporterList reporterList, JoinType joinType)
      Makes a join with a ReporterList
      Parameters:
      reporterList - To do the join on.
      joinType - The join type to use.
      Since:
      3.9
      See Also:
    • joinRawBioAssay

      public void joinRawBioAssay(JoinType joinType)
      Join information about raw bioassays in the query.
      Parameters:
      joinType - The type of join. Can not be null.
      Throws:
      InvalidDataException - If joinType parameter is null.
      Since:
      3.9