org.apache.torque.engine.database.model
Class Inheritance

java.lang.Object
  extended byorg.apache.torque.engine.database.model.Inheritance

public class Inheritance
extends java.lang.Object

A Class for information regarding possible objects representing a table

Version:
$Id: Inheritance.java,v 1.1 2003/02/10 13:20:58 mpoeschl Exp $
Author:
John McNally

Field Summary
private  java.lang.String ancestor
           
private  java.lang.String className
           
private  java.lang.String key
           
private  Column parent
           
 
Constructor Summary
Inheritance()
           
 
Method Summary
 java.lang.String getAncestor()
          Get the value of ancestor.
 java.lang.String getClassName()
          Get the value of className.
 Column getColumn()
          Get the value of parent.
 java.lang.String getKey()
          Get the value of key.
 void loadFromXML(org.xml.sax.Attributes attrib)
          Imports foreign key from an XML specification
 void setAncestor(java.lang.String v)
          Set the value of ancestor.
 void setClassName(java.lang.String v)
          Set the value of className.
 void setColumn(Column v)
          Set the value of parent.
 void setKey(java.lang.String v)
          Set the value of key.
 java.lang.String toString()
          String representation of the foreign key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

private java.lang.String key

className

private java.lang.String className

ancestor

private java.lang.String ancestor

parent

private Column parent
Constructor Detail

Inheritance

public Inheritance()
Method Detail

loadFromXML

public void loadFromXML(org.xml.sax.Attributes attrib)
Imports foreign key from an XML specification

Parameters:
attrib - the xml attributes

getKey

public java.lang.String getKey()
Get the value of key.

Returns:
value of key.

setKey

public void setKey(java.lang.String v)
Set the value of key.

Parameters:
v - Value to assign to key.

getColumn

public Column getColumn()
Get the value of parent.

Returns:
value of parent.

setColumn

public void setColumn(Column v)
Set the value of parent.

Parameters:
v - Value to assign to parent.

getClassName

public java.lang.String getClassName()
Get the value of className.

Returns:
value of className.

setClassName

public void setClassName(java.lang.String v)
Set the value of className.

Parameters:
v - Value to assign to className.

getAncestor

public java.lang.String getAncestor()
Get the value of ancestor.

Returns:
value of ancestor.

setAncestor

public void setAncestor(java.lang.String v)
Set the value of ancestor.

Parameters:
v - Value to assign to ancestor.

toString

public java.lang.String toString()
String representation of the foreign key. This is an xml representation.

Returns:
string representation in xml


Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.