ch.sahits.codegen.extensions
Class InputDBParser

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

public final class InputDBParser
extends java.lang.Object

This class provides helper methods for the extension point ch.sahits.codegen.java.inputdbparser

Since:
0.9.2
Author:
Andi Hotz

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

Constructor Detail

InputDBParser

public InputDBParser()
Method Detail

getParser

public static IDBInputParser getParser(java.lang.String dbProduct)
Retrieve the IDBInputParser 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 SQL script parser or null if for the specified product no implementation is found.
See Also:
IDBInputParser

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