FileDocCategorySizeDatePackage
SimpleTextResultSetMetaData.javaAPI DocExample12336Sat Feb 03 11:43:42 GMT 2001jdbc.SimpleText

SimpleTextResultSetMetaData

public class SimpleTextResultSetMetaData extends SimpleTextObject implements ResultSetMetaData

Fields Summary
protected Hashtable
inMemoryColumns
protected boolean
readOnly
Constructors Summary
Methods Summary
public java.lang.StringgetCatalogName(int column)

        return "";
    
protected SimpleTextColumngetColumn(int col)

        SimpleTextColumn column = (SimpleTextColumn)
                        inMemoryColumns.get(new Integer(col));

        if (column == null) {
            throw new SQLException("Invalid column number: " + col);
        }

        return column;
    
public intgetColumnCount()

        return inMemoryColumns.size();
    
public intgetColumnDisplaySize(int column)

        return (getColumn(column)).displaySize;
    
public java.lang.StringgetColumnLabel(int column)

        // Use the column name

        return getColumnName(column);
    
public java.lang.StringgetColumnName(int column)

        return (getColumn(column)).name;
    
public intgetColumnType(int column)

        return (getColumn(column)).type;
    
public java.lang.StringgetColumnTypeName(int column)

        return (getColumn(column)).typeName;
    
public intgetPrecision(int column)

        return (getColumn(column)).precision;
    
public intgetScale(int column)

        // The SimpleText driver does not support any data types with scale

        return 0;
    
public java.lang.StringgetSchemaName(int column)

        // The SimpleText driver does not support schemas

        return "";
    
public java.lang.StringgetTableName(int column)

        return "";
    
public voidinitialize(java.util.Hashtable columns, boolean readOnly)

        inMemoryColumns = columns;
    
public booleanisAutoIncrement(int column)

        // The SimpleText driver does not support auto increment columns

        return false;
    
public booleanisCaseSensitive(int column)

        // Case never matters

        return false;
    
public booleanisCurrency(int column)

        // The SimpleText driver does not support any currency data types

        return false;
    
public booleanisDefinitelyWritable(int column)

        return !isReadOnly(column);
    
public intisNullable(int column)

        // The SimpleText driver does not support nullable columns

        return columnNoNulls;
    
public booleanisReadOnly(int column)

        return readOnly;
    
public booleanisSearchable(int column)

        // The SimpleText driver does not support searching

        return false;
    
public booleanisSigned(int column)

        // The SimpleText driver does not support signed columns

        return false;
    
public booleanisWritable(int column)

        return !isReadOnly(column);