public class PostgisDBManager extends Object implements PostgisDBManagerI
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PostgisDBManager.DBUtils |
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
void |
create(PostgisTable toCreate) |
int |
deleteByFieldValue(PostgisTable target,
PostgisTable.Field field,
Object value) |
void |
deleteTable(String tableName) |
PostgisTable.POINT |
evaluateCentroid(PostgisTable table) |
static PostgisDBManagerI |
get() |
org.gcube.application.geoportal.common.model.rest.DatabaseConnection |
getConnectionDescriptor() |
PreparedStatement |
prepareInsertStatement(PostgisTable target,
boolean createTable,
boolean geometryAsText) |
ResultSet |
queryAll(PostgisTable table) |
void |
truncate(String tableName) |
public static PostgisDBManagerI get() throws SQLException, ConfigurationException
SQLExceptionConfigurationExceptionpublic void create(PostgisTable toCreate) throws SQLException
create in interface PostgisDBManagerISQLExceptionpublic void commit()
throws SQLException
commit in interface PostgisDBManagerISQLExceptionpublic PostgisTable.POINT evaluateCentroid(PostgisTable table) throws SQLException, DataParsingException
evaluateCentroid in interface PostgisDBManagerISQLExceptionDataParsingExceptionpublic PreparedStatement prepareInsertStatement(PostgisTable target, boolean createTable, boolean geometryAsText) throws SQLException
prepareInsertStatement in interface PostgisDBManagerISQLExceptionpublic int deleteByFieldValue(PostgisTable target, PostgisTable.Field field, Object value) throws SQLException
deleteByFieldValue in interface PostgisDBManagerISQLExceptionpublic org.gcube.application.geoportal.common.model.rest.DatabaseConnection getConnectionDescriptor()
getConnectionDescriptor in interface PostgisDBManagerIpublic void deleteTable(String tableName) throws SQLException
deleteTable in interface PostgisDBManagerISQLExceptionpublic void truncate(String tableName) throws SQLException
truncate in interface PostgisDBManagerISQLExceptionpublic ResultSet queryAll(PostgisTable table) throws SQLException
queryAll in interface PostgisDBManagerISQLExceptionCopyright © 2022. All Rights Reserved.