public class Queries extends Object
| Constructor and Description |
|---|
Queries() |
| Modifier and Type | Method and Description |
|---|---|
static String |
asIDSet(ScopeDescriptor desc) |
ResultSet |
getAvailableDimensions(Date from,
Date to,
ScopeDescriptor scope,
MeasureResolution resolution)
Returns Dimensions.* fields
|
PreparedStatement |
getContextInsertionPreparedStatement()
Returned parameters order is
ID,LABEL
|
PreparedStatement |
getDimensionInsertionPreparedStatement()
Returned parameters order is
ID,LABEL,GROUP,AGGREGATED_MEASURE
|
PreparedStatement |
getMeasureInsertionPreparedStatement()
Returned parameters order is
Context, Dimension, Time, Measure, Measure
NB : Measure is replicated in order to manage update on conflict
|
ResultSet |
listContexts() |
ResultSet |
listDimensions() |
PreparedStatement |
prepareMeasuresByDimension(ScopeDescriptor scope,
MeasureResolution resolution)
Prepares a statement for Getting Dim=? in time interval for the scope set
PS params :
1- long from
2- long to
3- String dimension
|
public ResultSet listDimensions() throws SQLException
SQLExceptionpublic ResultSet listContexts() throws SQLException
SQLExceptionpublic PreparedStatement getMeasureInsertionPreparedStatement() throws SQLException
SQLExceptionpublic PreparedStatement getDimensionInsertionPreparedStatement() throws SQLException
SQLExceptionpublic PreparedStatement getContextInsertionPreparedStatement() throws SQLException
SQLExceptionpublic ResultSet getAvailableDimensions(Date from, Date to, ScopeDescriptor scope, MeasureResolution resolution) throws SQLException
from - to - scope - resolution - SQLExceptionpublic PreparedStatement prepareMeasuresByDimension(ScopeDescriptor scope, MeasureResolution resolution) throws SQLException
from - to - scope - resolution - SQLExceptionpublic static final String asIDSet(ScopeDescriptor desc)
Copyright © 2018. All Rights Reserved.