ch.sahits.codegen.extensions
Class InputDBConnection

java.lang.Object
  extended by ch.sahits.codegen.extensions.InputDBConnection

public final class InputDBConnection
extends java.lang.Object

This class encapsules the acces to the extension points of ch.sahits.codegen.java.inputdbconnection

Since:
0.9.2
Author:
Andi Hotz

Constructor Summary
InputDBConnection()
           
 
Method Summary
static java.lang.String[] getDataBaseProducts()
          Retrieve a list of all database products that have an implementation supplied by an extension point.
static IBasicDBConnectionModelGenerator getParser(java.lang.String dbProduct)
          Retrieve the IBasicDBConnectionModelGenerator from the extension point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputDBConnection

public InputDBConnection()
Method Detail

getParser

public static IBasicDBConnectionModelGenerator getParser(java.lang.String dbProduct)
Retrieve the IBasicDBConnectionModelGenerator from the extension point. If there are more than one implementation for one and the same database product registered, the one with the highest Ranking is choosen.

Parameters:
dbProduct - name of the database product
Returns:
Instance of an connection model generator or null if for the specified product no implementation is found.
See Also:
IBasicDBConnectionModelGenerator

getDataBaseProducts

public static java.lang.String[] getDataBaseProducts()
Retrieve a list of all database products that have an implementation supplied by an extension point.

Returns:
Array of all database products