changeset 101:9db50ea77eb4

Added method to update a probe
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 11 Jun 2013 13:05:08 +0200
parents 4ed15ffbc20c
children 1c4a7c27c054
files src/main/java/de/intevation/lada/manage/LProbeManager.java
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/manage/LProbeManager.java	Tue Jun 11 11:13:15 2013 +0200
+++ b/src/main/java/de/intevation/lada/manage/LProbeManager.java	Tue Jun 11 13:05:08 2013 +0200
@@ -61,4 +61,22 @@
         TransactionRequiredException {
         em.persist(probe);
     }
+
+    /**
+     * Updates a LProbe object in the database.
+     *
+     * @param probe The new LProbe object.
+     *
+     * @throws EntityExistsException
+     * @throws IllegalArgumentException
+     * @throws TransactionRequiredException
+     */
+    @TransactionAttribute(TransactionAttributeType.REQUIRED)
+    public void update(LProbe probe)
+    throws EntityExistsException,
+        IllegalArgumentException,
+        EJBTransactionRolledbackException,
+        TransactionRequiredException {
+        em.merge(probe);
+    }
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)