com.wakaleo.schemaspy.util
Class JDBCHelper

java.lang.Object
  extended by com.wakaleo.schemaspy.util.JDBCHelper

public class JDBCHelper
extends Object

A utilities class for the SchemaSpy plugin. Tries to guess the right SchemaSpy database type configuration value using a JDBC URL.

Author:
john

Constructor Summary
JDBCHelper()
          Creates a new instance of JDBCHelper.
 
Method Summary
 String extractDatabaseType(String jdbcUrl)
          Find the matching SchemaSpy database type from a JDBC URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCHelper

public JDBCHelper()
Creates a new instance of JDBCHelper.

Method Detail

extractDatabaseType

public final String extractDatabaseType(String jdbcUrl)
Find the matching SchemaSpy database type from a JDBC URL. If none match, null is returned.

Parameters:
jdbcUrl - a valid JDBC url for the target database
Returns:
the type of the database for this JDBC URL


Copyright © 2007-2010. All Rights Reserved.