Class DDLSchemaFeature
java.lang.Object
com.inductiveautomation.ignition.gateway.localdb.DDLSchemaFeature
- All Implemented Interfaces:
SchemaFeature
A very simple implementation of SchemaFeature that simply runs a sequence of DDL queries
-
Constructor Summary
ConstructorsConstructorDescriptionDDLSchemaFeature
(String key, InternalDBFlavor dbFlavor, String... commands) DDLSchemaFeature
(String key, String... commands) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(DBInterface db) If the given schema feature is not present in the database, this will be calleddbFlavor()
If a schema feature is only pertinent to a particular internal db flavor, it can return it here.A module-specific key for the named feature
-
Constructor Details
-
DDLSchemaFeature
-
DDLSchemaFeature
-
-
Method Details
-
apply
Description copied from interface:SchemaFeature
If the given schema feature is not present in the database, this will be called- Specified by:
apply
in interfaceSchemaFeature
- Throws:
SQLException
-
getFeatureKey
Description copied from interface:SchemaFeature
A module-specific key for the named feature- Specified by:
getFeatureKey
in interfaceSchemaFeature
-
dbFlavor
Description copied from interface:SchemaFeature
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.- Specified by:
dbFlavor
in interfaceSchemaFeature
-