All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.jdbcproc.daofactory.impl.procedureinfo.ResultSetColumnInfo Maven / Gradle / Ivy

There is a newer version: 1.1-35
Show newest version
package com.googlecode.jdbcproc.daofactory.impl.procedureinfo;

import com.googlecode.jdbcproc.daofactory.impl.TypeNameUtil;

/**
 * Result set column info
 */
public class ResultSetColumnInfo {

    /**
     * Creates column info
     *
     * @param aColumnName column name
     * @param aDataType   data type
     */
    public ResultSetColumnInfo(String aColumnName, int aDataType) {
        theColumnName = aColumnName;
        theDataType = aDataType;
        theDataTypeName = TypeNameUtil.getName(theDataType);
    }

    /**
     * Column name
     *
     * @return column name
     */
    public String getColumnName() {
        return theColumnName;
    }

    /**
     * Data type
     *
     * @return data type of java.sql.Types.*
     */
    public int getDataType() {
        return theDataType;
    }

    /**
     * Data type name
     *
     * @return data type name of java.sql.Types.*
     */
    public String getDataTypeName() {
        return theDataTypeName;
    }

    public String toString() {
        return "ResultSetColumnInfo{" +
                "theDataType=" + theDataTypeName +
                ", theColumnName='" + theColumnName + '\'' +
                '}';
    }

    /**
     * Data type
     */
    private final int theDataType;

    /**
     * Data type name
     */
    private final String theDataTypeName;

    /**
     * Column name
     */
    private final String theColumnName;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy