Class AbstractRepository

java.lang.Object
org.pentaho.di.repository.AbstractRepository
All Implemented Interfaces:
Repository
Direct Known Subclasses:
KettleDatabaseRepositoryBase, KettleFileRepository

public abstract class AbstractRepository extends Object implements Repository
Implementing convenience methods that can be described in terms of other methods in the interface
  • Constructor Details

    • AbstractRepository

      public AbstractRepository()
  • Method Details

    • getJobEntryAttributeInteger

      public long getJobEntryAttributeInteger(org.pentaho.di.repository.ObjectId id_jobentry, String code) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      getJobEntryAttributeInteger in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • getJobEntryAttributeString

      public String getJobEntryAttributeString(org.pentaho.di.repository.ObjectId id_jobentry, String code) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      getJobEntryAttributeString in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • getJobEntryAttributeBoolean

      public boolean getJobEntryAttributeBoolean(org.pentaho.di.repository.ObjectId id_jobentry, String code) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      getJobEntryAttributeBoolean in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • getJobEntryAttributeBoolean

      public boolean getJobEntryAttributeBoolean(org.pentaho.di.repository.ObjectId id_jobentry, String code, boolean def) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      getJobEntryAttributeBoolean in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • getJobEntryAttributeBoolean

      public boolean getJobEntryAttributeBoolean(org.pentaho.di.repository.ObjectId id_jobentry, int nr, String code) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      getJobEntryAttributeBoolean in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • getJobEntryAttributeBoolean

      public abstract boolean getJobEntryAttributeBoolean(org.pentaho.di.repository.ObjectId id_jobentry, int nr, String code, boolean def) throws org.pentaho.di.core.exception.KettleException
      Throws:
      org.pentaho.di.core.exception.KettleException
    • getStepAttributeBoolean

      public boolean getStepAttributeBoolean(org.pentaho.di.repository.ObjectId id_step, String code) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      getStepAttributeBoolean in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • getStepAttributeBoolean

      public boolean getStepAttributeBoolean(org.pentaho.di.repository.ObjectId id_step, int nr, String code) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      getStepAttributeBoolean in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • getStepAttributeInteger

      public long getStepAttributeInteger(org.pentaho.di.repository.ObjectId id_step, String code) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      getStepAttributeInteger in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • getStepAttributeString

      public String getStepAttributeString(org.pentaho.di.repository.ObjectId id_step, String code) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      getStepAttributeString in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • saveStepAttribute

      public void saveStepAttribute(org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step, String code, boolean value) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      saveStepAttribute in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • saveStepAttribute

      public void saveStepAttribute(org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step, String code, double value) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      saveStepAttribute in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • saveStepAttribute

      public void saveStepAttribute(org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step, String code, long value) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      saveStepAttribute in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • saveStepAttribute

      public void saveStepAttribute(org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step, String code, String value) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      saveStepAttribute in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • saveJobEntryAttribute

      public void saveJobEntryAttribute(org.pentaho.di.repository.ObjectId id_job, org.pentaho.di.repository.ObjectId id_jobentry, String code, boolean value) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      saveJobEntryAttribute in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • saveJobEntryAttribute

      public void saveJobEntryAttribute(org.pentaho.di.repository.ObjectId id_job, org.pentaho.di.repository.ObjectId id_jobentry, String code, long value) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      saveJobEntryAttribute in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • saveJobEntryAttribute

      public void saveJobEntryAttribute(org.pentaho.di.repository.ObjectId id_job, org.pentaho.di.repository.ObjectId id_jobentry, String code, String value) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      saveJobEntryAttribute in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • loadDatabaseMetaFromJobEntryAttribute

      public org.pentaho.di.core.database.DatabaseMeta loadDatabaseMetaFromJobEntryAttribute(org.pentaho.di.repository.ObjectId id_jobentry, String nameCode, String idCode, List<org.pentaho.di.core.database.DatabaseMeta> databases) throws org.pentaho.di.core.exception.KettleException
      Description copied from interface: Repository
      This method is introduced to avoid having to go over an integer/string/whatever in the interface and the job entry code.
      Specified by:
      loadDatabaseMetaFromJobEntryAttribute in interface Repository
      Returns:
      Throws:
      org.pentaho.di.core.exception.KettleException
    • save

      public void save(org.pentaho.di.repository.RepositoryElementInterface repoElement, String versionComment, org.pentaho.di.core.ProgressMonitorListener monitor) throws org.pentaho.di.core.exception.KettleException
      Specified by:
      save in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • saveDatabaseMetaJobEntryAttribute

      public void saveDatabaseMetaJobEntryAttribute(org.pentaho.di.repository.ObjectId id_job, org.pentaho.di.repository.ObjectId id_jobentry, String nameCode, String idCode, org.pentaho.di.core.database.DatabaseMeta database) throws org.pentaho.di.core.exception.KettleException
      Description copied from interface: Repository
      This method saves the object ID of the database object (if not null) in the job entry attributes
      Specified by:
      saveDatabaseMetaJobEntryAttribute in interface Repository
      Throws:
      org.pentaho.di.core.exception.KettleException
    • test

      public boolean test()
    • create

      public void create()
    • getUnderlyingRepository

      public org.pentaho.platform.api.repository2.unified.IUnifiedRepository getUnderlyingRepository()
      Specified by:
      getUnderlyingRepository in interface Repository
      Returns:
      repository for connect to server