DBVIEW
|
00001 /* 00002 DbView - Graph Visualization 00003 Copyright (C) 2012 Denis BEURIVE 00004 00005 This program is free software: you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation, either version 3 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 00019 package org.dbview.db.structure; 00020 00021 /** 00022 * This class represents a dead foreign key. 00023 * @author Denis Beurive 00024 */ 00025 00026 public class DeadForeignKey 00027 { 00028 /** 00029 * Name of the table that holds the field. 00030 */ 00031 private String __table = null; 00032 00033 /** 00034 * Name of the field. 00035 */ 00036 private String __field = null; 00037 00038 /** 00039 * Create a dead foreign key. 00040 * @param in_table_name Name of the table. 00041 * @param in_field_name Name of the field. 00042 */ 00043 public DeadForeignKey(String in_table_name, String in_field_name) 00044 { 00045 this.__table = in_table_name; 00046 this.__field = in_field_name; 00047 } 00048 00049 /** 00050 * Return the name of the table. 00051 * @return The method returns the name of the table. 00052 */ 00053 public String getTable() { return this.__table; } 00054 00055 /** 00056 * Return the name of the field. 00057 * @return The method returns the name of the field. 00058 */ 00059 public String getField() { return this.__field; } 00060 00061 /** 00062 * Return the full name of the field. 00063 * @return The method returns the full name of the field. 00064 */ 00065 public String getFullName() { return this.__table + "." + this.__field; } 00066 }