2015-07-08 16:42:43 +02:00
|
|
|
package org.gcube.accounting.analytics.persistence;
|
|
|
|
|
2015-07-08 17:28:33 +02:00
|
|
|
import java.net.URI;
|
|
|
|
|
2015-07-08 16:42:43 +02:00
|
|
|
import org.gcube.accounting.persistence.AccountingPersistenceConfiguration;
|
2015-07-14 18:45:48 +02:00
|
|
|
import org.gcube.common.resources.gcore.ServiceEndpoint;
|
2015-07-08 16:42:43 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class AccountingPersistenceQueryConfiguration extends AccountingPersistenceConfiguration {
|
|
|
|
|
2015-07-08 17:28:33 +02:00
|
|
|
public AccountingPersistenceQueryConfiguration(){
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
public AccountingPersistenceQueryConfiguration(URI uri, String username, String password){
|
|
|
|
super(uri, username, password);
|
|
|
|
}
|
2015-07-08 16:42:43 +02:00
|
|
|
|
2015-07-08 17:28:33 +02:00
|
|
|
public AccountingPersistenceQueryConfiguration(String persistenceClassName) throws Exception{
|
2015-07-14 18:45:48 +02:00
|
|
|
super.init();
|
|
|
|
ServiceEndpoint serviceEndpoint = getServiceEndpoint(SERVICE_ENDPOINT_CATEGORY, SERVICE_ENDPOINT_NAME, persistenceClassName);
|
|
|
|
setValues(serviceEndpoint, persistenceClassName);
|
2015-07-08 17:28:33 +02:00
|
|
|
}
|
2015-07-08 16:42:43 +02:00
|
|
|
}
|