Package org.pentaho.di.repository
Interface RepositoryAttributeInterface
-
public interface RepositoryAttributeInterfaceThis interface allows you to pass a simple interface to an object to allow it to store or load itself from or to any type of repository in a generic fashion.- Author:
- matt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetAttributeBoolean(String code)Get a boolean attribute, if the attribute is not found, return false;longgetAttributeInteger(String code)Get an integer attribute.StringgetAttributeString(String code)Get a string attribute.voidsetAttribute(String code, boolean value)Set a boolean attributevoidsetAttribute(String code, long value)Set an integer attributevoidsetAttribute(String code, String value)Set a String attribute
-
-
-
Method Detail
-
setAttribute
void setAttribute(String code, String value) throws KettleException
Set a String attribute- Parameters:
code-value-- Throws:
KettleException
-
getAttributeString
String getAttributeString(String code) throws KettleException
Get a string attribute. If the attribute is not found, return null- Parameters:
code-- Returns:
- Throws:
KettleException
-
setAttribute
void setAttribute(String code, boolean value) throws KettleException
Set a boolean attribute- Parameters:
code-value-- Throws:
KettleException
-
getAttributeBoolean
boolean getAttributeBoolean(String code) throws KettleException
Get a boolean attribute, if the attribute is not found, return false;- Parameters:
code-- Returns:
- Throws:
KettleException
-
setAttribute
void setAttribute(String code, long value) throws KettleException
Set an integer attribute- Parameters:
code-value-- Throws:
KettleException
-
getAttributeInteger
long getAttributeInteger(String code) throws KettleException
Get an integer attribute. If the attribute is not found, return 0;- Parameters:
code-- Returns:
- Throws:
KettleException
-
-