org.codehaus.modello.generator.database.model

Class Database

public class Database extends Object

Models a database.

Version: $Id: Database.java 508 2005-10-25 00:37:08Z brett $

Author: John Marshall/Connectria Matthew Hawthorne

Constructor Summary
Database()
Method Summary
voidaddTable(Table table)
TablefindTable(String name)
Finds the table with the specified name, using case insensitive matching.
StringgetName()
TablegetTable(int index)
ListgetTables()
StringgetVersion()
voidsetIdMethod(String idMethod)
voidsetName(String name)
voidsetTable(int index, Table table)
voidsetVersion(String ver)
StringtoString()

Constructor Detail

Database

public Database()

Method Detail

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()
Copyright © 2001-2008 Codehaus. All Rights Reserved.