changeset 5876:a251ccee56e4

river backend: Removed obsolete hibernate transformer class.
author Sascha L. Teichmann <teichmann@intevation.de>
date Mon, 29 Apr 2013 11:42:15 +0200 (2013-04-29)
parents ee5a791d8983
children 7e48f7a64182 a7b56219b362
files backend/src/main/java/de/intevation/hibernate/MapResultTransformer.java
diffstat 1 files changed, 0 insertions(+), 34 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/de/intevation/hibernate/MapResultTransformer.java	Mon Apr 29 11:40:38 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
- * Software engineering by Intevation GmbH
- *
- * This file is Free Software under the GNU AGPL (>=v3) 
- * and comes with ABSOLUTELY NO WARRANTY! Check out the
- * documentation coming with Dive4Elements River for details. 
- */
-
-package org.dive4elements.hibernate;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.hibernate.transform.BasicTransformerAdapter;
-
-public class MapResultTransformer
-extends      BasicTransformerAdapter
-{
-    public static final MapResultTransformer INSTANCE =
-        new MapResultTransformer();
-
-    public MapResultTransformer() {
-    }
-
-    @Override
-    public Object transformTuple(Object [] tuple, String [] aliases) {
-        Map<String, Object> map = new HashMap<String, Object>();
-        for (int i = 0; i < tuple.length; ++i) {
-            map.put(aliases[i], tuple[i]);
-        }
-        return map;
-    }
-}
-// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org