FileDocCategorySizeDatePackage
SerializableResultSetMetaData.javaAPI DocJBoss 4.2.14324Fri Jul 13 21:01:14 BST 2007org.jboss.resource.adapter.jdbc.remote

SerializableResultSetMetaData

public class SerializableResultSetMetaData extends Object implements ResultSetMetaData, Serializable
A wrapper to marshall ResultSetMetaData remotely.
author
Scott.Stark@jboss.org
version
$Revision: 57189 $

Fields Summary
static final long
serialVersionUID
private ColumnData[]
columnData
Constructors Summary
SerializableResultSetMetaData(ResultSetMetaData metaData)

   

      
   
      int count = metaData.getColumnCount();
      columnData = new ColumnData[count+1];
      for(int c = 1; c <= count; c ++)
      {
         ColumnData data = new ColumnData();
         columnData[c] = data;
         data.label = metaData.getColumnLabel(c);
         data.name = metaData.getColumnName(c);
         data.type = metaData.getColumnType(c);

      }
   
Methods Summary
public java.lang.StringgetCatalogName(int column)

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

      return columnData[column].className;
   
public intgetColumnCount()

      // Adjust the usable count by 1 for the 1 base index
      return columnData.length - 1;
   
public intgetColumnDisplaySize(int column)

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

      return columnData[column].label;
   
public java.lang.StringgetColumnName(int column)

      return columnData[column].name;
   
public intgetColumnType(int column)

      return columnData[column].type;
   
public java.lang.StringgetColumnTypeName(int column)

      return columnData[column].typeName;
   
public intgetPrecision(int column)

      return 0;
   
public intgetScale(int column)

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

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

      return "";
   
public booleanisAutoIncrement(int column)

      return false;
   
public booleanisCaseSensitive(int column)

      return false;
   
public booleanisCurrency(int column)

      return false;
   
public booleanisDefinitelyWritable(int column)

      return false;
   
public intisNullable(int column)

      return 0;
   
public booleanisReadOnly(int column)

      return false;
   
public booleanisSearchable(int column)

      return false;
   
public booleanisSigned(int column)

      return false;
   
public booleanisWritable(int column)

      return false;