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