view geo-backend/src/main/java/de/intevation/gnv/geobackend/sde/datasources/ColDefinition.java @ 1127:ebeb56428409

Added license headers and license file. geo-backend/trunk@1261 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 02 Nov 2010 17:52:22 +0000
parents d674cef2ca0d
children
line wrap: on
line source
/*
 * Copyright (c) 2010 by Intevation GmbH
 *
 * This program is free software under the LGPL (>=v2.1)
 * Read the file LGPL.txt coming with the software for details
 * or visit http://www.gnu.org/licenses/ if it does not exist.
 */

package de.intevation.gnv.geobackend.sde.datasources;

import org.apache.log4j.Logger;

/**
 * The class <code>ColDefinition</code> fulfills the following purposes:
 * @author blume
 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
 */
public class ColDefinition {

    /**
     * Default Logging instance
     */
    private static Logger sLogger = Logger.getLogger(ColDefinition.class);

    /**
     * @deprecated
     */
    public static final int SMALLINT = 1;
    /**
     * @deprecated
     */
    public static final int INTEGER = 2;
    /**
     * @deprecated
     */
    public static final int FLOAT = 3;
    /**
     * @deprecated
     */
    public static final int DOUBLE = 4;
    public static final int INT16 = 1;
    public static final int INT32 = 2;
    public static final int FLOAT32 = 3;
    public static final int FLOAT64 = 4;
    public static final int STRING = 5;
    public static final int BLOB = 6;
    public static final int DATE = 7;
    public static final int SHAPE = 8;
    public static final int RASTER = 9;
    public static final int XML = 10;
    public static final int INT64 = 11;
    public static final int UUID = 12;
    public static final int CLOB = 13;
    public static final int NSTRING = 14;
    public static final int NCLOB = 15;

    private String mName;
    private int mType;

    /**
     * Constructor
     * @param pName the Name of an Column.
     * @param pType the Type of an Column.
     */
    public ColDefinition(String pName, int pType) {
        mName = pName;
        mType = pType;
    }

    /**
     * Returns the Name of an Column.
     * @return the Name of an Column.
     */
    public String getName() {
        return mName;
    }

    /**
     * Returns the Type of an Column.
     * @return the Type of an Column.
     */
    public int getType() {
        return mType;
    }
}

http://dive4elements.wald.intevation.org