org.dbunit.database
Class DatabaseTableMetaData

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

public class DatabaseTableMetaData
extends AbstractTableMetaData

Since:
Mar 8, 2002
Version:
$Revision: 629 $
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()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2008. All Rights Reserved.