org.codehaus.modello.generator.database.model

Class Database


public class Database
extends java.lang.Object

Models a database.
Version:
$Id: Database.java 508 2005-10-25 00:37:08Z brett $
Authors:
John Marshall/Connectria
Matthew Hawthorne

Constructor Summary

Database()

Method Summary

void
addTable(Table table)
Table
findTable(String name)
Finds the table with the specified name, using case insensitive matching.
String
getName()
Table
getTable(int index)
List
getTables()
String
getVersion()
void
setIdMethod(String idMethod)
void
setName(String name)
void
setTable(int index, Table table)
void
setVersion(String ver)
String
toString()

Constructor Details

Database

public Database()

Method Details

addTable

public void addTable(Table table)

findTable

public Table findTable(String name)
Finds the table with the specified name, using case insensitive matching. Note that this method is not called getTable(String) to avoid introspection problems.

getName

public String getName()

getTable

public Table getTable(int index)

getTables

public List getTables()

getVersion

public String getVersion()

setIdMethod

public void setIdMethod(String idMethod)

setName

public void setName(String name)

setTable

public void setTable(int index,
                     Table table)

setVersion

public void setVersion(String ver)

toString

public String toString()