public class DDLSchemaFeature extends java.lang.Object implements SchemaFeature
| Constructor and Description |
|---|
DDLSchemaFeature(java.lang.String key,
InternalDBFlavor dbFlavor,
java.lang.String... commands) |
DDLSchemaFeature(java.lang.String key,
java.lang.String... commands) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(DBInterface db)
If the given schema feature is not present in the database, this will be called
|
InternalDBFlavor |
dbFlavor()
If a schema feature is only pertinent to a particular internal db flavor,
it can return it here.
|
java.lang.String |
getFeatureKey()
A module-specific key for the named feature
|
public DDLSchemaFeature(java.lang.String key,
java.lang.String... commands)
public DDLSchemaFeature(java.lang.String key,
InternalDBFlavor dbFlavor,
java.lang.String... commands)
public void apply(DBInterface db) throws java.sql.SQLException
SchemaFeatureapply in interface SchemaFeaturejava.sql.SQLExceptionpublic java.lang.String getFeatureKey()
SchemaFeaturegetFeatureKey in interface SchemaFeaturepublic InternalDBFlavor dbFlavor()
SchemaFeaturedbFlavor in interface SchemaFeature