BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.jdbc.informix4
Class InformixColumnMetaData

java.lang.Object
  |
  +--weblogic.jdbc.informix4.InformixColumnMetaData

public class InformixColumnMetaData
extends java.lang.Object
implements java.lang.Cloneable

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Field Summary
protected  int leadIntervalDigits
           
protected  int totalIntervalBytes
           
protected  int totalIntervalDigits
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getCatalogName()
          What's a column's table's catalog name?
 int getColumnDisplaySize()
          What's the column's normal max width in chars?
 java.lang.String getColumnLabel()
          What's the suggested column title for use in printouts and displays?
 java.lang.String getColumnName()
          What's a column's name?
 int getColumnType()
          What's a column's SQL type?
 java.lang.String getColumnTypeName()
          What's a column's data source specific type name?
 int getDefPrecision()
          What's a column's default precision value?
 java.lang.String getEncoding()
          Returns encoding method (character set) same as statement's.
protected  boolean getFlag(int iFlag)
           
 int getInformixColumnType()
          What's a column's SQL type?
 java.lang.String getInformixTypeName()
          What's a column's informix column name.
protected static InformixColumnMetaData getMeta(int informixType)
          protected final static String xopenName(int xopenType) { switch(xopenType) // return the name of the given xopen type { case Types.BIT: return "bit"; case Types.TINYINT: return "tinyint"; case Types.SMALLINT: return "smallint"; case Types.INTEGER: return "integer"; case Types.BIGINT: return "bigint"; case Types.FLOAT: return "float"; case Types.REAL: return "real"; case Types.DOUBLE: return "double"; case Types.NUMERIC: return "numeric"; case Types.DECIMAL: return "decimal"; case Types.CHAR: return "char"; case Types.VARCHAR: return "varchar"; case Types.LONGVARCHAR: return "longvarchar"; case Types.DATE: return "date"; case Types.TIME: return "time"; case Types.TIMESTAMP: return "timestamp"; case Types.BINARY: return "binary"; case Types.VARBINARY: return "varbinary"; case Types.LONGVARBINARY: return "longvarbinary"; case Types.NULL: return "null"; case Types.OTHER: return "other"; } // DriverManager.println("InformixColumnMetaData.xopenName - xopenType " + xopenType + " is unknown"); return "OTHER"; // we don't know the name of this type }
 int getMetaScale()
          What's a column's metanumber of digits to right of decimal?
static InformixColumnMetaData[] getOrderedTypeInfo()
           
 int getPrecision()
          What's a column's number of decimal digits?
 int getScale()
          What's a column's number of digits to right of decimal?
 java.lang.String getSchemaName()
          What's a column's table's schema?
 int getSize()
          Get the size of the column
 java.lang.String getTableName()
          What's a column's table name?
static InformixColumnMetaData[] getTypeInfo()
           
 boolean isAutoIncrement()
          Is the column automatically numbered, thus read-only?
 boolean isCaseSensitive()
          Does a column's case matter?
 boolean isCurrency()
          Is the column a cash value?
 boolean isDefinitelyWritable()
          Will a write on the column definitely succeed?
 int isNullable()
          Can you put a NULL in this column?
 boolean isReadOnly()
          Is a column definitely not writable?
 boolean isSearchable()
          Can the column be used in a where clause?
 boolean isSigned()
          Is the column a signed number?
 boolean isWritable()
          Is it possible for a write on the column to succeed?
protected  void readMetaData(SimpleInputStream inReply)
          Read the metadata info from the stream
protected  void setFlag(int iFlag, boolean enable)
          Turn on or off one of the flags for this type.
 void setName(java.lang.String iName)
          Set the name of this column, could be an empty string if not defined.
protected  void setPrecision(int iPrecision, int iScale)
          Set the precision (total number of digits) and the scale (number of decimal digits) of this type.
protected  void setSize(int iSize)
          Change the size of the column, if kVariable or kNullable size could change at run time, could be 0 if sql null.
 java.lang.String toString()
           
static InformixColumnMetaData typeInfoFor(int inInformixType)
           
static void updateTypes(weblogic.jdbc.informix4.Connection iConnection)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

leadIntervalDigits

protected int leadIntervalDigits

totalIntervalDigits

protected int totalIntervalDigits

totalIntervalBytes

protected int totalIntervalBytes
Method Detail

readMetaData

protected void readMetaData(SimpleInputStream inReply)
                     throws java.io.IOException,
                            java.sql.SQLException
Read the metadata info from the stream


setSize

protected void setSize(int iSize)
Change the size of the column, if kVariable or kNullable size could change at run time, could be 0 if sql null.


getSize

public int getSize()
Get the size of the column


setName

public void setName(java.lang.String iName)
Set the name of this column, could be an empty string if not defined.


setPrecision

protected void setPrecision(int iPrecision,
                            int iScale)
Set the precision (total number of digits) and the scale (number of decimal digits) of this type.


setFlag

protected void setFlag(int iFlag,
                       boolean enable)
Turn on or off one of the flags for this type.


getFlag

protected boolean getFlag(int iFlag)


isAutoIncrement

public boolean isAutoIncrement()
Is the column automatically numbered, thus read-only?


isCaseSensitive

public boolean isCaseSensitive()
Does a column's case matter?


isSearchable

public boolean isSearchable()
Can the column be used in a where clause?


isCurrency

public boolean isCurrency()
Is the column a cash value?


isNullable

public int isNullable()
Can you put a NULL in this column?


isSigned

public boolean isSigned()
Is the column a signed number?


getColumnDisplaySize

public int getColumnDisplaySize()
What's the column's normal max width in chars?


getColumnLabel

public java.lang.String getColumnLabel()
What's the suggested column title for use in printouts and displays?


getColumnName

public java.lang.String getColumnName()
What's a column's name?


getPrecision

public int getPrecision()
What's a column's number of decimal digits?


getDefPrecision

public int getDefPrecision()
What's a column's default precision value?


getScale

public int getScale()
What's a column's number of digits to right of decimal?


getMetaScale

public int getMetaScale()
What's a column's metanumber of digits to right of decimal?


getSchemaName

public java.lang.String getSchemaName()
What's a column's table's schema?


getTableName

public java.lang.String getTableName()
What's a column's table name?


getCatalogName

public java.lang.String getCatalogName()
What's a column's table's catalog name?


getColumnType

public int getColumnType()
What's a column's SQL type?


getInformixColumnType

public int getInformixColumnType()
What's a column's SQL type?


getInformixTypeName

public java.lang.String getInformixTypeName()
What's a column's informix column name. Only works with types table.?


getColumnTypeName

public java.lang.String getColumnTypeName()
What's a column's data source specific type name?


isReadOnly

public boolean isReadOnly()
Is a column definitely not writable?


isWritable

public boolean isWritable()
Is it possible for a write on the column to succeed?


isDefinitelyWritable

public boolean isDefinitelyWritable()
Will a write on the column definitely succeed?


getEncoding

public java.lang.String getEncoding()
Returns encoding method (character set) same as statement's.


typeInfoFor

public static InformixColumnMetaData typeInfoFor(int inInformixType)


getOrderedTypeInfo

public static InformixColumnMetaData[] getOrderedTypeInfo()


getTypeInfo

public static InformixColumnMetaData[] getTypeInfo()


updateTypes

public static void updateTypes(weblogic.jdbc.informix4.Connection iConnection)


getMeta

protected static final InformixColumnMetaData getMeta(int informixType)
                                               throws java.sql.SQLException
protected final static String xopenName(int xopenType) { switch(xopenType) // return the name of the given xopen type { case Types.BIT: return "bit"; case Types.TINYINT: return "tinyint"; case Types.SMALLINT: return "smallint"; case Types.INTEGER: return "integer"; case Types.BIGINT: return "bigint"; case Types.FLOAT: return "float"; case Types.REAL: return "real"; case Types.DOUBLE: return "double"; case Types.NUMERIC: return "numeric"; case Types.DECIMAL: return "decimal"; case Types.CHAR: return "char"; case Types.VARCHAR: return "varchar"; case Types.LONGVARCHAR: return "longvarchar"; case Types.DATE: return "date"; case Types.TIME: return "time"; case Types.TIMESTAMP: return "timestamp"; case Types.BINARY: return "binary"; case Types.VARBINARY: return "varbinary"; case Types.LONGVARBINARY: return "longvarbinary"; case Types.NULL: return "null"; case Types.OTHER: return "other"; } // DriverManager.println("InformixColumnMetaData.xopenName - xopenType " + xopenType + " is unknown"); return "OTHER"; // we don't know the name of this type }


clone

public java.lang.Object clone()

Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.