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

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

Deprecated. use turbine-torque

public class Database
extends java.lang.Object

A class for holding application data structures.

Version:
$Id: Database.java,v 1.3 2002/02/26 22:15:43 fedor Exp $
Author:
John McNally,
Field Summary
private  java.lang.String baseClass
          Deprecated.  
private  java.lang.String basePeer
          Deprecated.  
private  Column curColumn
          Deprecated.  
private  AppData dbParent
          Deprecated.  
private  java.lang.String defaultIdMethod
          Deprecated.  
private  java.lang.String name
          Deprecated.  
private  java.lang.String pkg
          Deprecated.  
private  java.util.List tableList
          Deprecated.  
private  java.util.Hashtable tablesByJavaName
          Deprecated.  
private  java.util.Hashtable tablesByName
          Deprecated.  
 
Constructor Summary
Database()
          Deprecated. Default Constructor
 
Method Summary
 Table addTable(org.xml.sax.AttributeList attrib)
          Deprecated. An utility method to add a new table from an xml attribute.
 void addTable(Table tbl)
          Deprecated. Add a table to the vector and sets the Database property to this Database
 AppData getAppData()
          Deprecated. Get the parent of the table
 java.lang.String getBaseClass()
          Deprecated. Get the value of baseClass.
 java.lang.String getBasePeer()
          Deprecated. Get the value of basePeer.
 java.lang.String getDefaultIdMethod()
          Deprecated. Get the value of defaultIdMethod.
 java.lang.String getName()
          Deprecated. Get the name of the Database
 java.lang.String getPackage()
          Deprecated. Get the value of package.
 Table getTable(java.lang.String name)
          Deprecated. Return the table with the specified name.
 Table getTableByJavaName(java.lang.String javaName)
          Deprecated. Return the table with the specified javaName.
 Table[] getTables()
          Deprecated. Return an array of all tables
 void loadFromXML(org.xml.sax.AttributeList attrib)
          Deprecated. Load the database object from an xml tag.
 void setAppData(AppData parent)
          Deprecated. Set the parent of the database
 void setBaseClass(java.lang.String v)
          Deprecated. Set the value of baseClass.
 void setBasePeer(java.lang.String v)
          Deprecated. Set the value of basePeer.
 void setDefaultIdMethod(java.lang.String v)
          Deprecated. Set the value of defaultIdMethod.
 void setName(java.lang.String newName)
          Deprecated. Set the name of the Database
 void setPackage(java.lang.String v)
          Deprecated. Set the value of package.
 java.lang.String toString()
          Deprecated. Creats a string representation of this Database.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

tableList

private java.util.List tableList
Deprecated. 

curColumn

private Column curColumn
Deprecated. 

name

private java.lang.String name
Deprecated. 

pkg

private java.lang.String pkg
Deprecated. 

baseClass

private java.lang.String baseClass
Deprecated. 

basePeer

private java.lang.String basePeer
Deprecated. 

defaultIdMethod

private java.lang.String defaultIdMethod
Deprecated. 

dbParent

private AppData dbParent
Deprecated. 

tablesByName

private java.util.Hashtable tablesByName
Deprecated. 

tablesByJavaName

private java.util.Hashtable tablesByJavaName
Deprecated. 
Constructor Detail

Database

public Database()
Deprecated. 
Default Constructor
Method Detail

loadFromXML

public void loadFromXML(org.xml.sax.AttributeList attrib)
Deprecated. 
Load the database object from an xml tag.

getName

public java.lang.String getName()
Deprecated. 
Get the name of the Database

setName

public void setName(java.lang.String newName)
Deprecated. 
Set the name of the Database

getPackage

public java.lang.String getPackage()
Deprecated. 
Get the value of package.
Returns:
value of package.

setPackage

public void setPackage(java.lang.String v)
Deprecated. 
Set the value of package.
Parameters:
v - Value to assign to package.

getBaseClass

public java.lang.String getBaseClass()
Deprecated. 
Get the value of baseClass.
Returns:
value of baseClass.

setBaseClass

public void setBaseClass(java.lang.String v)
Deprecated. 
Set the value of baseClass.
Parameters:
v - Value to assign to baseClass.

getBasePeer

public java.lang.String getBasePeer()
Deprecated. 
Get the value of basePeer.
Returns:
value of basePeer.

setBasePeer

public void setBasePeer(java.lang.String v)
Deprecated. 
Set the value of basePeer.
Parameters:
v - Value to assign to basePeer.

getDefaultIdMethod

public java.lang.String getDefaultIdMethod()
Deprecated. 
Get the value of defaultIdMethod.
Returns:
value of defaultIdMethod.

setDefaultIdMethod

public void setDefaultIdMethod(java.lang.String v)
Deprecated. 
Set the value of defaultIdMethod.
Parameters:
v - Value to assign to defaultIdMethod.

getTables

public Table[] getTables()
Deprecated. 
Return an array of all tables

getTable

public Table getTable(java.lang.String name)
Deprecated. 
Return the table with the specified name.
Returns:
A Table object. If it does not exist it returns null

getTableByJavaName

public Table getTableByJavaName(java.lang.String javaName)
Deprecated. 
Return the table with the specified javaName.
Returns:
A Table object. If it does not exist it returns null

addTable

public Table addTable(org.xml.sax.AttributeList attrib)
Deprecated. 
An utility method to add a new table from an xml attribute.

addTable

public void addTable(Table tbl)
Deprecated. 
Add a table to the vector and sets the Database property to this Database

setAppData

public void setAppData(AppData parent)
Deprecated. 
Set the parent of the database

getAppData

public AppData getAppData()
Deprecated. 
Get the parent of the table

toString

public java.lang.String toString()
Deprecated. 
Creats a string representation of this Database. The representation is given in xml format.
Overrides:
toString in class java.lang.Object


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