org.webdocwf.util.loader.generator
Class TableRelationshipsReader

java.lang.Object
  extended byorg.webdocwf.util.loader.generator.TableRelationshipsReader

public class TableRelationshipsReader
extends java.lang.Object

TableRelationshipsReader class read the data which describe database relationships between the tables.

Version:
1.0
Author:
Radoslav Dutina

Constructor Summary
TableRelationshipsReader(java.sql.Connection conn, java.lang.String tableName, java.lang.String catalogName, InputParameters generatorParameters, int constraintCount)
          Construct object TableRelationshipsReader with associated parameters.
 
Method Summary
static java.lang.String[] getForeignVariables()
          This method read the value of listForeignVariables parameters.
static java.lang.String[] getIndexVariables()
          This method read the value of listIndexVariables parameters.
static java.lang.String[] getPrimaryKeys()
          This method read the value of listPrimaryKeys parameters.
 RelationshipsAttributes getRelationshipsAttributes()
          This method read the value of RelationshipsAttributes parameters.
static void setForeignVariables(java.lang.String[] foreign_Variables)
          This method sets the value of listForeignVariables parameters.
static void setIndexVariables(java.lang.String[] index_Variables)
          This method sets the value of listIndexVariables parameters.
static void setPrimaryKeys(java.lang.String[] primary_Keys)
          This method sets the value of listPrimaryKeys parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableRelationshipsReader

public TableRelationshipsReader(java.sql.Connection conn,
                                java.lang.String tableName,
                                java.lang.String catalogName,
                                InputParameters generatorParameters,
                                int constraintCount)
                         throws LoaderException
Construct object TableRelationshipsReader with associated parameters.

Parameters:
tableName - is name of the table form which we retrieve data.
conn - is the named connection.
catalogName - is the name of the current database.
Method Detail

setPrimaryKeys

public static void setPrimaryKeys(java.lang.String[] primary_Keys)
This method sets the value of listPrimaryKeys parameters.

Parameters:
primary_Keys - is value of parameter.

getPrimaryKeys

public static java.lang.String[] getPrimaryKeys()
This method read the value of listPrimaryKeys parameters.

Returns:
value of parameter.

setIndexVariables

public static void setIndexVariables(java.lang.String[] index_Variables)
This method sets the value of listIndexVariables parameters.

Parameters:
index_Variables - is value of parameter.

getIndexVariables

public static java.lang.String[] getIndexVariables()
This method read the value of listIndexVariables parameters.

Returns:
value of parameter.

setForeignVariables

public static void setForeignVariables(java.lang.String[] foreign_Variables)
This method sets the value of listForeignVariables parameters.

Parameters:
foreign_Variables - is the value of parameter.

getForeignVariables

public static java.lang.String[] getForeignVariables()
This method read the value of listForeignVariables parameters.

Returns:
value of parameter.

getRelationshipsAttributes

public RelationshipsAttributes getRelationshipsAttributes()
This method read the value of RelationshipsAttributes parameters.

Returns:
references to RelationshipsAttributes objects.


Copyright © 2002-2007 Together - the Workgroup. All Rights Reserved.