git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-access/DatabasesResourcesManager@96616 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e5c13f4050
commit
b4ebf6e789
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.access;
|
||||
package org.gcube.dataaccess.databases.access;
|
||||
|
||||
import static org.gcube.resources.discovery.icclient.ICFactory.clientFor;
|
||||
import static org.gcube.resources.discovery.icclient.ICFactory.queryFor;
|
||||
|
@ -6,7 +6,7 @@ import static org.gcube.resources.discovery.icclient.ICFactory.queryFor;
|
|||
import java.util.List;
|
||||
|
||||
import org.gcube.common.resources.gcore.ServiceEndpoint;
|
||||
import org.gcube.dataanalysis.databases.resources.DBResource;
|
||||
import org.gcube.dataaccess.databases.resources.DBResource;
|
||||
import org.gcube.resources.discovery.client.api.DiscoveryClient;
|
||||
import org.gcube.resources.discovery.client.api.DiscoveryException;
|
||||
import org.gcube.resources.discovery.client.api.InvalidResultException;
|
|
@ -1,8 +1,8 @@
|
|||
package org.gcube.dataanalysis.databases.access;
|
||||
package org.gcube.dataaccess.databases.access;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.dataanalysis.databases.resources.DBResource;
|
||||
import org.gcube.dataaccess.databases.resources.DBResource;
|
||||
|
||||
/** Class that allows to discover generic resources submitting a query to the IS.
|
||||
* It retrieves a list of DBResource objects. */
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.accessold;
|
||||
package org.gcube.dataaccess.databases.accessold;
|
||||
|
||||
import static org.gcube.resources.discovery.icclient.ICFactory.clientFor;
|
||||
import static org.gcube.resources.discovery.icclient.ICFactory.queryFor;
|
||||
|
@ -8,7 +8,7 @@ import java.util.List;
|
|||
|
||||
import org.gcube.common.resources.gcore.ServiceEndpoint;
|
||||
import org.gcube.common.scope.api.ScopeProvider;
|
||||
import org.gcube.dataanalysis.databases.resources.DBResource;
|
||||
import org.gcube.dataaccess.databases.resources.DBResource;
|
||||
import org.gcube.resources.discovery.client.api.DiscoveryClient;
|
||||
import org.gcube.resources.discovery.client.queries.impl.XQuery;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.accessold;
|
||||
package org.gcube.dataaccess.databases.accessold;
|
||||
|
||||
import static org.gcube.resources.discovery.icclient.ICFactory.clientFor;
|
||||
import static org.gcube.resources.discovery.icclient.ICFactory.queryFor;
|
||||
|
@ -7,7 +7,7 @@ import java.util.List;
|
|||
|
||||
import org.gcube.common.resources.gcore.ServiceEndpoint;
|
||||
import org.gcube.common.scope.api.ScopeProvider;
|
||||
import org.gcube.dataanalysis.databases.resources.DBResource;
|
||||
import org.gcube.dataaccess.databases.resources.DBResource;
|
||||
import org.gcube.resources.discovery.client.api.DiscoveryClient;
|
||||
import org.gcube.resources.discovery.client.queries.impl.XQuery;
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
package org.gcube.dataanalysis.databases.accessold;
|
||||
package org.gcube.dataaccess.databases.accessold;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.dataanalysis.databases.resources.DBResource;
|
||||
import org.gcube.dataaccess.databases.resources.DBResource;
|
||||
|
||||
/** Class that allows to discover generic resources submitting a query to the IS and given a certain scope.
|
||||
* It retrieves a list of DBResource objects. */
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.converter;
|
||||
package org.gcube.dataaccess.databases.converter;
|
||||
|
||||
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.lexer;
|
||||
package org.gcube.dataaccess.databases.lexer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.lexer;
|
||||
package org.gcube.dataaccess.databases.lexer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.lexer;
|
||||
package org.gcube.dataaccess.databases.lexer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.resources;
|
||||
package org.gcube.dataaccess.databases.resources;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
@ -14,7 +14,7 @@ import javax.xml.bind.annotation.XmlValue;
|
|||
|
||||
import org.gcube.common.encryption.StringEncrypter;
|
||||
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
|
||||
import org.gcube.dataanalysis.databases.resources.processing.Normalizer;
|
||||
import org.gcube.dataaccess.databases.resources.processing.Normalizer;
|
||||
|
||||
/** Class that describes a resource database considering information specified from the user in a xml file.
|
||||
* Information are retrieved from the xml file Through the JAXB and the relative object is initialized */
|
|
@ -1,7 +1,7 @@
|
|||
package org.gcube.dataanalysis.databases.resources.processing;
|
||||
package org.gcube.dataaccess.databases.resources.processing;
|
||||
|
||||
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
|
||||
import org.gcube.dataanalysis.databases.resources.DBResource;
|
||||
import org.gcube.dataaccess.databases.resources.DBResource;
|
||||
|
||||
/**
|
||||
* Class that, taking the url as input, performs a parsing process of the field
|
|
@ -1,7 +1,7 @@
|
|||
package org.gcube.dataanalysis.databases.resources.processing;
|
||||
package org.gcube.dataaccess.databases.resources.processing;
|
||||
|
||||
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
|
||||
import org.gcube.dataanalysis.databases.resources.DBResource;
|
||||
import org.gcube.dataaccess.databases.resources.DBResource;
|
||||
|
||||
/**
|
||||
* Class that uses as inputs the available information (platform, driver and
|
|
@ -1,12 +1,12 @@
|
|||
package org.gcube.dataanalysis.databases.resources.processing;
|
||||
package org.gcube.dataaccess.databases.resources.processing;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
|
||||
import org.gcube.dataanalysis.databases.resources.DBResource;
|
||||
import org.gcube.dataanalysis.databases.resources.processing.Normalizer;
|
||||
import org.gcube.dataanalysis.databases.resources.processing.Guesser;
|
||||
import org.gcube.dataaccess.databases.resources.DBResource;
|
||||
import org.gcube.dataaccess.databases.resources.processing.Guesser;
|
||||
import org.gcube.dataaccess.databases.resources.processing.Normalizer;
|
||||
|
||||
|
||||
/** Class that performs the normalization process using the available information specified from the user */
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.sampler;
|
||||
package org.gcube.dataaccess.databases.sampler;
|
||||
|
||||
/**
|
||||
* Class that allows to describe
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.sampler;
|
||||
package org.gcube.dataaccess.databases.sampler;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
@ -7,7 +7,7 @@ import java.util.LinkedHashMap;
|
|||
import java.util.Random;
|
||||
|
||||
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
|
||||
import org.gcube.dataanalysis.databases.utils.ConnectionManager;
|
||||
import org.gcube.dataaccess.databases.utils.ConnectionManager;
|
||||
import org.hibernate.SessionFactory;
|
||||
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.structure;
|
||||
package org.gcube.dataaccess.databases.structure;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
|
@ -1,8 +1,8 @@
|
|||
package org.gcube.dataanalysis.databases.structure;
|
||||
package org.gcube.dataaccess.databases.structure;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.dataanalysis.databases.utils.ConnectionManager;
|
||||
import org.gcube.dataaccess.databases.utils.ConnectionManager;
|
||||
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
|
||||
import org.hibernate.SessionFactory;
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
package org.gcube.dataanalysis.databases.structure;
|
||||
package org.gcube.dataaccess.databases.structure;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.gcube.dataanalysis.databases.utils.DatabaseFactory;
|
||||
import org.gcube.dataaccess.databases.utils.DatabaseFactory;
|
||||
|
||||
/** Class that allows to manage the Postgres database. */
|
||||
public class PostgresTableStructure extends AbstractTableStructure {
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.utils;
|
||||
package org.gcube.dataaccess.databases.utils;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
//import java.util.List;
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.utils;
|
||||
package org.gcube.dataaccess.databases.utils;
|
||||
|
||||
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
|
||||
import org.gcube.contentmanagement.lexicalmatcher.utils.FileTools;
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.utils;
|
||||
package org.gcube.dataaccess.databases.utils;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.util.List;
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.utils;
|
||||
package org.gcube.dataaccess.databases.utils;
|
||||
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
|
@ -11,11 +11,11 @@ import java.util.LinkedHashMap;
|
|||
import java.util.List;
|
||||
|
||||
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
|
||||
import org.gcube.dataanalysis.databases.converter.SqlDialectConverter;
|
||||
import org.gcube.dataanalysis.databases.sampler.Sampler;
|
||||
import org.gcube.dataanalysis.databases.structure.AbstractTableStructure;
|
||||
import org.gcube.dataanalysis.databases.structure.MySQLTableStructure;
|
||||
import org.gcube.dataanalysis.databases.structure.PostgresTableStructure;
|
||||
import org.gcube.dataaccess.databases.converter.SqlDialectConverter;
|
||||
import org.gcube.dataaccess.databases.sampler.Sampler;
|
||||
import org.gcube.dataaccess.databases.structure.AbstractTableStructure;
|
||||
import org.gcube.dataaccess.databases.structure.MySQLTableStructure;
|
||||
import org.gcube.dataaccess.databases.structure.PostgresTableStructure;
|
||||
import org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration;
|
||||
import org.hibernate.SessionFactory;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.dataanalysis.databases.utils;
|
||||
package org.gcube.dataaccess.databases.utils;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
|
@ -1,3 +1,4 @@
|
|||
package org.gcube.dataaccess.databases.utilsold;
|
||||
//package org.gcube.dataanalysis.databases.utilsold;
|
||||
//
|
||||
////import java.awt.List;
|
|
@ -1,3 +1,4 @@
|
|||
package org.gcube.dataaccess.databases.utilsold;
|
||||
//package org.gcube.dataanalysis.databases.utilsold;
|
||||
//
|
||||
//import java.io.ByteArrayInputStream;
|
|
@ -1,3 +1,4 @@
|
|||
package org.gcube.dataaccess.databases.utilsold;
|
||||
//package org.gcube.dataanalysis.databases.utilsold;
|
||||
//
|
||||
//import java.math.BigInteger;
|
|
@ -1,3 +1,4 @@
|
|||
package org.gcube.dataaccess.databases.utilsold;
|
||||
//package org.gcube.dataanalysis.databases.utilsold;
|
||||
//
|
||||
//import java.io.File;
|
|
@ -5,7 +5,7 @@ import java.util.List;
|
|||
import java.util.Scanner;
|
||||
|
||||
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
|
||||
import org.gcube.dataanalysis.databases.utils.DatabaseManagement;
|
||||
import org.gcube.dataaccess.databases.utils.DatabaseManagement;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ package org.gcube.dataanalysis.test;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.dataanalysis.databases.accessold.AddressesDiscoverer;
|
||||
import org.gcube.dataaccess.databases.accessold.AddressesDiscoverer;
|
||||
|
||||
|
||||
public class TestRetrieveEndpoint {
|
||||
|
|
Loading…
Reference in New Issue