ch.sahits.codegen.java.model
Interface IDBConnectionModelGenerator

All Superinterfaces:
IBasicDBConnectionModelGenerator
All Known Implementing Classes:
MySQLConnectionModelGenerator, OracleConnectorModelGenerator, SQLServerConnectionModelGenerator

public interface IDBConnectionModelGenerator
extends IBasicDBConnectionModelGenerator

This interface supplies the basic interface with an init method matching the needs to create a Java class

Since:
1.2.0
Author:
Andi Hotz

Method Summary
 void init(java.lang.String hostname, java.lang.String uname, java.lang.String pwd, java.lang.String database, java.lang.String tablename, java.lang.String packageName, java.lang.String className, int port, java.lang.String schema)
          Initializes the connection data
 
Methods inherited from interface ch.sahits.codegen.model.IBasicDBConnectionModelGenerator
generateModel, getConnectionDriverClass, getConnectionString, getDefaultHost, getDefaultPort, getDefaultUserName, getRating, getWorkload, hasSchema, setDatabase, setHost, setPassword, setPort, setTableName, setUserName, testConnection
 

Method Detail

init

void init(java.lang.String hostname,
          java.lang.String uname,
          java.lang.String pwd,
          java.lang.String database,
          java.lang.String tablename,
          java.lang.String packageName,
          java.lang.String className,
          int port,
          java.lang.String schema)
          throws java.sql.SQLException
Initializes the connection data

Parameters:
hostname - of the db eg. localhost
uname - user name to connect to the DB
pwd - password of the user
database - or schema of the table
tablename - table name
packageName - name of the package
className - name of the class
port - number
schema - name
Throws:
java.sql.SQLException - Connecting failed probably due to incorrect input