Package org.pentaho.di.core.database

Examples of org.pentaho.di.core.database.GenericDatabaseMeta


  private static DatabaseInterface mapTypeFromDriver(final String driverClass)
  {
    if (driverClass == null)
    {
      return new GenericDatabaseMeta();
    }

    final DatabaseInterface[] interfaces = DatabaseMeta.getDatabaseInterfaces();
    for (int i = 0; i < interfaces.length; i++)
    {
      final DatabaseInterface dbi = interfaces[i];
      final int[] accessTypeList = dbi.getAccessTypeList();
      for (int j = 0; j < accessTypeList.length; j++)
      {
        final int al = accessTypeList[j];
        if (al != DatabaseMeta.TYPE_ACCESS_ODBC)
        {
          dbi.setAccessType(al);
          if (driverClass.equals(dbi.getDriverClass()))
          {
            return dbi;
          }
        }
      }
    }

    return new GenericDatabaseMeta();
  }
View Full Code Here


  private static DatabaseInterface mapTypeFromDriver(final String driverClass)
  {
    if (driverClass == null)
    {
      return new GenericDatabaseMeta();
    }

    final DatabaseInterface[] interfaces = DatabaseMeta.getDatabaseInterfaces();
    for (int i = 0; i < interfaces.length; i++)
    {
      final DatabaseInterface dbi = interfaces[i];
      final int[] accessTypeList = dbi.getAccessTypeList();
      for (int j = 0; j < accessTypeList.length; j++)
      {
        final int al = accessTypeList[j];
        if (al != DatabaseMeta.TYPE_ACCESS_ODBC)
        {
          dbi.setAccessType(al);
          if (driverClass.equals(dbi.getDriverClass()))
          {
            return dbi;
          }
        }
      }
    }

    return new GenericDatabaseMeta();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.di.core.database.GenericDatabaseMeta

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.