public class DBUtils extends Object
| Constructor and Description |
|---|
DBUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Table |
createTable(Connection conn,
org.gcube.data.publishing.gis.publisher.plugin.fwk.model.GeometryPoint point) |
static Connection |
getConnection(String endpoint,
String user,
String password) |
static int |
insertPoint(Table theTable,
PreparedStatement ps,
org.gcube.data.publishing.gis.publisher.plugin.fwk.model.GeometryPoint point) |
static PreparedStatement |
prepareStatementForInsert(Connection conn,
Table theTable,
org.gcube.data.publishing.gis.publisher.plugin.fwk.model.GeometryPoint point) |
public static Connection getConnection(String endpoint, String user, String password) throws SQLException, ClassNotFoundException
SQLExceptionClassNotFoundExceptionpublic static PreparedStatement prepareStatementForInsert(Connection conn, Table theTable, org.gcube.data.publishing.gis.publisher.plugin.fwk.model.GeometryPoint point) throws SQLException
SQLExceptionpublic static Table createTable(Connection conn, org.gcube.data.publishing.gis.publisher.plugin.fwk.model.GeometryPoint point) throws SQLException
SQLExceptionpublic static int insertPoint(Table theTable, PreparedStatement ps, org.gcube.data.publishing.gis.publisher.plugin.fwk.model.GeometryPoint point) throws SQLException
SQLExceptionCopyright © 2015. All Rights Reserved.