Java Code Examples for org.pentaho.di.core.database.DatabaseMeta#getDatabaseInterface()

The following examples show how to use org.pentaho.di.core.database.DatabaseMeta#getDatabaseInterface() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseHiveDialect.java    From pentaho-metadata with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Determine if this dialect can be loaded in the current environment.
 *
 * @return True if the Hive Database Meta Plugin is registered with the Kettle environment
 */
public static boolean canLoad() {
  try {
    return DatabaseMeta.getDatabaseInterface( HIVE_DIALECT_TYPE ) != null;
  } catch ( KettleDatabaseException ex ) {
    return false;
  }
}
 
Example 2
Source File: IngresVectorwiseLoaderDialog.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
/**
 * Adds db connection text boxes for input
 *
 * @return the last control specified
 */
protected Control addDbConnectionInputs() {
  List<String> ibConnections = new ArrayList<String>();
  for ( DatabaseMeta dbMeta : transMeta.getDatabases() ) {
    if ( dbMeta.getDatabaseInterface() instanceof IngresDatabaseMeta ) {
      ibConnections.add( dbMeta.getName() );
    }
  }
  serverConnection =
    addStandardSelect( "Connection", wStepname, ibConnections.toArray( new String[ibConnections.size()] ) );

  return serverConnection;
}
 
Example 3
Source File: OpenERPObjectOutputData.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
public OpenERPObjectOutputData( DatabaseMeta databaseMeta ) throws KettleException {
  super();
  if ( !( databaseMeta.getDatabaseInterface() instanceof OpenERPDatabaseMeta ) ) {
    throw new KettleException( "A connection of type OPENERP is expected" );
  }
  helper = new OpenERPHelper( databaseMeta );
}
 
Example 4
Source File: OpenERPObjectDeleteData.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
public OpenERPObjectDeleteData( DatabaseMeta databaseMeta ) throws KettleException {
  super();
  if ( !( databaseMeta.getDatabaseInterface() instanceof OpenERPDatabaseMeta ) ) {
    throw new KettleException( "A connection of type OPENERP is expected" );
  }
  helper = new OpenERPHelper( databaseMeta );
}
 
Example 5
Source File: OpenERPObjectInputData.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
public OpenERPObjectInputData( DatabaseMeta databaseMeta ) throws KettleException {
  super();
  if ( !( databaseMeta.getDatabaseInterface() instanceof OpenERPDatabaseMeta ) ) {
    throw new KettleException( "A connection of type OPENERP is expected" );
  }
  helper = new OpenERPHelper( databaseMeta );
}
 
Example 6
Source File: PaloDimOutputData.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
public PaloDimOutputData( DatabaseMeta databaseMeta ) throws KettleException {
  super();
  if ( !( databaseMeta.getDatabaseInterface() instanceof PALODatabaseMeta ) ) {
    throw new KettleException( "A connection of type PALO is expected" );
  }

  // org.pentaho.di.core.logging.
  this.helper = new PaloHelper( databaseMeta, DefaultLogLevel.getLogLevel() );
}
 
Example 7
Source File: PaloDimInputData.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
public PaloDimInputData( DatabaseMeta databaseMeta ) throws KettleException {
  super();
  if ( !( databaseMeta.getDatabaseInterface() instanceof PALODatabaseMeta ) ) {
    throw new KettleException( "A connection of type PALO is expected" );
  }
  this.helper = new PaloHelper( databaseMeta, DefaultLogLevel.getLogLevel() );
}
 
Example 8
Source File: PaloCellInputData.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
public PaloCellInputData( DatabaseMeta databaseMeta ) throws KettleException {
  super();
  if ( !( databaseMeta.getDatabaseInterface() instanceof PALODatabaseMeta ) ) {
    throw new KettleException( "A connection of type PALO is expected" );
  }
  this.helper = new PaloHelper( databaseMeta, DefaultLogLevel.getLogLevel() );
}
 
Example 9
Source File: PaloCellOutputData.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
public PaloCellOutputData( DatabaseMeta databaseMeta ) throws KettleException {
  super();
  if ( !( databaseMeta.getDatabaseInterface() instanceof PALODatabaseMeta ) ) {
    throw new KettleException( "A connection of type PALO is expected" );
  }
  this.helper = new PaloHelper( databaseMeta, DefaultLogLevel.getLogLevel() );
}