org.apache.turbine.torque.engine.database.model
Class ForeignKey

java.lang.Object
  |
  +--org.apache.turbine.torque.engine.database.model.ForeignKey

Deprecated. use turbine-torque

public class ForeignKey
extends java.lang.Object

A Class for information about foreign keys of a table

Version:
$Id: ForeignKey.java,v 1.3 2002/02/26 22:15:43 fedor Exp $
Author:
Fedor

Field Summary
private  java.util.List foreignColumns
          Deprecated.  
private  java.lang.String foreignTableName
          Deprecated.  
private  java.util.List localColumns
          Deprecated.  
private  Table parentTable
          Deprecated.  
 
Constructor Summary
ForeignKey()
          Deprecated. Default Constructor
 
Method Summary
 void addReference(org.xml.sax.AttributeList attrib)
          Deprecated. adds a new reference entry to the foreign key
 void addReference(java.lang.String local, java.lang.String foreign)
          Deprecated. adds a new reference entry to the foreign key
 java.lang.String getForeignColumnNames()
          Deprecated. Return a comma delimited string of foreign column names
 java.util.List getForeignColumns()
          Deprecated. Return the vector of local columns.
 java.util.Hashtable getForeignLocalMapping()
          Deprecated. Utility method to get local column to foreign column mapping for this foreign key.
 java.lang.String getForeignTableName()
          Deprecated. Get the foreignTableName of the FK
 java.lang.String getLocalColumnNames()
          Deprecated. Return a comma delimited string of local column names
 java.util.List getLocalColumns()
          Deprecated. Return the vector of local columns.
 java.util.Hashtable getLocalForeignMapping()
          Deprecated. Utility method to get local column to foreign column mapping for this foreign key.
 Table getTable()
          Deprecated. Get the parent Table of the foreign key
 java.lang.String getTableName()
          Deprecated. Returns the Name of the table the foreign key is in
 void loadFromXML(org.xml.sax.AttributeList attrib)
          Deprecated. Imports foreign key from an XML specification
private  java.lang.String makeColumnList(java.util.List cols)
          Deprecated. Creates a list of columns delimited by commas
 void setForeignTableName(java.lang.String tableName)
          Deprecated. Set the foreignTableName of the FK
 void setTable(Table parent)
          Deprecated. Set the parent Table of the foreign key
 java.lang.String toString()
          Deprecated. String representation of the foreign key.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

foreignTableName

private java.lang.String foreignTableName
Deprecated. 

parentTable

private Table parentTable
Deprecated. 

localColumns

private java.util.List localColumns
Deprecated. 

foreignColumns

private java.util.List foreignColumns
Deprecated. 
Constructor Detail

ForeignKey

public ForeignKey()
Deprecated. 
Default Constructor
Method Detail

loadFromXML

public void loadFromXML(org.xml.sax.AttributeList attrib)
Deprecated. 
Imports foreign key from an XML specification

getForeignTableName

public java.lang.String getForeignTableName()
Deprecated. 
Get the foreignTableName of the FK

setForeignTableName

public void setForeignTableName(java.lang.String tableName)
Deprecated. 
Set the foreignTableName of the FK

setTable

public void setTable(Table parent)
Deprecated. 
Set the parent Table of the foreign key

getTable

public Table getTable()
Deprecated. 
Get the parent Table of the foreign key

getTableName

public java.lang.String getTableName()
Deprecated. 
Returns the Name of the table the foreign key is in

addReference

public void addReference(org.xml.sax.AttributeList attrib)
Deprecated. 
adds a new reference entry to the foreign key

addReference

public void addReference(java.lang.String local,
                         java.lang.String foreign)
Deprecated. 
adds a new reference entry to the foreign key

makeColumnList

private java.lang.String makeColumnList(java.util.List cols)
Deprecated. 
Creates a list of columns delimited by commas

getLocalColumnNames

public java.lang.String getLocalColumnNames()
Deprecated. 
Return a comma delimited string of local column names

getForeignColumnNames

public java.lang.String getForeignColumnNames()
Deprecated. 
Return a comma delimited string of foreign column names

getLocalColumns

public java.util.List getLocalColumns()
Deprecated. 
Return the vector of local columns. You should not edit this vector.

getLocalForeignMapping

public java.util.Hashtable getLocalForeignMapping()
Deprecated. 
Utility method to get local column to foreign column mapping for this foreign key.

getForeignColumns

public java.util.List getForeignColumns()
Deprecated. 
Return the vector of local columns. You should not edit this vector.

getForeignLocalMapping

public java.util.Hashtable getForeignLocalMapping()
Deprecated. 
Utility method to get local column to foreign column mapping for this foreign key.

toString

public java.lang.String toString()
Deprecated. 
String representation of the foreign key. This is an xml representation.
Overrides:
toString in class java.lang.Object


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.