com.sibvisions.rad.persist.jdbc
Class ForeignKey

java.lang.Object
  extended by com.sibvisions.rad.persist.jdbc.ForeignKey
All Implemented Interfaces:
java.lang.Cloneable

public class ForeignKey
extends java.lang.Object
implements java.lang.Cloneable

It stores all relevant information, like FK Columns, PK Columns, etc. of an Foreign Key.


Constructor Summary
ForeignKey(Name pPKTable, Name pPKCatalog, Name pPKSchema)
          Construct a Select cache object.
ForeignKey(java.lang.String[] pFKColumns, java.lang.String pPKTable, java.lang.String[] pPKColumns, java.lang.String[] pLinkReferenceColumns)
          Construct a Select cache object.
 
Method Summary
 ForeignKey clone()
          
 Name[] getFKColumns()
          Returns the foreign key columns.
 java.lang.String getFKName()
          Returns the foreign key name.
 Name getPKCatalog()
          Returns the catalog of the primary key table.
 Name[] getPKColumns()
          Returns the primary key columns.
 Name getPKSchema()
          Returns the schema of the primary key table.
 Name getPKTable()
          Returns the primary key table.
 void setFKColumns(Name[] pFKColumns)
          Sets the foreign key columns.
 void setFKName(java.lang.String pFKName)
          Sets the foreign key name.
 void setPKCatalog(Name pPKCatalog)
          Sets the primary key catalog name.
 void setPKColumns(Name[] pPKColumns)
          Sets the primary key columns.
 void setPKSchema(Name pPKSchema)
          Sets the primary key Schema name.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForeignKey

public ForeignKey(Name pPKTable,
                  Name pPKCatalog,
                  Name pPKSchema)
Construct a Select cache object.

Parameters:
pPKTable - The primary key table
pPKCatalog - The catalog of the primary key table
pPKSchema - The schema of the primary key table

ForeignKey

public ForeignKey(java.lang.String[] pFKColumns,
                  java.lang.String pPKTable,
                  java.lang.String[] pPKColumns,
                  java.lang.String[] pLinkReferenceColumns)
Construct a Select cache object.

Parameters:
pFKColumns - The foreign key columns
pPKTable - The table
pPKColumns - The the primary key columns
pLinkReferenceColumns - The columns of interest
Method Detail

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

clone

public ForeignKey clone()

Overrides:
clone in class java.lang.Object

getPKColumns

public Name[] getPKColumns()
Returns the primary key columns.

Returns:
the primary key columns

setPKColumns

public void setPKColumns(Name[] pPKColumns)
Sets the primary key columns.

Parameters:
pPKColumns - the primary key columns to set

getFKColumns

public Name[] getFKColumns()
Returns the foreign key columns.

Returns:
the foreign key columns.

setFKColumns

public void setFKColumns(Name[] pFKColumns)
Sets the foreign key columns.

Parameters:
pFKColumns - the foreign key columns to set

getPKTable

public Name getPKTable()
Returns the primary key table.

Returns:
the primary key table

getPKCatalog

public Name getPKCatalog()
Returns the catalog of the primary key table.

Returns:
the catalog of the primary key table

setPKCatalog

public void setPKCatalog(Name pPKCatalog)
Sets the primary key catalog name.

Parameters:
pPKCatalog - the primary key catalog name.

getPKSchema

public Name getPKSchema()
Returns the schema of the primary key table.

Returns:
the schema of the primary key table.

setPKSchema

public void setPKSchema(Name pPKSchema)
Sets the primary key Schema name.

Parameters:
pPKSchema - the primary key schema name to use.

getFKName

public java.lang.String getFKName()
Returns the foreign key name.

Returns:
the foreign key name.

setFKName

public void setFKName(java.lang.String pFKName)
Sets the foreign key name.

Parameters:
pFKName - the foreign key name.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.