org.apache.turbine.torque.engine.database.model
Class IdMethodParameter

java.lang.Object
  |
  +--org.apache.turbine.torque.engine.database.model.IdMethodParameter

public class IdMethodParameter
extends java.lang.Object

A Class for information related to an id-method

Version:
$Id$
Author:
John McNally

Field Summary
private  java.lang.String name
           
private  Table parentTable
           
private  java.lang.String value
           
 
Constructor Summary
IdMethodParameter()
          Default Constructor
 
Method Summary
 java.lang.String getName()
          Get the parameter name
 Table getTable()
          Get the parent Table of the id method
 java.lang.String getTableName()
          Returns the Name of the table the id method is in
 java.lang.String getValue()
          Get the parameter value
 void loadFromXML(org.xml.sax.Attributes attrib)
          Imports foreign key from an XML specification
 void setName(java.lang.String name)
          Set the parameter name
 void setTable(Table parent)
          Set the parent Table of the id method
 void setValue(java.lang.String value)
          Set the parameter value
 java.lang.String toString()
          String representation of the foreign key.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

name

private java.lang.String name

value

private java.lang.String value

parentTable

private Table parentTable
Constructor Detail

IdMethodParameter

public IdMethodParameter()
Default Constructor
Method Detail

loadFromXML

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

getName

public java.lang.String getName()
Get the parameter name

setName

public void setName(java.lang.String name)
Set the parameter name

getValue

public java.lang.String getValue()
Get the parameter value

setValue

public void setValue(java.lang.String value)
Set the parameter value

setTable

public void setTable(Table parent)
Set the parent Table of the id method

getTable

public Table getTable()
Get the parent Table of the id method

getTableName

public java.lang.String getTableName()
Returns the Name of the table the id method is in

toString

public java.lang.String toString()
String representation of the foreign key. This is an xml representation.
Overrides:
toString in class java.lang.Object


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.