org.dbunit.database
Class DatabaseTableMetaData

java.lang.Object
  extended byorg.dbunit.dataset.AbstractTableMetaData
      extended byorg.dbunit.database.DatabaseTableMetaData
All Implemented Interfaces:
ITableMetaData

public class DatabaseTableMetaData
extends AbstractTableMetaData

Since:
Mar 8, 2002
Version:
$Revision: 1.22 $
Author:
Manuel Laflamme

Method Summary
static ITableMetaData createMetaData(java.lang.String tableName, java.sql.ResultSet resultSet, IDatabaseConnection connection)
           
static ITableMetaData createMetaData(java.lang.String tableName, java.sql.ResultSet resultSet, IDataTypeFactory dataTypeFactory)
           
 Column[] getColumns()
          Returns this table columns.
 Column[] getPrimaryKeys()
          Returns this table primary key columns.
 java.lang.String getTableName()
          Returns this table name.
 java.lang.String toString()
           
 
Methods inherited from class org.dbunit.dataset.AbstractTableMetaData
getPrimaryKeys, getPrimaryKeys
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createMetaData

public static ITableMetaData createMetaData(java.lang.String tableName,
                                            java.sql.ResultSet resultSet,
                                            IDataTypeFactory dataTypeFactory)
                                     throws DataSetException,
                                            java.sql.SQLException
Throws:
DataSetException
java.sql.SQLException

createMetaData

public static ITableMetaData createMetaData(java.lang.String tableName,
                                            java.sql.ResultSet resultSet,
                                            IDatabaseConnection connection)
                                     throws java.sql.SQLException,
                                            DataSetException
Throws:
java.sql.SQLException
DataSetException

getTableName

public java.lang.String getTableName()
Description copied from interface: ITableMetaData
Returns this table name.


getColumns

public Column[] getColumns()
                    throws DataSetException
Description copied from interface: ITableMetaData
Returns this table columns.

Throws:
DataSetException

getPrimaryKeys

public Column[] getPrimaryKeys()
                        throws DataSetException
Description copied from interface: ITableMetaData
Returns this table primary key columns.

Throws:
DataSetException

toString

public java.lang.String toString()


Copyright © 2002-2004 DbUnit.org. All Rights Reserved.