Class PostgisTable
- java.lang.Object
-
- org.gcube.application.geoportal.service.model.internal.db.PostgisTable
-
public class PostgisTable extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPostgisTable.Fieldstatic classPostgisTable.FieldTypestatic classPostgisTable.GeometryTypestatic classPostgisTable.POINT
-
Constructor Summary
Constructors Constructor Description PostgisTable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillCSVPreparedStatament(Map<String,String> row, PreparedStatement toFill, boolean explicitGeometry)voidfillObjectsPreparedStatement(Map<String,Object> row, PreparedStatement toFill)StringgetCreateStatement()StringgetDeleteByFieldStatement(PostgisTable.Field field)StringgetGeometryColumn()StringgetInsertionStatement(boolean geometryText)static StringsanitizeFieldName(String fieldName)voidsetObjectInPreparedStatement(PostgisTable.Field field, Object value, PreparedStatement toFill, int psFieldIndex)voidsetTablename(String tablename)
-
-
-
Method Detail
-
getGeometryColumn
public String getGeometryColumn()
-
setTablename
public void setTablename(String tablename)
-
getCreateStatement
public String getCreateStatement()
-
getDeleteByFieldStatement
public String getDeleteByFieldStatement(PostgisTable.Field field)
-
getInsertionStatement
public String getInsertionStatement(boolean geometryText)
-
fillObjectsPreparedStatement
public void fillObjectsPreparedStatement(Map<String,Object> row, PreparedStatement toFill) throws SQLException
- Throws:
SQLException
-
setObjectInPreparedStatement
public void setObjectInPreparedStatement(PostgisTable.Field field, Object value, PreparedStatement toFill, int psFieldIndex) throws SQLException
- Throws:
SQLException
-
fillCSVPreparedStatament
public void fillCSVPreparedStatament(Map<String,String> row, PreparedStatement toFill, boolean explicitGeometry) throws SQLException
- Throws:
SQLException
-
-