net.sourceforge.addam.ddlgen.oracle
Class ForeignKeyGenerator

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

public class ForeignKeyGenerator
extends DBMSMetadataGenerator


Field Summary
private  boolean ignore
           
 
Constructor Summary
ForeignKeyGenerator()
           
 
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
 String objectType()
           
protected  void writeLine(String line, BufferedWriter writer)
           
 
Methods inherited from class net.sourceforge.addam.ddlgen.oracle.DBMSMetadataGenerator
generate, getObjects, getObjects, objectsSQL, setDefaultTransformParams, setTransformParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ignore

private boolean ignore
Constructor Detail

ForeignKeyGenerator

public ForeignKeyGenerator()
Method Detail

objectType

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

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

writeLine

protected void writeLine(String line,
                         BufferedWriter writer)
                  throws IOException
Overrides:
writeLine in class DBMSMetadataGenerator
Throws:
IOException


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