package org.gcube.portlets.admin.accountingmanager.server.amservice.query; import java.text.SimpleDateFormat; import org.gcube.portlets.admin.accountingmanager.shared.exception.ServiceException; /** * Abstract class for build Accounting Query * * @author Giancarlo Panichi * email: g.panichi@isti.cnr.it * */ public abstract class AccountingQueryBuilder { protected AccountingQuerySpec accountingQuerySpec; protected SimpleDateFormat sdf = new SimpleDateFormat("yyyy MMMMM dd"); public AccountingQuerySpec getAccountingQuerySpec(){ return accountingQuerySpec; } public void createSpec(){ accountingQuerySpec=new AccountingQuerySpec(); } public abstract void buildOpEx() throws ServiceException; }