DBVIEW
|
Public Member Functions | |
abstract Boolean | isFk (String in_field_name) |
abstract String | referenceTable (String in_field_name) |
abstract String | referenceField (String in_field_name) |
abstract String | description () |
This class defines the interface for a "soft foreign key" detector. Please note that a soft foreign key is defined by the field's name only. There is no constraint declared in the database. This kind of foreign key is used with database systems that don't support foreign keys (ex: MyIsam).
Definition at line 32 of file AbstractSotfForeignKeyDetector.java.
abstract String org.dbview.resources.AbstractSotfForeignKeyDetector.description | ( | ) | [pure virtual] |
This method returns a description of the detector.
Implemented in org.dbview.resources.softforeignkeydetectors.FkUsTargetTableName, org.dbview.resources.softforeignkeydetectors.IdUsTargetTableName, org.dbview.resources.softforeignkeydetectors.TargetTableNameUsId, org.dbview.resources.softforeignkeydetectors.FkTargetTableName, and org.dbview.resources.softforeignkeydetectors.IdTargetTableName.
Referenced by org.dbview.resources.SotfForeignKeyDetectorCatalog.getFkMatcherDescriptionByName().
abstract Boolean org.dbview.resources.AbstractSotfForeignKeyDetector.isFk | ( | String | in_field_name | ) | [pure virtual] |
This method tests whether a field, identified by its name, is a soft foreign key or not.
in_field_name | Name of the field to test. |
Implemented in org.dbview.resources.softforeignkeydetectors.FkTargetTableName, org.dbview.resources.softforeignkeydetectors.FkUsTargetTableName, org.dbview.resources.softforeignkeydetectors.IdTargetTableName, org.dbview.resources.softforeignkeydetectors.IdUsTargetTableName, and org.dbview.resources.softforeignkeydetectors.TargetTableNameUsId.
abstract String org.dbview.resources.AbstractSotfForeignKeyDetector.referenceField | ( | String | in_field_name | ) | [pure virtual] |
If the field is a (soft) foreign key, then the method returns the name of the "reference" field (within the "reference" table).
in_field_name | Name of the field. |
Implemented in org.dbview.resources.softforeignkeydetectors.FkUsTargetTableName, org.dbview.resources.softforeignkeydetectors.IdUsTargetTableName, org.dbview.resources.softforeignkeydetectors.TargetTableNameUsId, org.dbview.resources.softforeignkeydetectors.FkTargetTableName, and org.dbview.resources.softforeignkeydetectors.IdTargetTableName.
abstract String org.dbview.resources.AbstractSotfForeignKeyDetector.referenceTable | ( | String | in_field_name | ) | [pure virtual] |
If the field is a soft foreign key, then the method returns the name of the "reference" table.
in_field_name | Name of the field. |
Implemented in org.dbview.resources.softforeignkeydetectors.FkTargetTableName, org.dbview.resources.softforeignkeydetectors.FkUsTargetTableName, org.dbview.resources.softforeignkeydetectors.IdTargetTableName, org.dbview.resources.softforeignkeydetectors.IdUsTargetTableName, and org.dbview.resources.softforeignkeydetectors.TargetTableNameUsId.