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
|
||||
|
||||
## [v1.0.15-SNAPSHOT] - 2021-07-29
|
||||
Exposed PostgisDB connection descriptor
|
||||
|
||||
## [v1.0.14] - 2020-12-11
|
||||
Fixes "no transaction" issue
|
||||
|
||||
|
|
15
pom.xml
15
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.gcube.application</groupId>
|
||||
<artifactId>geoportal-logic</artifactId>
|
||||
<version>1.0.14</version>
|
||||
<version>1.0.14-SNAPSHOT</version>
|
||||
<name>Geoportal Logic</name>
|
||||
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
|||
<dependency>
|
||||
<groupId>org.gcube.distribution</groupId>
|
||||
<artifactId>gcube-bom</artifactId>
|
||||
<version>2.0.0</version>
|
||||
<version>2.0.1</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
@ -45,12 +45,7 @@
|
|||
|
||||
<dependencies>
|
||||
|
||||
<!-- REMOVE FROM GCUBE 5 -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.core</groupId>
|
||||
<artifactId>common-gcube-calls</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-csv</artifactId>
|
||||
|
@ -123,13 +118,13 @@
|
|||
<dependency>
|
||||
<groupId>org.gcube.spatial.data</groupId>
|
||||
<artifactId>gis-interface</artifactId>
|
||||
<version>[2.4.6-SNAPSHOT,3.0.0)</version>
|
||||
<version>[2.4.6,3.0.0)</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.gcube.spatial.data</groupId>
|
||||
<artifactId>geonetwork</artifactId>
|
||||
<version>[3.4.5-SNAPSHOT,4.0.0)</version>
|
||||
<version>[3.4.5,4.0.0)</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
|
|
@ -131,9 +131,14 @@ public class PostgisDBManager implements PostgisDBManagerI {
|
|||
target.setObjectInPreparedStatement(field, value, stmt, 1);
|
||||
return stmt.executeUpdate();
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
||||
@Override
|
||||
public DatabaseConnection getConnectionDescriptor() {
|
||||
return config;
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.gcube.application.geoportal.PostgisDBManagerI#deleteTable(java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
|
|
|
@ -4,6 +4,7 @@ import java.sql.PreparedStatement;
|
|||
import java.sql.ResultSet;
|
||||
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.Field;
|
||||
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;
|
||||
|
||||
|
||||
DatabaseConnection getConnectionDescriptor();
|
||||
}
|
|
@ -4,6 +4,7 @@ import java.sql.PreparedStatement;
|
|||
import java.sql.ResultSet;
|
||||
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.Field;
|
||||
import org.gcube.application.geoportal.model.db.PostgisTable.POINT;
|
||||
|
@ -25,7 +26,12 @@ public class PostgisMockup implements PostgisDBManagerI {
|
|||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public DatabaseConnection getConnectionDescriptor() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteTable(String tableName) throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
|
|
Loading…
Reference in New Issue