39 lines
1.0 KiB
Java
39 lines
1.0 KiB
Java
package org.gcube.application.cms.sdi.engine;
|
|
|
|
import org.gcube.application.cms.sdi.faults.DataParsingException;
|
|
import org.gcube.application.geoportal.common.model.rest.DatabaseConnection;
|
|
|
|
|
|
|
|
import java.sql.PreparedStatement;
|
|
import java.sql.ResultSet;
|
|
import java.sql.SQLException;
|
|
|
|
public interface PostgisDBManagerI {
|
|
|
|
void commit() throws SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
void create(PostgisTable toCreate) throws SQLException;
|
|
PreparedStatement prepareInsertStatement(PostgisTable target, boolean createTable, boolean geometryAsText)
|
|
throws SQLException;
|
|
void deleteTable(String tableName) throws SQLException;
|
|
void truncate(String tableName) throws SQLException;
|
|
int deleteByFieldValue(PostgisTable target, PostgisTable.Field field, Object value) throws SQLException;
|
|
|
|
|
|
|
|
|
|
// DatabaseConnection getConnectionDescriptor();
|
|
|
|
// PostgisTable.POINT evaluateCentroid(PostgisTable table) throws SQLException, DataParsingException;
|
|
|
|
|
|
// ResultSet queryAll(PostgisTable table) throws SQLException;
|
|
|
|
|
|
}
|