public class PostgisDBManager extends Object implements PostgisDBManagerI
| 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) |
BBOX |
evaluateBoundingBox(PostgisTable table) |
PostgisTable.POINT |
evaluateCentroid(PostgisTable table) |
static PostgisDBManager |
get() |
static PostgisDBManagerI |
get(boolean autocommit) |
static void |
init(DatabaseConnection config) |
PreparedStatement |
prepareInsertStatement(PostgisTable target,
boolean createTable,
boolean geometryAsText) |
ResultSet |
queryAll(PostgisTable table) |
void |
truncate(String tableName) |
public static PostgisDBManager get() throws SQLException, ConfigurationException
SQLExceptionConfigurationExceptionpublic static PostgisDBManagerI get(boolean autocommit) throws SQLException, ConfigurationException
SQLExceptionConfigurationExceptionpublic static void init(DatabaseConnection config) throws SQLException, IOException
SQLExceptionIOExceptionpublic void create(PostgisTable toCreate) throws SQLException
create in interface PostgisDBManagerISQLExceptionpublic void commit()
throws SQLException
commit in interface PostgisDBManagerISQLExceptionpublic BBOX evaluateBoundingBox(PostgisTable table) throws SQLException, DataParsingException
evaluateBoundingBox in interface PostgisDBManagerISQLExceptionDataParsingExceptionpublic 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 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 © 2020. All Rights Reserved.