当前位置: 首页>>代码示例>>Java>>正文


Java DatabaseExplorerDialog.setSplitSchemaAndTable方法代码示例

本文整理汇总了Java中org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog.setSplitSchemaAndTable方法的典型用法代码示例。如果您正苦于以下问题:Java DatabaseExplorerDialog.setSplitSchemaAndTable方法的具体用法?Java DatabaseExplorerDialog.setSplitSchemaAndTable怎么用?Java DatabaseExplorerDialog.setSplitSchemaAndTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog的用法示例。


在下文中一共展示了DatabaseExplorerDialog.setSplitSchemaAndTable方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr>=0)
	{
		DatabaseMeta inf = jobMeta.getDatabase(connr);
                       
		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, jobMeta.getDatabases());
		std.setSelectedSchema(wSchemaname.getText());
		std.setSelectedTable(wTablename.getText());
		std.setSplitSchemaAndTable(true);
		if (std.open() != null)
		{
			wTablename.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
		mb.setMessage(Messages.getString("JobMysqlBulkLoad.ConnectionError2.DialogMessage"));
		mb.setText(Messages.getString("System.Dialog.Error.Title"));
		mb.open(); 
	}                    
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:26,代码来源:JobEntryMysqlBulkLoadDialog.java

示例2: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
   	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr>=0)
	{
		DatabaseMeta inf = jobMeta.getDatabase(connr);
                       
		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, jobMeta.getDatabases());
		std.setSelectedSchema(wSchemaname.getText());
		std.setSelectedTable(wTablename.getText());
		std.setSplitSchemaAndTable(true);
		if (std.open() != null)
		{
			wTablename.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
		mb.setMessage(Messages.getString("JobEntryWaitForSQL.ConnectionError2.DialogMessage"));
		mb.setText(Messages.getString("System.Dialog.Error.Title"));
		mb.open(); 
	}    
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:26,代码来源:JobEntryWaitForSQLDialog.java

示例3: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
   	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr>=0)
	{
		DatabaseMeta inf = jobMeta.getDatabase(connr);
                       
		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, jobMeta.getDatabases());
		std.setSelectedSchema(wSchemaname.getText());
		std.setSelectedTable(wTablename.getText());
		std.setSplitSchemaAndTable(true);
		if (std.open() != null)
		{
			wTablename.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
		mb.setMessage(Messages.getString("JobEntryEvalTableContent.ConnectionError2.DialogMessage"));
		mb.setText(Messages.getString("System.Dialog.Error.Title"));
		mb.open(); 
	}    
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:26,代码来源:JobEntryEvalTableContentDialog.java

示例4: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr>=0)
	{
		DatabaseMeta inf = jobMeta.getDatabase(connr);
                       
		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, jobMeta.getDatabases());
		std.setSelectedSchema(wSchemaname.getText());
		std.setSelectedTable(wTablename.getText());
		std.setSplitSchemaAndTable(true);
		if (std.open() != null)
		{
			wTablename.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
		mb.setMessage(Messages.getString("JobMssqlBulkLoad.ConnectionError2.DialogMessage"));
		mb.setText(Messages.getString("System.Dialog.Error.Title"));
		mb.open(); 
	}                    
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:26,代码来源:JobEntryMssqlBulkLoadDialog.java

示例5: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr>=0)
	{
		DatabaseMeta inf = jobMeta.getDatabase(connr);
                       
		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, jobMeta.getDatabases());
		std.setSelectedTable(wTablename.getText());
		std.setSplitSchemaAndTable(true);
		if (std.open() != null)
		{
			wTablename.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
		mb.setMessage(Messages.getString("JobEntryColumnsExist.ConnectionError2.DialogMessage"));
		mb.setText(Messages.getString("System.Dialog.Error.Title"));
		mb.open(); 
	}
                   
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:26,代码来源:JobEntryColumnsExistDialog.java

示例6: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
	int connr = wConnection.getSelectionIndex();
       if (connr<0) return;
	DatabaseMeta inf = transMeta.getDatabase(connr);

	log.logDebug(toString(), Messages.getString("DimensionLookupDialog.Log.LookingAtConnection")+inf.toString()); //$NON-NLS-1$

	DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
       std.setSelectedSchema(wSchema.getText());
	std.setSelectedTable(wTable.getText());
       std.setSplitSchemaAndTable(true);
	if (std.open() != null)
	{
           wSchema.setText(Const.NVL(std.getSchemaName(), ""));
		wTable.setText(Const.NVL(std.getTableName(), ""));
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:19,代码来源:DimensionLookupDialog.java

示例7: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
    // New class: SelectTableDialog
    int connr = wConnection.getSelectionIndex();
    if (connr>=0)
    {
        DatabaseMeta inf = jobMeta.getDatabase(connr);
                    
        DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, jobMeta.getDatabases());
        std.setSelectedSchema(wSchemaname.getText());
        std.setSelectedTable(wTablename.getText());
        std.setSplitSchemaAndTable(true);
        if (std.open() != null)
        {
           // wSchemaname.setText(Const.NVL(std.getSchemaName(), ""));
            wTablename.setText(Const.NVL(std.getTableName(), ""));
        }
    }
    else
    {
        MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
        mb.setMessage(Messages.getString("JobMysqlBulkFile.ConnectionError2.DialogMessage"));
        mb.setText(Messages.getString("System.Dialog.Error.Title"));
        mb.open(); 
    }
                
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:28,代码来源:JobEntryMysqlBulkFileDialog.java

示例8: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
	DatabaseMeta inf = null;
	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr >= 0)
		inf = transMeta.getDatabase(connr);

	if (inf != null)
	{
		log.logDebug(toString(), Messages.getString("LucidDBBulkLoaderDialog.Log.LookingAtConnection") + inf.toString()); //$NON-NLS-1$

		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
           std.setSelectedSchema(wSchema.getText());
           std.setSelectedTable(wTable.getText());
           std.setSplitSchemaAndTable(true);
		if (std.open() != null)
		{
               wSchema.setText(Const.NVL(std.getSchemaName(), ""));
               wTable.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR);
		mb.setMessage(Messages.getString("LucidDBBulkLoaderDialog.InvalidConnection.DialogMessage")); //$NON-NLS-1$
		mb.setText(Messages.getString("LucidDBBulkLoaderDialog.InvalidConnection.DialogTitle")); //$NON-NLS-1$
		mb.open();
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:31,代码来源:LucidDBBulkLoaderDialog.java

示例9: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
	DatabaseMeta inf = null;
	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr >= 0)
		inf = transMeta.getDatabase(connr);

	if (inf != null)
	{
		if(log.isDebug()) log.logDebug(toString(), Messages.getString("InsertUpdateDialog.Log.LookingAtConnection") + inf.toString()); //$NON-NLS-1$

		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
           std.setSelectedSchema(wSchema.getText());
           std.setSelectedTable(wTable.getText());
           std.setSplitSchemaAndTable(true);
		if (std.open() != null)
		{
               wSchema.setText(Const.NVL(std.getSchemaName(), ""));
               wTable.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR);
		mb.setMessage(Messages.getString("InsertUpdateDialog.InvalidConnection.DialogMessage")); //$NON-NLS-1$
		mb.setText(Messages.getString("InsertUpdateDialog.InvalidConnection.DialogTitle")); //$NON-NLS-1$
		mb.open();
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:31,代码来源:InsertUpdateDialog.java

示例10: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
	DatabaseMeta inf = null;
	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr >= 0) inf = transMeta.getDatabase(connr);

	if (inf != null)
	{
		log.logDebug(toString(), Messages.getString("CombinationLookupDialog.Log.LookingAtConnection", inf.toString()));

		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
           std.setSelectedSchema(wSchema.getText());
		std.setSelectedTable(wTable.getText());
           std.setSplitSchemaAndTable(true);
		if (std.open() != null)
		{
               wSchema.setText(Const.NVL(std.getSchemaName(), ""));
			wTable.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR);
		mb.setMessage(Messages.getString("CombinationLookupDialog.ConnectionError2.DialogMessage"));
		mb.setText(Messages.getString("System.Dialog.Error.Title"));
		mb.open();
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:30,代码来源:CombinationLookupDialog.java

示例11: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr>=0)
	{
		DatabaseMeta inf = transMeta.getDatabase(connr);
					
		log.logDebug(toString(), Messages.getString("SQLFileOutputDialog.Log.LookingAtConnection", inf.toString()));
	
		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
           std.setSelectedSchema(wSchema.getText());
           std.setSelectedTable(wTable.getText());
           std.setSplitSchemaAndTable(true);
		if (std.open() != null)
		{
               wSchema.setText(Const.NVL(std.getSchemaName(), ""));
               wTable.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
		mb.setMessage(Messages.getString("SQLFileOutputDialog.ConnectionError2.DialogMessage"));
		mb.setText(Messages.getString("System.Dialog.Error.Title"));
		mb.open(); 
	}
				
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:30,代码来源:SQLFileOutputDialog.java

示例12: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
	DatabaseMeta inf=null;
	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr>=0) inf = transMeta.getDatabase(connr);
	
	if (inf!=null)
	{
		log.logDebug(toString(), Messages.getString("DatabaseLookupDialog.Log.LookingAtConnection")+inf.toString()); //$NON-NLS-1$
	
		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
           std.setSplitSchemaAndTable(true);
           std.setSelectedSchema(wSchema.getText());
		std.setSelectedTable(wTable.getText());
		if (std.open() != null)
		{
               wSchema.setText(Const.NVL(std.getSchemaName(), ""));
			wTable.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
		mb.setMessage(Messages.getString("DatabaseLookupDialog.InvalidConnection.DialogMessage")); //$NON-NLS-1$
		mb.setText(Messages.getString("DatabaseLookupDialog.InvalidConnection.DialogTitle")); //$NON-NLS-1$
		mb.open(); 
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:30,代码来源:DatabaseLookupDialog.java

示例13: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr>=0)
	{
		DatabaseMeta inf = transMeta.getDatabase(connr);
					
		log.logDebug(toString(), Messages.getString("TableOutputDialog.Log.LookingAtConnection", inf.toString()));
	
		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
           std.setSelectedSchema(wSchema.getText());
           std.setSelectedTable(wTable.getText());
           std.setSplitSchemaAndTable(true);
		if (std.open() != null)
		{
               wSchema.setText(Const.NVL(std.getSchemaName(), ""));
               wTable.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
		mb.setMessage(Messages.getString("TableOutputDialog.ConnectionError2.DialogMessage"));
		mb.setText(Messages.getString("System.Dialog.Error.Title"));
		mb.open(); 
	}
				
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:30,代码来源:TableOutputDialog.java

示例14: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
	DatabaseMeta inf = null;
	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr >= 0)
		inf = transMeta.getDatabase(connr);

	if (inf != null)
	{
		log.logDebug(toString(), Messages.getString("PGBulkLoaderDialog.Log.LookingAtConnection") + inf.toString()); //$NON-NLS-1$

		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
           std.setSelectedSchema(wSchema.getText());
           std.setSelectedTable(wTable.getText());
           std.setSplitSchemaAndTable(true);
		if (std.open() != null)
		{
               wSchema.setText(Const.NVL(std.getSchemaName(), ""));
               wTable.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR);
		mb.setMessage(Messages.getString("PGBulkLoaderDialog.InvalidConnection.DialogMessage")); //$NON-NLS-1$
		mb.setText(Messages.getString("PGBulkLoaderDialog.InvalidConnection.DialogTitle")); //$NON-NLS-1$
		mb.open();
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:31,代码来源:PGBulkLoaderDialog.java

示例15: getTableName

import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
	DatabaseMeta inf=null;
	// New class: SelectTableDialog
	int connr = wConnection.getSelectionIndex();
	if (connr>=0) inf = transMeta.getDatabase(connr);
	
	if (inf!=null)
	{
		log.logDebug(toString(), Messages.getString("DeleteDialog.Log.LookingAtConnection")+inf.toString()); //$NON-NLS-1$
	
		DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
           std.setSelectedSchema(wSchema.getText());
		std.setSelectedTable(wTable.getText());
           std.setSplitSchemaAndTable(true);
		if (std.open() != null)
		{
               wSchema.setText(Const.NVL(std.getSchemaName(), ""));
               wTable.setText(Const.NVL(std.getTableName(), ""));
		}
	}
	else
	{
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
		mb.setMessage(Messages.getString("DeleteDialog.InvalidConnection.DialogMessage")); //$NON-NLS-1$
		mb.setText(Messages.getString("DeleteDialog.InvalidConnection.DialogTitle")); //$NON-NLS-1$
		mb.open(); 
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:30,代码来源:DeleteDialog.java


注:本文中的org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog.setSplitSchemaAndTable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。