Class ColInfo

java.lang.Object
net.sourceforge.jtds.jdbc.ColInfo
All Implemented Interfaces:
Cloneable

public class ColInfo extends Object implements Cloneable

Instances of this class serve as descriptor for result set columns.

Author:
Mike Hutchinson, Holger Rehn
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) int
    Column buffer (max) size
    (package private) String
    Database owning this column
    (package private) CharsetInfo
    Character set descriptor (if different from default)
    (package private) byte[]
    MS SQL2000 collation
    (package private) int
    Column display size
    (package private) boolean
    Column name is case sensitive
    (package private) boolean
    Column should be hidden
    (package private) boolean
    Column is an identity column
    (package private) boolean
    Column may be used as a key
    (package private) boolean
    Column may be updated
    (package private) int
    JDBC type constant from java.sql.Types
    (package private) String
    Column label / name
    (package private) int
    Column data type supports SQL NULL
    (package private) int
    Column decimal precision
    (package private) String
    Column actual table name
    (package private) int
    Column decimal scale
    (package private) String
    User owning this column
    (package private) String
    The SQL type name for this column.
    (package private) String
    Table name owning this column
    (package private) int
    Internal TDS data type
    (package private) int
    Database ID for UDT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private final boolean
    Compares two object.
    boolean
    equals(Object other)
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • tdsType

      int tdsType
      Internal TDS data type
    • jdbcType

      int jdbcType
      JDBC type constant from java.sql.Types
    • realName

      String realName
      Column actual table name
    • name

      String name
      Column label / name
    • tableName

      String tableName
      Table name owning this column
    • catalog

      String catalog
      Database owning this column
    • schema

      String schema
      User owning this column
    • nullable

      int nullable
      Column data type supports SQL NULL
    • isCaseSensitive

      boolean isCaseSensitive
      Column name is case sensitive
    • isWriteable

      boolean isWriteable
      Column may be updated
    • isIdentity

      boolean isIdentity
      Column is an identity column
    • isKey

      boolean isKey
      Column may be used as a key
    • isHidden

      boolean isHidden
      Column should be hidden
    • userType

      int userType
      Database ID for UDT
    • collation

      byte[] collation
      MS SQL2000 collation
    • charsetInfo

      CharsetInfo charsetInfo
      Character set descriptor (if different from default)
    • displaySize

      int displaySize
      Column display size
    • bufferSize

      int bufferSize
      Column buffer (max) size
    • precision

      int precision
      Column decimal precision
    • scale

      int scale
      Column decimal scale
    • sqlType

      String sqlType
      The SQL type name for this column.
  • Constructor Details

    • ColInfo

      public ColInfo()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • compare

      private final boolean compare(Object o1, Object o2)

      Compares two object.

      Returns:
      true if either both values are null or comparing them using the equals method of o1 returns true