ch.sahits.codegen.model
Interface IGeneralDBConnectionModelGenerator

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

public interface IGeneralDBConnectionModelGenerator
extends IBasicDBConnectionModelGenerator

This interface supplies the IBasicDBConnectionModelGenerator interface with a init method for general non JAva specific code generation

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, 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,
          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
port - number
schema - name
Throws:
java.sql.SQLException - Connecting failed probably due to incorrect input