本文整理匯總了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;
}
}