|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.persistence.rdbms.GenericSQLProducer
public class GenericSQLProducer
INTERNAL: Class that generates DDL statements for the generic database platform.
Field Summary | |
---|---|
protected String[] |
platforms
|
protected Project |
project
|
Constructor Summary | |
---|---|
GenericSQLProducer(Project project)
|
|
GenericSQLProducer(Project project,
String[] platforms)
|
Method Summary | |
---|---|
protected List |
addForeignKey(Table table,
Column col,
String keyname,
List statements)
INTERNAL: Generate the DDL statement(s) to add foreigns keys for the specified column. |
protected List |
addPrimaryKeys(Table table,
List statements)
INTERNAL: Generate the DDL statement(s) to add primary keys for the specified table. |
protected List |
createIndexes(Table table,
List statements)
INTERNAL: Generate the DDL statement(s) to create indexes for the specified table. |
protected List |
createStatement(Table table,
List statements)
INTERNAL: Generate the DDL statement(s) to create the specified table. |
protected List |
dropConstraint(Table table,
Column col,
String keyname,
List statements)
INTERNAL: Generate the DDL statement(s) to drop foreigns keys for the specified column. |
protected List |
dropStatement(Table table,
List statements)
INTERNAL: Generate the DDL statement(s) to drop the specified table. |
void |
executeCreate(Connection conn)
|
void |
executeDrop(Connection conn)
|
protected void |
executeStatements(List statements,
Connection conn)
|
protected String |
getIndexName(Index index)
|
protected String |
getPrimaryKeyName(Table table)
|
protected void |
outputStatements(List statements,
Writer writer)
|
protected boolean |
supportsForeignKeys()
|
protected boolean |
supportsNullInColumnDefinition()
|
void |
writeCreate(Writer writer)
INTERNAL: Create the DDL statement(s) to create the database schema. |
void |
writeDrop(Writer writer)
INTERNAL: Create the DDL statement(s) to drop the database schema. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Project project
protected String[] platforms
Constructor Detail |
---|
public GenericSQLProducer(Project project)
public GenericSQLProducer(Project project, String[] platforms)
Method Detail |
---|
public void writeCreate(Writer writer) throws IOException
IOException
public void executeCreate(Connection conn) throws IOException, SQLException
IOException
SQLException
public void writeDrop(Writer writer) throws IOException
IOException
public void executeDrop(Connection conn) throws IOException, SQLException
IOException
SQLException
protected List createStatement(Table table, List statements) throws IOException
IOException
protected String getPrimaryKeyName(Table table)
protected String getIndexName(Index index)
protected boolean supportsNullInColumnDefinition()
protected List dropStatement(Table table, List statements) throws IOException
IOException
protected List addPrimaryKeys(Table table, List statements) throws IOException
IOException
protected List addForeignKey(Table table, Column col, String keyname, List statements) throws IOException
IOException
protected List dropConstraint(Table table, Column col, String keyname, List statements) throws IOException
IOException
protected List createIndexes(Table table, List statements) throws IOException
IOException
protected void outputStatements(List statements, Writer writer) throws IOException
IOException
protected void executeStatements(List statements, Connection conn) throws IOException, SQLException
IOException
SQLException
protected boolean supportsForeignKeys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |