Class BinaryFkFragment

java.lang.Object
ch.tocco.nice2.dbrefactoring.spi.install.fragments.BinaryFkFragment
All Implemented Interfaces:
InstallFragment

@Component public class BinaryFkFragment extends Object implements 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.