亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? column.java

?? Town是一個100% 純Java API
?? JAVA
字號:
package com.workingdogs.town;

import java.io.*;

/*
Town, a Java JDBC abstraction layer
Copyright (C) 1999  Serge Knystautas, Jon Stevens

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Library General Public License for more details.

You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA  02111-1307, USA.
*/

import java.sql.*;

/**
This class represents a Column in the database and its associated meta information.
A <a href="com.workingdogs.town.Record.html">Record</A> is a collection of columns.

@author Jon S. Stevens <A HREF="mailto:jon@working-dogs.com">jon@working-dogs.com</A>
@author Serge Knystautas <a href="mailto:sergek@lokitech.com">sergek@lokitech.com</a>
@version 1.0
*/
public class Column
{
    /** column number in a schema object */
    private int columnNumber = -1;
    /** name of the column */
    private String name = "";
    /** example: this column is of type "String" */
    private String columnTypeName = "";
    /** what java.sql.Type is this column? */
    private int columnType = -1;
    /** name of table that this column belongs to */
    private String tableName = "";
    /** is null allowed for this column? */
    private boolean nullAllowed = false;
    /** is this an auto increment column? */
    private boolean autoIncrement = false;
    /** is this a read only column? */
    private boolean readOnly = false;
    /** is this a searchable column? */
    private boolean searchable = false;
    /** what is the scale of this column? */
    private int scale = -1;
    /** what is the precision of this column? */
    private int precision = -1;
    /** what is the length of this column? */
    private int length = -1;
    /** the column type resolved internally */
    private String type = "";

    /** Constructor */
    public Column()
    {
        this.columnNumber = -1;
        this.name = "";
        this.columnTypeName = "";
        this.tableName = "";
        this.columnType = -1;
        this.nullAllowed = false;
        this.autoIncrement = false;
        this.readOnly = false;
        this.searchable = false;
        this.scale = -1;
        this.precision = -1;
        this.length = -1;
        this.type = "";
    }
    /**
        does this column auto increment?
        @returns whether or not this column auto increments
      */
    public boolean autoIncrement()
    {
        return this.autoIncrement;
    }
    /**
        the data type of a column
        @returns the java.sql.Types String
      */
    public String dbType()
    {
        return this.columnTypeName;
    }
    /** column isBigDecimal: Types.NUMERIC || Types.DECIMAL */
    public boolean isBigDecimal()
    {
        if (this.typeEnum() == Types.NUMERIC || this.typeEnum() == Types.DECIMAL)
            return true;
        else
            return false;
    }
    /** column isBinary: Types.BINARY */
    public boolean isBinary()
    {
        if (this.typeEnum() == Types.BINARY)
            return true;
        else
            return false;
    }
    /** column isBoolean: Types.BIT */
    public boolean isBoolean()
    {
        if (this.typeEnum() == Types.BIT)
            return true;
        else
            return false;
    }
    /** column isByte: Types.TINYINT */
    public boolean isByte()
    {
        if (this.typeEnum() == Types.TINYINT)
            return true;
        else
            return false;
    }
    /** column isBytes: Types.BINARY || Types.VARBINARY || Types.LONGVARBINARY */
    public boolean isBytes()
    {
        if (this.typeEnum() == Types.LONGVARBINARY || this.typeEnum() == Types.VARBINARY ||
                this.columnType == Types.BINARY)
            return true;
        else
            return false;
    }
    /** column isDate: Types.Date */
    public boolean isDate()
    {
        if (this.typeEnum() == Types.DATE)
            return true;
        else
            return false;
    }
    /** column isDouble: Types.FLOAT || Types.DOUBLE */
    public boolean isDouble()
    {
        if (this.typeEnum() == Types.FLOAT || this.typeEnum() == Types.DOUBLE)
            return true;
        else
            return false;
    }
    /** column isFloat: Types.REAL */
    public boolean isFloat()
    {
        if (this.typeEnum() == Types.REAL)
            return true;
        else
            return false;
    }
    /** column isInt: Types.INTEGER */
    public boolean isInt()
    {
        if (this.typeEnum() == Types.INTEGER)
            return true;
        else
            return false;
    }
    /** column isLong: Types.BIGINT */
    public boolean isLong()
    {
        if (this.typeEnum() == Types.BIGINT)
            return true;
        else
            return false;
    }
    /** column isLongVarBinary: Types.LONGVARBINARY */
    public boolean isLongVarBinary()
    {
        if (this.typeEnum() == Types.LONGVARBINARY)
            return true;
        else
            return false;
    }
    /** column isShort: Types.SMALLINT */
    public boolean isShort()
    {
        if (this.typeEnum() == Types.SMALLINT)
            return true;
        else
            return false;
    }
    /** column isString: Types.LONGVARCHAR || -11 || Types.VARCHAR */
    public boolean isString()
    {
        if (this.typeEnum() == Types.LONGVARCHAR || this.typeEnum() == 11 ||
                this.typeEnum() == Types.VARCHAR)
            return true;
        else
            return false;
    }
    /** column isTime: Types.TIME */
    public boolean isTime()
    {
        if (this.typeEnum() == Types.TIME)
            return true;
        else
            return false;
    }
    /** column isTimestamp: Types.TIMESTAMP */
    public boolean isTimestamp()
    {
        if (this.typeEnum() == Types.TIMESTAMP)
            return true;
        else
            return false;
    }
    /** column isVarBinary: Types.VARBINARY */
    public boolean isVarBinary()
    {
        if (this.typeEnum() == Types.VARBINARY)
            return true;
        else
            return false;
    }
    /** unknown use */
    public String javaType() throws DataSetException
    {
        throw new DataSetException ("Method not implemented: Unknown use!");
    }
    /**
        the storage length of a column
        @returns the storage length of a column
      */
    public int length()
    {
        return this.length;
    }
    /**
        the name of the column
        @retuns the name of the column
      */
    public String name()
    {
        return this.name;
    }
    /**
        does this column allow null?
        @returns whether or not the column has null Allowed
      */
    public boolean nullAllowed()
    {
        return this.nullAllowed;
    }
    /** internal package method for populating a Column instance */
    void populate (ResultSetMetaData rsmd,
            int colNum) throws ConnectionException
    {
        try
        {
            this.columnNumber = colNum;
            this.name = rsmd.getColumnName (columnNumber);
            this.tableName = rsmd.getTableName(columnNumber);
            this.columnTypeName = rsmd.getColumnTypeName (columnNumber);
            this.columnType = rsmd.getColumnType (columnNumber);
            this.nullAllowed = rsmd.isNullable(columnNumber) == 1;
            this.autoIncrement = rsmd.isAutoIncrement(columnNumber);
            this.readOnly = rsmd.isReadOnly (columnNumber);
            this.searchable = rsmd.isSearchable (columnNumber);
            this.scale = rsmd.getScale (columnNumber);
            this.precision = rsmd.getPrecision (columnNumber);
            this.length = rsmd.getColumnDisplaySize (columnNumber);
        }
        catch (SQLException sqle)
        {
            throw new ConnectionException (sqle);
        }
    }
    /**
        the precision of the column
        @returns the precision of the column
      */
    public int precision()
    {
        return this.precision;
    }
    /**
        is this column read only?
        @returns whether or not this column is read only
      */
    public boolean readOnly()
    {
        return this.readOnly;
    }
    /**
        the scale of the column
        @returns the scale of the column
      */
    public int scale()
    {
        return this.scale;
    }
    /**
        is this column searchable?
        @returns true if this column is searchable
      */
    public boolean searchable()
    {
        return this.searchable;
    }
    /**
        the type of the column as a string
        @returns the type of the column as a string
      */
    public String type()
    {
        if (isBoolean())
            return "BOOLEAN";
        else if (isByte())
            return "BYTE";
        else if (isShort())
            return "SHORT";
        else if (isInt())
            return "INTEGER";
        else if (isLong())
            return "LONG";
        else if (isFloat())
            return "FLOAT";
        else if (isDouble())
            return "DOUBLE";
        else if (isBigDecimal())
            return "BIGDECIMAL";
        else if (isDate())
            return "DATE";
        else if (isTime())
            return "TIME";
        else if (isTimestamp())
            return "TIMESTAMP";
        else if (isString())
            return "STRING";
        else if (isBinary())
            return "BINARY";
        else if (isVarBinary())
            return "VARBINARY";
        else if (isLongVarBinary())
            return "LONGVARBINARY";

        return "UNKNOWN TYPE: " + typeEnum();
    }
    /**
        the data type of a column
        @returns the java.sql.Types enum
      */
    public int typeEnum()
    {
        return this.columnType;
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚男人的天堂| 在线观看亚洲精品视频| 自拍偷在线精品自拍偷无码专区| 欧美一区二区三区四区在线观看| 99re这里只有精品首页| 久久超级碰视频| 亚洲va欧美va人人爽| 亚洲欧美日韩中文播放| 亚洲免费观看高清完整版在线| 日韩激情视频网站| 麻豆国产精品一区二区三区| 亚洲成av人片| 99re在线精品| 久久久99精品免费观看| 国产色91在线| 看电视剧不卡顿的网站| 欧美探花视频资源| 最新欧美精品一区二区三区| 最新日韩av在线| 国产精品99久久久久久有的能看| 成人av资源下载| 色婷婷综合久久久中文字幕| 欧美中文字幕一区二区三区亚洲 | 精品一区二区三区久久| 国产中文字幕一区| 色婷婷亚洲一区二区三区| 国产午夜精品理论片a级大结局| 免费在线观看视频一区| 99久久久国产精品免费蜜臀| 亚洲国产精华液网站w| 亚洲欧美一区二区三区极速播放 | 日韩黄色片在线观看| 欧美日韩高清一区二区| 亚洲精品一区二区三区蜜桃下载 | 韩国一区二区视频| 日韩西西人体444www| 欧美国产日产图区| 成人激情小说乱人伦| 国产精品毛片大码女人| 日本午夜精品一区二区三区电影| 成人午夜碰碰视频| 51精品久久久久久久蜜臀| 国产精品入口麻豆原神| 99天天综合性| 久久久亚洲欧洲日产国码αv| 一区二区三区视频在线看| 久久99精品久久久| 久久久久99精品一区| 成人黄色av网站在线| 亚洲天堂av一区| 欧美日韩免费电影| 毛片一区二区三区| 国产精品丝袜91| 欧美性色综合网| 日本成人超碰在线观看| 久久久一区二区三区| www.亚洲精品| 偷拍与自拍一区| 色屁屁一区二区| 日本不卡一区二区| 久久精品网站免费观看| 在线免费一区三区| 久久国产精品99精品国产| 中文字幕免费不卡| 欧美日韩一二三区| 亚洲国产成人porn| 欧美天堂一区二区三区| 精品中文字幕一区二区| 国产精品福利影院| 成人综合激情网| 一个色综合网站| 国产三级精品在线| 成人黄页毛片网站| 奇米四色…亚洲| 国产精品你懂的在线| 欧美高清dvd| 日韩av一区二区三区四区| 久久久精品综合| 欧美肥妇bbw| jiyouzz国产精品久久| 蜜臀av国产精品久久久久| 成人欧美一区二区三区小说 | 99riav一区二区三区| 蜜桃视频一区二区三区在线观看 | 日韩精品一级二级| 中文字幕中文字幕中文字幕亚洲无线| 欧美二区三区91| 色婷婷av一区二区三区gif| 狠狠狠色丁香婷婷综合久久五月| 亚洲成人资源在线| 亚洲欧美在线另类| 国产夜色精品一区二区av| 911精品国产一区二区在线| 99久久er热在这里只有精品15| 久久精品国产第一区二区三区| 亚洲一区二区三区在线播放| 777午夜精品视频在线播放| hitomi一区二区三区精品| 国产在线一区二区| 免费观看久久久4p| 日韩精品国产欧美| 午夜视频一区二区| 亚洲一区视频在线| 一区二区三区.www| 夜夜亚洲天天久久| ㊣最新国产の精品bt伙计久久| 国产精品女主播av| 国产拍欧美日韩视频二区| 久久久久亚洲蜜桃| 久久久欧美精品sm网站| 久久久国产精品不卡| 亚洲精品一区二区三区在线观看| 欧美xfplay| 91麻豆国产自产在线观看| 日韩精品欧美精品| 丝瓜av网站精品一区二区| 婷婷开心激情综合| 日韩电影一区二区三区四区| 亚洲va欧美va天堂v国产综合| 亚洲成人免费在线观看| 五月激情丁香一区二区三区| 视频一区二区不卡| 老司机午夜精品| 国产乱人伦偷精品视频免下载| 国产精品一区二区三区99| 懂色av噜噜一区二区三区av| 亚洲一区二区欧美日韩| 亚洲综合色在线| 日韩影院精彩在线| 久久成人精品无人区| 国产成人免费视频精品含羞草妖精| 亚洲成年人影院| 日本不卡123| 精品夜夜嗨av一区二区三区| 国产激情精品久久久第一区二区| www.性欧美| 欧美亚洲国产bt| 56国语精品自产拍在线观看| 日韩视频一区二区在线观看| 久久影音资源网| 欧美大黄免费观看| 欧美日韩国产大片| 精品对白一区国产伦| 国产精品国产三级国产普通话99 | 免费观看一级欧美片| 国产成人免费在线| 欧洲精品一区二区| 久久久久久久一区| 一区二区三区不卡视频在线观看| 久久草av在线| 色悠悠久久综合| 日韩精品一区二区在线| 一区免费观看视频| 蜜臀久久99精品久久久久宅男| 国产成都精品91一区二区三 | 97精品电影院| 欧美大片一区二区| 亚洲激情图片qvod| 亚洲精品欧美激情| 激情综合色综合久久综合| 一本大道久久精品懂色aⅴ| 宅男噜噜噜66一区二区66| 亚洲欧美一区二区视频| 美女网站在线免费欧美精品| 色综合天天综合在线视频| 91亚洲永久精品| 日韩一二三区视频| 日韩伦理av电影| 国产一区二区三区在线观看免费 | 欧美一区二区免费视频| 亚洲欧洲日韩一区二区三区| 日韩vs国产vs欧美| 在线观看亚洲a| 中文字幕高清一区| 九九精品视频在线看| 欧美色视频一区| 自拍偷拍国产精品| 国产成人亚洲综合a∨婷婷图片| 日韩一区二区三区视频在线| 一区二区三区91| 一本到三区不卡视频| 亚洲国产岛国毛片在线| 久久99国产精品尤物| 制服丝袜在线91| 一区二区免费看| 99国产精品久久久久久久久久 | 国产美女主播视频一区| 91精品国产福利| 亚洲大片免费看| 欧美在线综合视频| 亚洲色欲色欲www在线观看| 岛国精品在线观看| 国产视频911| 国模大尺度一区二区三区| 日韩精品在线一区二区| 麻豆freexxxx性91精品| 日韩欧美电影一二三| 青青草精品视频| 欧美一区2区视频在线观看| 视频在线观看91|