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
-
Field Summary
Fields inherited from class org.pentaho.di.imp.rules.BaseImportRule
XML_TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()org.pentaho.di.core.database.DatabaseMetagetXML()booleanisUnique()voidvoidsetDatabaseMeta(org.pentaho.di.core.database.DatabaseMeta databaseMeta) 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, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.pentaho.di.imp.rule.ImportRuleInterface
getCompositeClassName, getId, isEnabled, setEnabled, setId
-
Constructor Details
-
DatabaseConfigurationImportRule
public DatabaseConfigurationImportRule()
-
-
Method Details
-
isUnique
public boolean isUnique()- Specified by:
isUniquein interfaceImportRuleInterface- Overrides:
isUniquein 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
- Specified by:
clonein interfaceImportRuleInterface- Overrides:
clonein classBaseImportRule
-
verifyRule
Description copied from interface:ImportRuleInterfaceValidate the rule against a subject (transformation, job, database, ...)- Specified by:
verifyRulein interfaceImportRuleInterface- Specified by:
verifyRulein 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
- Specified by:
getXMLin interfaceImportRuleInterface- Overrides:
getXMLin classBaseImportRule
-
loadXML
- Specified by:
loadXMLin interfaceImportRuleInterface- Overrides:
loadXMLin 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
-