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

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

public class AppData
extends java.lang.Object

A class for holding application data structures.

Version:
$Id$
Author:
John McNally

Field Summary
private  java.util.List dbList
           
 
Constructor Summary
AppData()
          Default Constructor
 
Method Summary
 Database addDatabase(org.xml.sax.Attributes attrib)
          An utility method to add a new database from an xml attribute.
 void addDatabase(Database db)
          Add a database to the vector and sets the AppData property to this AppData
 Database getDatabase(java.lang.String name)
          Return the database with the specified name.
 Database[] getDatabases()
          Return an array of all databases
 boolean getMultipleDatabases()
           
 java.lang.String toString()
          Creats a string representation of this AppData.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

dbList

private java.util.List dbList
Constructor Detail

AppData

public AppData()
Default Constructor
Method Detail

getDatabases

public Database[] getDatabases()
Return an array of all databases

getMultipleDatabases

public boolean getMultipleDatabases()

getDatabase

public Database getDatabase(java.lang.String name)
Return the database with the specified name.
Returns:
A Database object. If it does not exist it returns null

addDatabase

public Database addDatabase(org.xml.sax.Attributes attrib)
An utility method to add a new database from an xml attribute.

addDatabase

public void addDatabase(Database db)
Add a database to the vector and sets the AppData property to this AppData

toString

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


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