DBVIEW
org.dbview.input_addons.DbForeignKey Class Reference

List of all members.

Public Member Functions

String getFullName ()
 DbForeignKey (String in_table_name, String in_field_name, String in_reference_table_name, String in_reference_field_name)

Public Attributes

String table_name = null
String field_name = null
String reference_table_name = null
String reference_field_name = null

Detailed Description

This class represents a foreign key.

Please note that there are two kinds of foreign key:

  • Hard foreign key: This kind of key is materialized by a constraint.
  • Soft foreign key: This kind of key is only materialized by its name.

A foreign key is defined by a "reference field" and a "dependent field".

Author:
Denis Beurive

Definition at line 35 of file DbForeignKey.java.


Constructor & Destructor Documentation

org.dbview.input_addons.DbForeignKey.DbForeignKey ( String  in_table_name,
String  in_field_name,
String  in_reference_table_name,
String  in_reference_field_name 
)

Create a foreign key.

Parameters:
in_table_nameName of the "dependent" table.
in_field_nameName of the "dependent" field, within the "reference" table.
in_reference_table_nameName of the "reference" table.
in_reference_field_nameName of the "reference" field, within the "reference" table.

Definition at line 70 of file DbForeignKey.java.


Member Function Documentation

String org.dbview.input_addons.DbForeignKey.getFullName ( )

Return the full name of the field.

Returns:
The méthod the full name of the field.

Definition at line 61 of file DbForeignKey.java.


Member Data Documentation

Name of the "reference" field, within the "reference" table.

Definition at line 45 of file DbForeignKey.java.

Referenced by org.dbview.input_addons.DbForeignKey.DbForeignKey(), and org.dbview.input_addons.DbForeignKey.getFullName().

Name of the "reference" field, within the "target" table.

Definition at line 55 of file DbForeignKey.java.

Referenced by org.dbview.input_addons.DbForeignKey.DbForeignKey().

Name of the "reference" table.

Definition at line 50 of file DbForeignKey.java.

Referenced by org.dbview.input_addons.DbForeignKey.DbForeignKey().


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