org.brains2b.squeler.ddl
Interface DDLWriter

All Known Implementing Classes:
IndexDDL, TableDDL

Deprecated. Replaced by DDLDefinition

public interface DDLWriter

Interface for writing the DDL statements either to file or directly to a connection

Version:
$Revision$ $Date$
Author:
dennis@brains2b.nl

Field Summary
static java.lang.String CONSTRAINT
          Deprecated.  
static java.lang.String INDEX
          Deprecated.  
static java.lang.String TABLE
          Deprecated.  
 
Method Summary
 java.lang.StringBuffer getStatement()
          Deprecated.  
 void write(java.sql.Connection con)
          Deprecated.  
 void write(java.io.PrintWriter writer)
          Deprecated.  
 

Field Detail

TABLE

static final java.lang.String TABLE
Deprecated. 
See Also:
Constant Field Values

INDEX

static final java.lang.String INDEX
Deprecated. 
See Also:
Constant Field Values

CONSTRAINT

static final java.lang.String CONSTRAINT
Deprecated. 
See Also:
Constant Field Values
Method Detail

write

void write(java.sql.Connection con)
           throws SquelerDDLException,
                  java.sql.SQLException
Deprecated. 

writes the DDL statement directly to the database.

Parameters:
con - java.sql.Connection, the connection to the database, should have been initialized
Throws:
SquelerDDLException - thrown if problems arise with the definition of the statement
java.sql.SQLException - thrown if problems arise writing a correct statement to the database (no privleges to run this action, e.d.)

write

void write(java.io.PrintWriter writer)
           throws SquelerDDLException,
                  java.io.IOException
Deprecated. 

Method write.

Parameters:
writer -
Throws:
SquelerDDLException - thrown if problems arise with the definition of the statement
java.io.IOException - thrown if problems arise writing a correct statement to a file (access denied, could not create file e.d.)

getStatement

java.lang.StringBuffer getStatement()
                                    throws SquelerDDLException
Deprecated. 

gets a StringBuffer containing the proper statement for creation

Returns:
StringBuffer, the Buffer containing the statement
Throws:
SquelerDDLException - thrown if problems arise with the definition of the statement