Interface SchemaFeature
-
- All Known Implementing Classes:
DBTranslatorRecord.AddTextTypeSchemaFeature
,DDLSchemaFeature
,EncodedStringField.ConvertStringToEncodedSchemaFeature
public interface SchemaFeature
SchemaFeature is used to ensure that the internal database has particular attributes ("features"). Modules should register schema features on startup through theSchemaUpdater
- if a particular feature does not exist (no such FeatureKey present), theapply(DBInterface)
function will be called, allowing the implementor to take whatever action it wants.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
apply(DBInterface db)
If the given schema feature is not present in the database, this will be calleddefault 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
-
-
-
Method Detail
-
getFeatureKey
java.lang.String getFeatureKey()
A module-specific key for the named feature
-
apply
void apply(DBInterface db) throws java.sql.SQLException
If the given schema feature is not present in the database, this will be called- Throws:
java.sql.SQLException
-
dbFlavor
default InternalDBFlavor dbFlavor()
If a schema feature is only pertinent to a particular internal db flavor, it can return it here. Otherwise, "Not_Defined" is retuned by default and will apply to all internal databases.
-
-