com.sibvisions.rad.persist.jdbc
Class ForeignKey

java.lang.Object
  extended by com.sibvisions.rad.persist.jdbc.ForeignKey

public class ForeignKey
extends Object

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


Constructor Summary
ForeignKey(String pPKTable, String pPKCatalog, String pPKSchema)
          Construct a Select cache object.
 
Method Summary
 String[] getFKColumns()
          Returns the foreign key columns.
 String getFKName()
          Returns the foreign key name.
 String getLinkReferenceColumn()
          Returns the foreign key column for the LinkReference.
 String getPKCatalog()
          Returns the catalog of the primary key table.
 String[] getPKColumns()
          Returns the primary key columns.
 String getPKSchema()
          Returns the schema of the primary key table.
 String getPKTable()
          Returns the primary key table.
 String[] getPKTableRepresentationColumns()
          Returns the representation columns of the primary key table.
 boolean isNullable()
          Returns if the foreign key is nullable.
 void setFKColumns(String[] pFKColumns)
          Sets the foreign key columns.
 void setFKName(String pFKName)
          Sets the foreign key name.
 void setLinkReferenceColumn(String pLinkReferenceColumn)
          Sets the foreign key column for the LinkReference.
 void setNullable(boolean pNullable)
          Sets if the foreign key is nullable.
 void setPKColumns(String[] pPKColumns)
          Sets the primary key columns.
 void setPKTableRepresentationColumns(String[] pAllPKTableColumns)
          Sets the representation columns of the primary key table.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForeignKey

public ForeignKey(String pPKTable,
                  String pPKCatalog,
                  String 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
Method Detail

toString

public String toString()

Overrides:
toString in class Object

getPKTableRepresentationColumns

public String[] getPKTableRepresentationColumns()
Returns the representation columns of the primary key table.

Returns:
the representation columns of the primary key table.

setPKTableRepresentationColumns

public void setPKTableRepresentationColumns(String[] pAllPKTableColumns)
Sets the representation columns of the primary key table.

Parameters:
pAllPKTableColumns - the representation columns of the primary key table to set

getPKColumns

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

Returns:
the primary key columns

setPKColumns

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

Parameters:
pPKColumns - the primary key columns to set

getFKColumns

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

Returns:
the foreign key columns.

setFKColumns

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

Parameters:
pFKColumns - the foreign key columns to set

getPKTable

public String getPKTable()
Returns the primary key table.

Returns:
the primary key table

getPKCatalog

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

Returns:
the catalog of the primary key table

getPKSchema

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

Returns:
the schema of the primary key table.

getLinkReferenceColumn

public String getLinkReferenceColumn()
Returns the foreign key column for the LinkReference.

Returns:
the foreign key column for the LinkReference.

setLinkReferenceColumn

public void setLinkReferenceColumn(String pLinkReferenceColumn)
Sets the foreign key column for the LinkReference.

Parameters:
pLinkReferenceColumn - the foreign key column for the LinkReference to set

isNullable

public boolean isNullable()
Returns if the foreign key is nullable.

Returns:
if the foreign key is nullable.

setNullable

public void setNullable(boolean pNullable)
Sets if the foreign key is nullable.

Parameters:
pNullable - the bNullable to set

getFKName

public String getFKName()
Returns the foreign key name.

Returns:
the foreign key name.

setFKName

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

Parameters:
pFKName - the foreign key name.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.