com.finalist.jaggenerator
Class Database

java.lang.Object
  extended bycom.finalist.jaggenerator.Database

public class Database
extends java.lang.Object

A bean that models a database supported by JAG.

Author:
Michael O'Connor - Finalist IT Group

Field Summary
static java.lang.String ENTER_DB_NAME
           
 
Constructor Summary
Database()
           
 
Method Summary
 java.lang.String getDbName()
          Gets the human-friendly name of the database.
 java.lang.String getDriverClass()
          Gets the fully-qualified class name of the JDBC driver class used to access this database.
 java.lang.String getFilename()
          Gets the name (not the full file location) of the file containing the JDBC driver for this database.
 java.lang.String getTypeMapping()
          Gets the name of the 'type-mapping' needed by the application server to know how to map this database's proprietary SQL functions and datatypes to Java.
 void setDbName(java.lang.String dbName)
           
 void setDriverClass(java.lang.String driverClass)
           
 void setFilename(java.lang.String filename)
           
 void setTypeMapping(java.lang.String typeMapping)
           
 java.lang.String toString()
          Display just the database name (used to represent the database in the select drop down list).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENTER_DB_NAME

public static final java.lang.String ENTER_DB_NAME
See Also:
Constant Field Values
Constructor Detail

Database

public Database()
Method Detail

getDbName

public java.lang.String getDbName()
Gets the human-friendly name of the database.

Returns:

setDbName

public void setDbName(java.lang.String dbName)

getDriverClass

public java.lang.String getDriverClass()
Gets the fully-qualified class name of the JDBC driver class used to access this database.

Returns:

setDriverClass

public void setDriverClass(java.lang.String driverClass)

getTypeMapping

public java.lang.String getTypeMapping()
Gets the name of the 'type-mapping' needed by the application server to know how to map this database's proprietary SQL functions and datatypes to Java.

Returns:

setTypeMapping

public void setTypeMapping(java.lang.String typeMapping)

getFilename

public java.lang.String getFilename()
Gets the name (not the full file location) of the file containing the JDBC driver for this database. NOTE: all instances of the character '\' (backslash) will be replaced by a forward slash!

Returns:

setFilename

public void setFilename(java.lang.String filename)

toString

public java.lang.String toString()
Display just the database name (used to represent the database in the select drop down list).

Returns:
just the name.


Copyright © 2003-2005 SourceForge. All Rights Reserved.