|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.ddl.GenericDDLGenerator
ca.sqlpower.architect.ddl.DB2DDLGenerator
public class DB2DDLGenerator
| Field Summary | |
|---|---|
static java.lang.String |
GENERATOR_VERSION
|
| Fields inherited from class ca.sqlpower.architect.ddl.GenericDDLGenerator |
|---|
allowConnection, con, EOL, profileFunctionMap, targetCatalog, targetSchema, topLevelNames, typeMap, warnings |
| Constructor Summary | |
|---|---|
DB2DDLGenerator()
|
|
| Method Summary | |
|---|---|
protected void |
createTypeMap()
Creates and populates typeMap using
DatabaseMetaData. |
java.lang.String |
getCatalogTerm()
No catalogs in DB2. |
java.lang.String |
getDeferrabilityClause(SQLRelationship r)
Returns the correct syntax for setting the deferrability of a foreign key relationship on this DDL Generator's target platform. |
java.lang.String |
getName()
Returns the name of this DDL Generator, which should be a human-readable string with the vendor and/or product name (and version if the generator doesn't work with all versions) of the database platform this generator targets. |
java.lang.String |
getSchemaTerm()
Returns the string "Schema". |
boolean |
supportsDeferrabilityPolicy(SQLRelationship r)
DB2 does not support a deferrability clause on FK constraints, but its default behaviour is like DEFERRABLE on other platforms. |
boolean |
supportsDeleteAction(SQLRelationship r)
Returns true if this DDL generator supports the given relationship's delete action. |
boolean |
supportsUpdateAction(SQLRelationship r)
Returns true if this DDL generator supports the given relationship's update action. |
void |
writeHeader()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String GENERATOR_VERSION
| Constructor Detail |
|---|
public DB2DDLGenerator()
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public java.lang.String getName()
DDLGenerator
getName in interface DDLGeneratorgetName in class GenericDDLGeneratorpublic void writeHeader()
writeHeader in class GenericDDLGenerator
protected void createTypeMap()
throws java.sql.SQLException
GenericDDLGeneratortypeMap using
DatabaseMetaData. Subclasses for specific DB platforms will be
able to override this implementation with one that uses a
static, pre-defined type map.
createTypeMap in class GenericDDLGeneratorjava.sql.SQLExceptionpublic java.lang.String getCatalogTerm()
getCatalogTerm in interface DDLGeneratorgetCatalogTerm in class GenericDDLGeneratorpublic java.lang.String getSchemaTerm()
getSchemaTerm in interface DDLGeneratorgetSchemaTerm in class GenericDDLGeneratorpublic boolean supportsDeleteAction(SQLRelationship r)
GenericDDLGenerator
supportsDeleteAction in class GenericDDLGeneratorpublic boolean supportsUpdateAction(SQLRelationship r)
GenericDDLGenerator
supportsUpdateAction in class GenericDDLGeneratorpublic boolean supportsDeferrabilityPolicy(SQLRelationship r)
supportsDeferrabilityPolicy in class GenericDDLGeneratorpublic java.lang.String getDeferrabilityClause(SQLRelationship r)
GenericDDLGeneratorUnsupportedOperationException if the platform does not
support the given relationship's deferrability policy.
getDeferrabilityClause in class GenericDDLGeneratorr - The relationship the deferrability clause is for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||