org.pentaho.di.repository
Interface RepositoryAttributeInterface

All Known Implementing Classes:
KettleDatabaseRepositoryJobAttribute, KettleDatabaseRepositoryTransAttribute

public interface RepositoryAttributeInterface

This 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
 boolean getAttributeBoolean(String code)
          Get a boolean attribute, if the attribute is not found, return false;
 long getAttributeInteger(String code)
          Get an integer attribute.
 String getAttributeString(String code)
          Get a string attribute.
 void setAttribute(String code, boolean value)
          Set a boolean attribute
 void setAttribute(String code, long value)
          Set an integer attribute
 void setAttribute(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