DBVIEW
org.dbview.resources.softforeignkeydetectors.IdTargetTableName Class Reference
Inheritance diagram for org.dbview.resources.softforeignkeydetectors.IdTargetTableName:
Collaboration diagram for org.dbview.resources.softforeignkeydetectors.IdTargetTableName:

List of all members.

Public Member Functions

Boolean isFk (String in_field_name)
String referenceTable (String in_field_name)
String referenceField (String in_field_name)
String description ()

Detailed Description

This class implements a (soft) foreign key detector. Foreign key looks like: id<name of the target table> The target field is always "id".

Author:
Denis Beurive

Definition at line 30 of file IdTargetTableName.java.


Member Function Documentation

String org.dbview.resources.softforeignkeydetectors.IdTargetTableName.description ( ) [virtual]

This method returns a description of the matcher.

Returns:
The method returns a description of the matcher.

Implements org.dbview.resources.AbstractSotfForeignKeyDetector.

Definition at line 73 of file IdTargetTableName.java.

Boolean org.dbview.resources.softforeignkeydetectors.IdTargetTableName.isFk ( String  in_field_name) [virtual]

This method tests whether a field, identified by its name, is a (soft) foreign key or not.

Parameters:
in_field_nameName of the field to test.
Returns:
If the field is a (soft) foreign key, then the method returns the value TRUE. Otherwise, it returns the value FALSE.

Implements org.dbview.resources.AbstractSotfForeignKeyDetector.

Definition at line 38 of file IdTargetTableName.java.

Referenced by org.dbview.resources.softforeignkeydetectors.IdTargetTableName.referenceField(), and org.dbview.resources.softforeignkeydetectors.IdTargetTableName.referenceTable().

String org.dbview.resources.softforeignkeydetectors.IdTargetTableName.referenceField ( String  in_field_name) [virtual]

If the field is a (soft) foreign key, then the method returns the name of the "reference" field.

Parameters:
in_field_nameName of the field.
Returns:
If the field is a (soft) foreign key, then the method returns the name of the "reference" field. Otherwise, the method returns the value null.

Implements org.dbview.resources.AbstractSotfForeignKeyDetector.

Definition at line 63 of file IdTargetTableName.java.

String org.dbview.resources.softforeignkeydetectors.IdTargetTableName.referenceTable ( String  in_field_name) [virtual]

If the field is a (soft) foreign key, then the method returns the name of the "reference" table.

Parameters:
in_field_nameName of the field.
Returns:
If the field is a (soft) foreign key, then the method returns the name of the "reference" table. Otherwise, the method returns the value null.

Implements org.dbview.resources.AbstractSotfForeignKeyDetector.

Definition at line 51 of file IdTargetTableName.java.


The documentation for this class was generated from the following file: