Package org.pentaho.di.imp.rules
Class DatabaseConfigurationImportRule
- java.lang.Object
-
- org.pentaho.di.imp.rules.BaseImportRule
-
- org.pentaho.di.imp.rules.DatabaseConfigurationImportRule
-
- All Implemented Interfaces:
Cloneable
,ImportRuleInterface
public class DatabaseConfigurationImportRule extends BaseImportRule implements ImportRuleInterface
-
-
Field Summary
-
Fields inherited from class org.pentaho.di.imp.rules.BaseImportRule
XML_TAG
-
-
Constructor Summary
Constructors Constructor Description DatabaseConfigurationImportRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportRuleInterface
clone()
org.pentaho.di.core.database.DatabaseMeta
getDatabaseMeta()
String
getXML()
boolean
isUnique()
void
loadXML(Node ruleNode)
void
setDatabaseMeta(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
List<ImportValidationFeedback>
verifyRule(Object subject)
Validate the rule against a subject (transformation, job, database, ...)-
Methods inherited from class org.pentaho.di.imp.rules.BaseImportRule
getCompositeClassName, getId, isEnabled, setEnabled, setId, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pentaho.di.imp.rule.ImportRuleInterface
getCompositeClassName, getId, isEnabled, setEnabled, setId
-
-
-
-
Method Detail
-
isUnique
public boolean isUnique()
- Specified by:
isUnique
in interfaceImportRuleInterface
- Overrides:
isUnique
in classBaseImportRule
- Returns:
- true if only one rule is needed in a whole set of rules. Adding another would not help. Returns false in case you can add this rule multiple times with different settings.
-
clone
public ImportRuleInterface clone()
- Specified by:
clone
in interfaceImportRuleInterface
- Overrides:
clone
in classBaseImportRule
-
verifyRule
public List<ImportValidationFeedback> verifyRule(Object subject)
Description copied from interface:ImportRuleInterface
Validate the rule against a subject (transformation, job, database, ...)- Specified by:
verifyRule
in interfaceImportRuleInterface
- Specified by:
verifyRule
in classBaseImportRule
- Parameters:
subject
- The subject to validate against- Returns:
- The feedback list consists of a series of approvals and/or warnings and/or errors.
-
getXML
public String getXML()
- Specified by:
getXML
in interfaceImportRuleInterface
- Overrides:
getXML
in classBaseImportRule
-
loadXML
public void loadXML(Node ruleNode) throws org.pentaho.di.core.exception.KettleException
- Specified by:
loadXML
in interfaceImportRuleInterface
- Overrides:
loadXML
in classBaseImportRule
- Throws:
org.pentaho.di.core.exception.KettleException
-
getDatabaseMeta
public org.pentaho.di.core.database.DatabaseMeta getDatabaseMeta()
- Returns:
- the databaseMeta
-
setDatabaseMeta
public void setDatabaseMeta(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
- Parameters:
databaseMeta
- the databaseMeta to set
-
-