Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/util/data/IntegerArrayType.java @ 711:3ec358698b4d
Code style and documentation.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 22 Jul 2015 16:03:03 +0200 |
parents | d067d72e602c |
children |
comparison
equal
deleted
inserted
replaced
710:2ae27dde4823 | 711:3ec358698b4d |
---|---|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | |
6 * the documentation coming with IMIS-Labordaten-Application for details. | |
7 */ | |
1 package de.intevation.lada.util.data; | 8 package de.intevation.lada.util.data; |
2 | 9 |
3 import java.io.Serializable; | 10 import java.io.Serializable; |
4 import java.sql.Array; | 11 import java.sql.Array; |
5 import java.sql.Connection; | 12 import java.sql.Connection; |
9 | 16 |
10 import org.hibernate.HibernateException; | 17 import org.hibernate.HibernateException; |
11 import org.hibernate.engine.spi.SessionImplementor; | 18 import org.hibernate.engine.spi.SessionImplementor; |
12 import org.hibernate.usertype.UserType; | 19 import org.hibernate.usertype.UserType; |
13 | 20 |
21 /** | |
22 * Implementation for a new data type in the postgresql/postgis jdbc driver. | |
23 * | |
24 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> | |
25 */ | |
14 public class IntegerArrayType implements UserType { | 26 public class IntegerArrayType implements UserType { |
15 protected static final int SQLTYPE = java.sql.Types.ARRAY; | 27 protected static final int SQLTYPE = java.sql.Types.ARRAY; |
16 | 28 |
17 @Override | 29 @Override |
18 public int[] sqlTypes() { | 30 public int[] sqlTypes() { |