public class PostgreSQLConnector
extends org.gcube.accounting.analytics.persistence.postgresql.AccountingPersistenceQueryPostgreSQL
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
connection |
static TimeZone |
DEFAULT_TIME_ZONE |
close, getCalendar, getConnection, getContextTimeSeries, getFilterValues, getFilterValues, getNoContextTimeSeries, getNumberedValues, getRecord, getSpaceProvidersIds, getSpaceTimeSeries, getTimeSeries, getTimeSeries, getTopValues, getUsageValueQuotaTotal, isConnectionActive, prepareConnectionpublic static final TimeZone DEFAULT_TIME_ZONE
protected Connection connection
public static PostgreSQLConnector getPostgreSQLConnector() throws Exception
Exceptionprotected Connection getConnection() throws Exception
Exceptionprotected String getQuotedString(String string) throws SQLException
SQLExceptionprotected String getValue(Serializable serializable) throws SQLException
SQLExceptionpublic String getInsertAggregationStatusQuery(AggregationStatus aggregationStatus, boolean upsert) throws SQLException
SQLExceptionpublic String getInsertAggregationStateQuery(AggregationStatus aggregationStatus) throws SQLException
SQLExceptionpublic void upsertAggregationStatus(AggregationStatus aggregationStatus) throws Exception
Exceptionpublic AggregationStatus getAggregationStatusFromResultSet(ResultSet resultSet) throws Exception
Exceptionpublic AggregationStatus getLast(String recordType, AggregationType aggregationType, Date aggregationStartDate, Date aggregationEndDate) throws Exception
Exceptionpublic List<AggregationStatus> getUnterminated(String recordType, AggregationType aggregationType, Date aggregationStartDate, Date aggregationEndDate, boolean forceRestart) throws Exception
Exceptionpublic List<AggregationStatus> getAll() throws Exception
Exceptionpublic AggregationStatus getAggregationStatus(String recordType, AggregationType aggregationType, Date aggregationStartDate) throws Exception
Exceptionpublic void deleteRecord(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
throws Exception
Exceptionpublic ResultSet getResultSetOfRecordToBeAggregated(AggregationStatus aggregationStatus) throws Exception
ExceptionCopyright © 2022. All Rights Reserved.