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
SchemaFeature
apply
in interface SchemaFeature
java.sql.SQLException
public java.lang.String getFeatureKey()
SchemaFeature
getFeatureKey
in interface SchemaFeature
public InternalDBFlavor dbFlavor()
SchemaFeature
dbFlavor
in interface SchemaFeature