Class BinaryFkFragment
java.lang.Object
ch.tocco.nice2.dbrefactoring.spi.install.fragments.BinaryFkFragment
- All Implemented Interfaces:
InstallFragment
This fragment goes through all fields of all entities and creates
a fk to the binary table for each field of type 'binary'.
Additionally a trigger is created for every binary field to keep track of the usage (this is done to be able
to delete unused binaries in an efficient way.
If all binary reference counts are zero, it is assumed that the column was just added and the values
will be initialized.
-
Constructor Summary
ConstructorDescriptionBinaryFkFragment
(NiceDataModel dataModel, MetaDataRegistry metaDataRegistry, DataSource dataSource) -
Method Summary
Modifier and TypeMethodDescriptioninstall
(InstallParameters params) Executes this fragments install routine and returns a report.
-
Constructor Details
-
BinaryFkFragment
public BinaryFkFragment(NiceDataModel dataModel, MetaDataRegistry metaDataRegistry, DataSource dataSource)
-
-
Method Details
-
install
Description copied from interface:InstallFragment
Executes this fragments install routine and returns a report. This will affect all modules.- Specified by:
install
in interfaceInstallFragment
- Returns:
- a report for this install fragment
-