erkka
Class Reference

java.lang.Object
  |
  +--erkka.Reference

public class Reference
extends java.lang.Object

Title:

Description: Reference is allways owned by table. It knows whice attribute owns it in own table and then the table and its attribute, whice line is connected to.

Copyright: Copyright (c) 2002

Company: University of Jyväskylä

Version:
1.0

Constructor Summary
Reference()
          constructor creates new Reference
 
Method Summary
 void findInformation(java.lang.String line)
          find all information about references
 java.lang.String getCascade()
           
 java.lang.String getTableTarget2()
           
 java.lang.String getTarget1Attribute()
           
 java.lang.String getTarget2Attribute()
           
 void setAttributes(java.lang.String attributeM, java.lang.String tableName, java.lang.String attribute1)
          Set line between tables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reference

public Reference()
constructor creates new Reference

Method Detail

getTarget1Attribute

public java.lang.String getTarget1Attribute()
Returns:
target1Attribute

getTableTarget2

public java.lang.String getTableTarget2()
Returns:
tableTarget2

getTarget2Attribute

public java.lang.String getTarget2Attribute()
Returns:
target2Attribute

getCascade

public java.lang.String getCascade()
Returns:
cascade

setAttributes

public void setAttributes(java.lang.String attributeM,
                          java.lang.String tableName,
                          java.lang.String attribute1)
Set line between tables

Parameters:
attributeM - String
tableName - String
attribute1 - String

findInformation

public void findInformation(java.lang.String line)
find all information about references

Parameters:
line - begins with foreignkeys name