本文整理汇总了Java中org.pentaho.di.core.database.DatabaseMeta.getDatabaseInterface方法的典型用法代码示例。如果您正苦于以下问题:Java DatabaseMeta.getDatabaseInterface方法的具体用法?Java DatabaseMeta.getDatabaseInterface怎么用?Java DatabaseMeta.getDatabaseInterface使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.database.DatabaseMeta
的用法示例。
在下文中一共展示了DatabaseMeta.getDatabaseInterface方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addDbConnectionInputs
import org.pentaho.di.core.database.DatabaseMeta; //导入方法依赖的package包/类
/**
* 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;
}
示例2: addDbConnectionInputs
import org.pentaho.di.core.database.DatabaseMeta; //导入方法依赖的package包/类
/**
* 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 MySQLDatabaseMeta || dbMeta.getDatabaseInterface() instanceof InfobrightDatabaseMeta) {
ibConnections.add(dbMeta.getName());
}
}
serverConnection = addStandardSelect(BaseMessages.getString(PKG, "InfobrightLoaderDialog.Connection.Label"), wStepname, ibConnections.toArray(new String[ibConnections.size()]));
return serverConnection;
}
示例3: selectSAPR3Databases
import org.pentaho.di.core.database.DatabaseMeta; //导入方法依赖的package包/类
/**
* Select the SAP ERP databases in the List of databases.
* @param databases All the databases
* @return SAP ERP databases in a List of databases.
*/
public static final List<DatabaseMeta> selectSAPR3Databases(List<DatabaseMeta> databases)
{
List<DatabaseMeta> sap = new ArrayList<DatabaseMeta>();
for (DatabaseMeta db : databases)
{
if (db.getDatabaseInterface() instanceof SAPR3DatabaseMeta) {
sap.add(db);
}
}
return sap;
}