Class AccountingDaoImpl
- java.lang.Object
-
- org.gcube.accounting.accounting.summary.access.impl.AccountingDaoImpl
-
- All Implemented Interfaces:
AccountingDao
public class AccountingDaoImpl extends Object implements AccountingDao
-
-
Constructor Summary
Constructors Constructor Description AccountingDaoImpl()AccountingDaoImpl(ContextTreeProvider treeProvider, ConnectionManager connectionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ScopeDescriptor>getContexts()Set<Dimension>getDimensions()ReportgetReportByScope(ScopeDescriptor desc, Instant from, Instant to, MeasureResolution resolution)ScopeDescriptorgetTree(Object request)UpdateReportinsertRecords(AccountingRecord... toInsert)voidsetTreeProvider(ContextTreeProvider treeProvider)
-
-
-
Constructor Detail
-
AccountingDaoImpl
public AccountingDaoImpl()
-
AccountingDaoImpl
public AccountingDaoImpl(ContextTreeProvider treeProvider, ConnectionManager connectionManager)
-
-
Method Detail
-
setTreeProvider
public void setTreeProvider(ContextTreeProvider treeProvider)
-
getReportByScope
public Report getReportByScope(ScopeDescriptor desc, Instant from, Instant to, MeasureResolution resolution) throws SQLException, ParameterException
- Specified by:
getReportByScopein interfaceAccountingDao- Throws:
SQLExceptionParameterException
-
getTree
public ScopeDescriptor getTree(Object request) throws Exception
- Specified by:
getTreein interfaceAccountingDao- Throws:
Exception
-
getDimensions
public Set<Dimension> getDimensions() throws SQLException
- Specified by:
getDimensionsin interfaceAccountingDao- Throws:
SQLException
-
getContexts
public Set<ScopeDescriptor> getContexts() throws SQLException
- Specified by:
getContextsin interfaceAccountingDao- Throws:
SQLException
-
insertRecords
public UpdateReport insertRecords(AccountingRecord... toInsert) throws SQLException
- Specified by:
insertRecordsin interfaceAccountingDao- Throws:
SQLException
-
-