uk.org.ogsadai.converters.databaseschema
Class KeyMetaDataImpl

java.lang.Object
  |
  +--uk.org.ogsadai.converters.databaseschema.KeyMetaDataImpl
All Implemented Interfaces:
KeyMetaData

public class KeyMetaDataImpl
extends java.lang.Object
implements KeyMetaData

Metadata on imported or exported keys of a database table.

Author:
The OGSA-DAI Team.

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
private  java.lang.String mFKColumnName
           
private  java.lang.String mFKTableCatalog
           
private  java.lang.String mFKTableName
           
private  java.lang.String mFKTableSchema
           
private  java.lang.String mPKColumnName
           
private  java.lang.String mPKTableName
           
 
Constructor Summary
KeyMetaDataImpl()
           
 
Method Summary
 java.lang.String getForeignColumnName()
          Returns the column name of the foreign key.
 java.lang.String getForeignTableName()
          Returns the table name of the foreign key.
 java.lang.String getPrimaryKeyColumnName()
          Returns the column name of the primary key.
 java.lang.String getPrimaryKeyTableName()
          Returns the table name of the primary key.
 void setForeignColumnName(java.lang.String fkcolumn)
          Set the name of the foreign key column.
 void setForeignTable(java.lang.String name, java.lang.String schema, java.lang.String catalog)
          Set the name of the foreign table of this key.
 void setPrimaryKeyColumnName(java.lang.String pkcolumn)
          Set the name of the primary key column.
 void setPrimaryKeyTableName(java.lang.String pktable)
          Set the table name of the primary key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
See Also:
Constant Field Values

mFKTableName

private java.lang.String mFKTableName

mFKTableSchema

private java.lang.String mFKTableSchema

mFKTableCatalog

private java.lang.String mFKTableCatalog

mFKColumnName

private java.lang.String mFKColumnName

mPKTableName

private java.lang.String mPKTableName

mPKColumnName

private java.lang.String mPKColumnName
Constructor Detail

KeyMetaDataImpl

public KeyMetaDataImpl()
Method Detail

setForeignTable

public void setForeignTable(java.lang.String name,
                            java.lang.String schema,
                            java.lang.String catalog)
Set the name of the foreign table of this key.

Parameters:
catalog - Catalog name.
schema - Schema name.
name - Table name.

setForeignColumnName

public void setForeignColumnName(java.lang.String fkcolumn)
Set the name of the foreign key column.

Parameters:
fkcolumn - Foreign key column.

setPrimaryKeyColumnName

public void setPrimaryKeyColumnName(java.lang.String pkcolumn)
Set the name of the primary key column.

Parameters:
pkcolumn - Primary key column.

setPrimaryKeyTableName

public void setPrimaryKeyTableName(java.lang.String pktable)
Set the table name of the primary key.

Parameters:
pktable - Primary key table.

getForeignTableName

public java.lang.String getForeignTableName()
Description copied from interface: KeyMetaData
Returns the table name of the foreign key.

Specified by:
getForeignTableName in interface KeyMetaData
Returns:
foreign key table name

getForeignColumnName

public java.lang.String getForeignColumnName()
Description copied from interface: KeyMetaData
Returns the column name of the foreign key.

Specified by:
getForeignColumnName in interface KeyMetaData
Returns:
foreign key column name

getPrimaryKeyTableName

public java.lang.String getPrimaryKeyTableName()
Description copied from interface: KeyMetaData
Returns the table name of the primary key.

Specified by:
getPrimaryKeyTableName in interface KeyMetaData
Returns:
primary key table name

getPrimaryKeyColumnName

public java.lang.String getPrimaryKeyColumnName()
Description copied from interface: KeyMetaData
Returns the column name of the primary key.

Specified by:
getPrimaryKeyColumnName in interface KeyMetaData
Returns:
primary key column name