Class PlanmonitorWonenDatabaseService
java.lang.Object
nl.b3p.planmonitorwonen.api.PlanmonitorWonenDatabaseService
-
Constructor Summary
ConstructorsConstructorDescriptionPlanmonitorWonenDatabaseService(org.springframework.jdbc.core.simple.JdbcClient jdbcClient) -
Method Summary
Modifier and TypeMethodDescriptionDeletes a planregistratie including the aantallen.geometryIntersectsGemeente(String gemeente, String wkt) Returns whether the geometry intersects the geometry of the gemeente, or empty for an unknown gemeente.Returns the values of the enum types of the planmonitor wonen schema.Returns a planregistratie with its aantallen.getPlanregistratiesForGemeentes(Collection<String> gemeentes, boolean withAantallen) getPlanregistratiesForProvincie(boolean withAantallen) Returns all planregistraties, with the aantallen if requested.getProvincieForGemeente(String gemeente) voidinsertPlanregistratie(Planregistratie planregistratie, String username) Inserts a planregistratie or replaces an existing one, including the aantallen.
-
Constructor Details
-
PlanmonitorWonenDatabaseService
public PlanmonitorWonenDatabaseService(org.springframework.jdbc.core.simple.JdbcClient jdbcClient)
-
-
Method Details
-
getPlanregistratiesForProvincie
@Transactional(readOnly=true, isolation=REPEATABLE_READ) public List<Planregistratie> getPlanregistratiesForProvincie(boolean withAantallen) Returns all planregistraties, with the aantallen if requested. Uses a repeatable read transaction so the aantallen are consistent with the planregistraties. -
getPlanregistratiesForGemeentes
@Transactional(readOnly=true, isolation=REPEATABLE_READ) public List<Planregistratie> getPlanregistratiesForGemeentes(Collection<String> gemeentes, boolean withAantallen) -
getPlanregistratie
@Transactional(readOnly=true, isolation=REPEATABLE_READ) public Optional<Planregistratie> getPlanregistratie(String id) Returns a planregistratie with its aantallen. -
deletePlanregistratie
-
insertPlanregistratie
@Transactional public void insertPlanregistratie(Planregistratie planregistratie, String username) throws org.locationtech.jts.io.ParseException Inserts a planregistratie or replaces an existing one, including the aantallen. The creator, createdAt, editor and editedAt fields of the planregistratie are set from the username and the current time, the values from the client are ignored. For an existing planregistratie the creator and createdAt are kept.- Throws:
PlanNaamInUseException- when another planregistratie has the same plan nameorg.locationtech.jts.io.ParseException
-
getEnumValues
Returns the values of the enum types of the planmonitor wonen schema. -
getProvincieForGemeente
-
geometryIntersectsGemeente
-
getPlanregistratieGemeente
-