Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.java.ao.schema.helper;
 
 
 public interface DatabaseMetaDataReader
 {
    
Gets the names of the existing tables in the DB

Parameters:
databaseMetaData the meta data from which to extract the table names
Returns:
an java.lang.Iterable of table names as strings
    Iterable<StringgetTableNames(DatabaseMetaData databaseMetaData);

    

Parameters:
databaseMetaData
tableName
Returns:
    Iterable<? extends FieldgetFields(DatabaseMetaData databaseMetaDataString tableName);

    
Gets the list of foreign keys for a given table

Parameters:
databaseMetaData the database metadata to read the information from
tableName the name of the table from which to read the foreign keys
Returns:
an java.lang.Iterable of foreign keys
    Iterable<? extends ForeignKeygetForeignKeys(DatabaseMetaData databaseMetaDataString tableName);

    
Gets the list of indexes for a given table

Parameters:
databaseMetaData the database metadata to read the information from
tableName the name of the table from which to read the indexes
Returns:
an java.lang.Iterable of indexes
    Iterable<? extends IndexgetIndexes(DatabaseMetaData databaseMetaDataString tableName);
New to GrepCode? Check out our FAQ X