public class Queries extends Object
Constructor and Description |
---|
Queries() |
Modifier and Type | Method and Description |
---|---|
static String |
asIDSet(ScopeDescriptor desc) |
ResultSet |
getAvailableDimensions(java.time.LocalDateTime from,
java.time.LocalDateTime 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
|
long |
getMeasureCount(String table) |
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 long getMeasureCount(String table) throws SQLException
SQLException
public ResultSet listDimensions() throws SQLException
SQLException
public ResultSet listContexts() throws SQLException
SQLException
public PreparedStatement getMeasureInsertionPreparedStatement() throws SQLException
SQLException
public PreparedStatement getDimensionInsertionPreparedStatement() throws SQLException
SQLException
public PreparedStatement getContextInsertionPreparedStatement() throws SQLException
SQLException
public ResultSet getAvailableDimensions(java.time.LocalDateTime from, java.time.LocalDateTime to, ScopeDescriptor scope, MeasureResolution resolution) throws SQLException
from
- to
- scope
- resolution
- SQLException
public PreparedStatement prepareMeasuresByDimension(ScopeDescriptor scope, MeasureResolution resolution) throws SQLException
from
- to
- scope
- resolution
- SQLException
public static final String asIDSet(ScopeDescriptor desc)
Copyright © 2018. All Rights Reserved.