org.javagen.agile.db.model
Class Database

java.lang.Object
  extended by org.javagen.agile.core.model.AbstractModel
      extended by org.javagen.agile.db.model.Database
All Implemented Interfaces:
Serializable, ContextHolder, Model

public class Database
extends AbstractModel

See Also:
Serialized Form

Field Summary
protected  String catalog
           
static String DEFAULT_MODEL_TYPE
           
protected  String schema
           
 
Fields inherited from class org.javagen.agile.core.model.AbstractModel
childModels, context, id, modelType, name, parentModel
 
Constructor Summary
Database()
           
Database(String name)
           
 
Method Summary
 Table addTable(String name, Boolean linkTable)
           
 void addTable(Table table)
           
 void copyTo(Model targetModel)
          Copy non-null properties into target model instance.
 Table createTable()
           
 String getCatalog()
           
 String getSchema()
           
 List<Table> getTables()
           
 Table lookupTable(String name)
           
 void setCatalog(String catalog)
           
 void setSchema(String schema)
           
 
Methods inherited from class org.javagen.agile.core.model.AbstractModel
addChildModel, allOwnedModels, equals, get, getChildModels, getContext, getId, getModelType, getName, getParentModel, lookupChildByName, put, setChildModels, setContext, setId, setModelType, setName, setParentModel, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_MODEL_TYPE

public static final String DEFAULT_MODEL_TYPE
See Also:
Constant Field Values

catalog

protected String catalog

schema

protected String schema
Constructor Detail

Database

public Database()

Database

public Database(String name)
Method Detail

copyTo

public void copyTo(Model targetModel)
Description copied from interface: Model
Copy non-null properties into target model instance. Child values are generally not copied. Used in conjunction with XML serialization to allow individual model instances to be custimized.

Specified by:
copyTo in interface Model
Overrides:
copyTo in class AbstractModel
Parameters:
targetModel - model to set properties on

createTable

public Table createTable()

addTable

public Table addTable(String name,
                      Boolean linkTable)

lookupTable

public Table lookupTable(String name)

getTables

public List<Table> getTables()

addTable

public void addTable(Table table)

getSchema

public String getSchema()

setSchema

public void setSchema(String schema)

getCatalog

public String getCatalog()

setCatalog

public void setCatalog(String catalog)


Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.