PostgisDBManager now exposes connection descriptor
This commit is contained in:
parent
108a61730a
commit
653535562d
|
@ -2,6 +2,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
||||||
|
|
||||||
# Changelog for org.gcube.application.geoportal-logic
|
# Changelog for org.gcube.application.geoportal-logic
|
||||||
|
|
||||||
|
## [v1.0.15-SNAPSHOT] - 2021-07-29
|
||||||
|
Exposed PostgisDB connection descriptor
|
||||||
|
|
||||||
## [v1.0.14] - 2020-12-11
|
## [v1.0.14] - 2020-12-11
|
||||||
Fixes "no transaction" issue
|
Fixes "no transaction" issue
|
||||||
|
|
||||||
|
|
13
pom.xml
13
pom.xml
|
@ -4,7 +4,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.gcube.application</groupId>
|
<groupId>org.gcube.application</groupId>
|
||||||
<artifactId>geoportal-logic</artifactId>
|
<artifactId>geoportal-logic</artifactId>
|
||||||
<version>1.0.14</version>
|
<version>1.0.14-SNAPSHOT</version>
|
||||||
<name>Geoportal Logic</name>
|
<name>Geoportal Logic</name>
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.distribution</groupId>
|
<groupId>org.gcube.distribution</groupId>
|
||||||
<artifactId>gcube-bom</artifactId>
|
<artifactId>gcube-bom</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.1</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -45,11 +45,6 @@
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<!-- REMOVE FROM GCUBE 5 -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.gcube.core</groupId>
|
|
||||||
<artifactId>common-gcube-calls</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.commons</groupId>
|
<groupId>org.apache.commons</groupId>
|
||||||
|
@ -123,13 +118,13 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.spatial.data</groupId>
|
<groupId>org.gcube.spatial.data</groupId>
|
||||||
<artifactId>gis-interface</artifactId>
|
<artifactId>gis-interface</artifactId>
|
||||||
<version>[2.4.6-SNAPSHOT,3.0.0)</version>
|
<version>[2.4.6,3.0.0)</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.spatial.data</groupId>
|
<groupId>org.gcube.spatial.data</groupId>
|
||||||
<artifactId>geonetwork</artifactId>
|
<artifactId>geonetwork</artifactId>
|
||||||
<version>[3.4.5-SNAPSHOT,4.0.0)</version>
|
<version>[3.4.5,4.0.0)</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -132,8 +132,13 @@ public class PostgisDBManager implements PostgisDBManagerI {
|
||||||
return stmt.executeUpdate();
|
return stmt.executeUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DatabaseConnection getConnectionDescriptor() {
|
||||||
|
return config;
|
||||||
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
|
/* (non-Javadoc)
|
||||||
* @see org.gcube.application.geoportal.PostgisDBManagerI#deleteTable(java.lang.String)
|
* @see org.gcube.application.geoportal.PostgisDBManagerI#deleteTable(java.lang.String)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -4,6 +4,7 @@ import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
|
import org.gcube.application.geoportal.model.db.DatabaseConnection;
|
||||||
import org.gcube.application.geoportal.model.db.PostgisTable;
|
import org.gcube.application.geoportal.model.db.PostgisTable;
|
||||||
import org.gcube.application.geoportal.model.db.PostgisTable.Field;
|
import org.gcube.application.geoportal.model.db.PostgisTable.Field;
|
||||||
import org.gcube.application.geoportal.model.db.PostgisTable.POINT;
|
import org.gcube.application.geoportal.model.db.PostgisTable.POINT;
|
||||||
|
@ -37,5 +38,5 @@ public interface PostgisDBManagerI {
|
||||||
|
|
||||||
int deleteByFieldValue(PostgisTable target, Field field, Object value) throws SQLException;
|
int deleteByFieldValue(PostgisTable target, Field field, Object value) throws SQLException;
|
||||||
|
|
||||||
|
DatabaseConnection getConnectionDescriptor();
|
||||||
}
|
}
|
|
@ -4,6 +4,7 @@ import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
|
import org.gcube.application.geoportal.model.db.DatabaseConnection;
|
||||||
import org.gcube.application.geoportal.model.db.PostgisTable;
|
import org.gcube.application.geoportal.model.db.PostgisTable;
|
||||||
import org.gcube.application.geoportal.model.db.PostgisTable.Field;
|
import org.gcube.application.geoportal.model.db.PostgisTable.Field;
|
||||||
import org.gcube.application.geoportal.model.db.PostgisTable.POINT;
|
import org.gcube.application.geoportal.model.db.PostgisTable.POINT;
|
||||||
|
@ -26,6 +27,11 @@ public class PostgisMockup implements PostgisDBManagerI {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DatabaseConnection getConnectionDescriptor() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void deleteTable(String tableName) throws SQLException {
|
public void deleteTable(String tableName) throws SQLException {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
Loading…
Reference in New Issue