net.sourceforge.addam.ddlgen.oracle
Class IndexGenerator

java.lang.Object
  extended by net.sourceforge.addam.ddlgen.oracle.DBMSMetadataGenerator
      extended by net.sourceforge.addam.ddlgen.oracle.IndexGenerator
All Implemented Interfaces:
Generator

public class IndexGenerator
extends DBMSMetadataGenerator


Field Summary
private static String INDEX_SQL
           
private static String TABLE_SQL
           
 
Constructor Summary
IndexGenerator()
           
 
Method Summary
 void generate(String catalog, String schema, String object, String vendor, Connection connection, DatabaseMetaData metadata, BufferedWriter writer)
          writes a SQL/DDL scripts for the given object to the writer
 List<String> getObjects(String catalog, String schema, Filter filter, Connection connection, DatabaseMetaData metadata)
          Return the list of objects for the given catalog and schema.
 String objectType()
           
 
Methods inherited from class net.sourceforge.addam.ddlgen.oracle.DBMSMetadataGenerator
generate, getObjects, objectsSQL, setDefaultTransformParams, setTransformParam, writeLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLE_SQL

private static final String TABLE_SQL
See Also:
Constant Field Values

INDEX_SQL

private static final String INDEX_SQL
See Also:
Constant Field Values
Constructor Detail

IndexGenerator

public IndexGenerator()
Method Detail

objectType

public String objectType()
Specified by:
objectType in class DBMSMetadataGenerator

getObjects

public List<String> getObjects(String catalog,
                               String schema,
                               Filter filter,
                               Connection connection,
                               DatabaseMetaData metadata)
                        throws Exception
Description copied from interface: Generator
Return the list of objects for the given catalog and schema.

Specified by:
getObjects in interface Generator
Overrides:
getObjects in class DBMSMetadataGenerator
Parameters:
catalog - the database object's catalog
schema - the database object's schema
filter - the definition of the generator (used for included/excluded objects)
connection - the database connection
metadata - database metadata for the connection
Returns:
Throws:
Exception

generate

public void generate(String catalog,
                     String schema,
                     String object,
                     String vendor,
                     Connection connection,
                     DatabaseMetaData metadata,
                     BufferedWriter writer)
              throws Exception
Description copied from interface: Generator
writes a SQL/DDL scripts for the given object to the writer

Specified by:
generate in interface Generator
Overrides:
generate in class DBMSMetadataGenerator
Parameters:
catalog - the database object's catalog
schema - the database object's schema
object - the database object to generate
connection - the database connection
metadata - database metadata for the connection
writer - what to write the generated SQL/DDL to
Throws:
Exception


Copyright © 2005-2006 ADDAM Project Team. All Rights Reserved.