本文整理汇总了Java中org.pentaho.di.core.database.DatabaseMeta.equals方法的典型用法代码示例。如果您正苦于以下问题:Java DatabaseMeta.equals方法的具体用法?Java DatabaseMeta.equals怎么用?Java DatabaseMeta.equals使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.database.DatabaseMeta
的用法示例。
在下文中一共展示了DatabaseMeta.equals方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: canFlipToNextPage
import org.pentaho.di.core.database.DatabaseMeta; //导入方法依赖的package包/类
public boolean canFlipToNextPage()
{
DatabaseMeta source = getSourceDatabase();
DatabaseMeta target = getTargetDatabase();
if (source==null && target==null)
{
setErrorMessage(Messages.getString("CopyTableWizardPage1.SourceAndTargetIsNull.DialogMessage")); //$NON-NLS-1$
return false;
}
else
if (source==null && target!=null)
{
setErrorMessage(Messages.getString("CopyTableWizardPage1.SourceIsNull.DialogMessage")); //$NON-NLS-1$
return false;
}
else
if (source!=null && target==null)
{
setErrorMessage(Messages.getString("CopyTableWizardPage1.TargetIsNull.DialogMessage")); //$NON-NLS-1$
return false;
}
else
if (source!=null && target!=null && source.equals(target))
{
setErrorMessage(Messages.getString("CopyTableWizardPage1.SourceAndTargetIsSame.DialogMessage")); //$NON-NLS-1$
return false;
}
else
{
setErrorMessage(null);
setMessage(Messages.getString("CopyTableWizardPage1.GoOnNext.DialogMessage")); //$NON-NLS-1$
return true;
}
}
示例2: canFlipToNextPage
import org.pentaho.di.core.database.DatabaseMeta; //导入方法依赖的package包/类
public boolean canFlipToNextPage()
{
DatabaseMeta source = getSourceDatabase();
DatabaseMeta target = getTargetDatabase();
if (source==null && target==null)
{
setErrorMessage("Select both the source and target database!");
return false;
}
else
if (source==null && target!=null)
{
setErrorMessage("Select the source database!");
return false;
}
else
if (source!=null && target==null)
{
setErrorMessage("Select the target database!");
return false;
}
else
if (source!=null && target!=null && source.equals(target))
{
setErrorMessage("The source and target database can't be the same!");
return false;
}
else
{
setErrorMessage(null);
setMessage("Select 'next' to proceed");
return true;
}
}
示例3: canFlipToNextPage
import org.pentaho.di.core.database.DatabaseMeta; //导入方法依赖的package包/类
public boolean canFlipToNextPage()
{
DatabaseMeta source = getSourceDatabase();
DatabaseMeta target = getTargetDatabase();
if (source==null && target==null)
{
setErrorMessage(BaseMessages.getString(PKG, "CopyTableWizardPage1.SourceAndTargetIsNull.DialogMessage")); //$NON-NLS-1$
return false;
}
else
if (source==null && target!=null)
{
setErrorMessage(BaseMessages.getString(PKG, "CopyTableWizardPage1.SourceIsNull.DialogMessage")); //$NON-NLS-1$
return false;
}
else
if (source!=null && target==null)
{
setErrorMessage(BaseMessages.getString(PKG, "CopyTableWizardPage1.TargetIsNull.DialogMessage")); //$NON-NLS-1$
return false;
}
else
if (source!=null && target!=null && source.equals(target))
{
setErrorMessage(BaseMessages.getString(PKG, "CopyTableWizardPage1.SourceAndTargetIsSame.DialogMessage")); //$NON-NLS-1$
return false;
}
else
{
setErrorMessage(null);
setMessage(BaseMessages.getString(PKG, "CopyTableWizardPage1.GoOnNext.DialogMessage")); //$NON-NLS-1$
return true;
}
}