|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBasicDBConnectionModelGenerator
This interface defines the basic functionality that
is needed to generate a DataBaseTable from a
connection.
This interface should not be implemented directly but through subinterfaces
that add an appropriate init method.
| Method Summary | |
|---|---|
DataBaseTable |
generateModel()
Generate the model from the connection |
java.lang.String |
getConnectionDriverClass()
Retrieve the driver class name for the JDBC connection |
java.lang.String |
getConnectionString()
Retrieve the connection String for the specific database |
java.lang.String |
getDefaultHost()
Retrieve the default name of the database host |
java.lang.String |
getDefaultPort()
Retrieve the default port number of the data base |
java.lang.String |
getDefaultUserName()
Retrieve the default user name for the data base |
int |
getRating()
This method rates the implementation. |
int |
getWorkload()
Defines how complex the generation of the model is |
boolean |
hasSchema()
Indicates if this database works through schemas |
void |
setDatabase(java.lang.String dbName)
Set the name of the database |
void |
setHost(java.lang.String host)
Set the name of the database host |
void |
setPassword(java.lang.String pwd)
Set the password for the database user |
void |
setPort(int port)
Set the port number of the database |
void |
setTableName(java.lang.String tableName)
Set the name of the table |
void |
setUserName(java.lang.String userName)
Set the name of the database user |
java.lang.String |
testConnection()
Test the connection to the database. |
| Method Detail |
|---|
java.lang.String testConnection()
DataBaseTable generateModel()
void setHost(java.lang.String host)
host - name of the hostvoid setPort(int port)
port - numbervoid setUserName(java.lang.String userName)
userName - name of the uservoid setPassword(java.lang.String pwd)
pwd - passwordvoid setDatabase(java.lang.String dbName)
dbName - database namevoid setTableName(java.lang.String tableName)
tableName - table namejava.lang.String getDefaultHost()
java.lang.String getDefaultPort()
java.lang.String getDefaultUserName()
int getRating()
int getWorkload()
boolean hasSchema()
java.lang.String getConnectionString()
java.lang.String getConnectionDriverClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||