FileDocCategorySizeDatePackage
MsqlColumn.javaAPI DocExample1297Tue Jan 01 00:00:00 GMT 1980COM.imaginary.sql.msql

MsqlColumn

public class MsqlColumn extends Object
This class holds meta information about mSQL columns in a result set.
Last modified 97/04/20
version
@(#) MsqlColumn.java 1.3@(#)
author
George Reese (borg@imaginary.com)

Fields Summary
private String
column_name
private int
length
private boolean
primary_key
private boolean
nullable
private String
table_name
private int
type
Constructors Summary
MsqlColumn(String col, String table, int typ, int len, boolean n, boolean pk)

    
             
	         
	super();
	column_name = col;
	table_name = table;
	length = len;
	nullable = n;
	primary_key = pk;
	switch( typ ) {
	case 1:
	    type = Types.INTEGER;
	    break;
	    
	case 2:
	    type = Types.CHAR;
	    break;
	    
	case 3:
	    type = Types.REAL;
	    break;
	    
	case 5:
	    type = Types.NULL;
	    break;
	}
    
Methods Summary
java.lang.StringgetColumnName()

	return column_name;
    
intgetLength()

	return length;
    
java.lang.StringgetTableName()

	return table_name;
    
intgetType()

       return type;
    
booleanisNullable()

	return nullable;
    
booleanisPrimaryKey()

	return primary_key;