Class KettleDatabaseRepositoryMetaStoreDelegate

    • Constructor Detail

      • KettleDatabaseRepositoryMetaStoreDelegate

        public KettleDatabaseRepositoryMetaStoreDelegate​(KettleDatabaseRepository repository)
    • Method Detail

      • getNamespaceId

        public org.pentaho.di.repository.LongObjectId getNamespaceId​(String namespace)
                                                              throws org.pentaho.di.core.exception.KettleException
        Retrieve the ID for a namespace
        Parameters:
        namespace - The namespace to look up
        Returns:
        the ID of the namespace
        Throws:
        org.pentaho.di.core.exception.KettleException
      • verifyNamespace

        public org.pentaho.di.repository.ObjectId verifyNamespace​(String namespace)
                                                           throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • getElementTypeId

        public org.pentaho.di.repository.LongObjectId getElementTypeId​(org.pentaho.di.repository.LongObjectId namespaceId,
                                                                       String elementTypeName)
                                                                throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • getElementId

        public org.pentaho.di.repository.LongObjectId getElementId​(org.pentaho.di.repository.LongObjectId elementTypeId,
                                                                   String elementName)
                                                            throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • getElementType

        public org.pentaho.di.core.RowMetaAndData getElementType​(org.pentaho.di.repository.LongObjectId elementTypeId)
                                                          throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • getElement

        public org.pentaho.di.core.RowMetaAndData getElement​(org.pentaho.di.repository.LongObjectId elementId)
                                                      throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • getElementAttribute

        public org.pentaho.di.core.RowMetaAndData getElementAttribute​(org.pentaho.di.repository.LongObjectId elementAttributeId)
                                                               throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • getNamespaces

        public Collection<org.pentaho.di.core.RowMetaAndData> getNamespaces()
                                                                     throws org.pentaho.di.core.exception.KettleDatabaseException,
                                                                            org.pentaho.di.core.exception.KettleValueException
        Throws:
        org.pentaho.di.core.exception.KettleDatabaseException
        org.pentaho.di.core.exception.KettleValueException
      • getElementTypes

        public Collection<org.pentaho.di.core.RowMetaAndData> getElementTypes​(org.pentaho.di.repository.LongObjectId namespaceId)
                                                                       throws org.pentaho.di.core.exception.KettleDatabaseException,
                                                                              org.pentaho.di.core.exception.KettleValueException
        Throws:
        org.pentaho.di.core.exception.KettleDatabaseException
        org.pentaho.di.core.exception.KettleValueException
      • getElements

        public Collection<org.pentaho.di.core.RowMetaAndData> getElements​(org.pentaho.di.repository.LongObjectId elementTypeId)
                                                                   throws org.pentaho.di.core.exception.KettleDatabaseException,
                                                                          org.pentaho.di.core.exception.KettleValueException
        Throws:
        org.pentaho.di.core.exception.KettleDatabaseException
        org.pentaho.di.core.exception.KettleValueException
      • getElementAttributes

        public Collection<org.pentaho.di.core.RowMetaAndData> getElementAttributes​(org.pentaho.di.repository.ObjectId elementId,
                                                                                   org.pentaho.di.repository.ObjectId parentAttributeId)
                                                                            throws org.pentaho.di.core.exception.KettleDatabaseException,
                                                                                   org.pentaho.di.core.exception.KettleValueException
        Throws:
        org.pentaho.di.core.exception.KettleDatabaseException
        org.pentaho.di.core.exception.KettleValueException
      • insertNamespace

        public org.pentaho.di.repository.ObjectId insertNamespace​(String namespace)
                                                           throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • insertElementType

        public org.pentaho.di.repository.ObjectId insertElementType​(KDBRMetaStoreElementType type)
                                                             throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • updateElementType

        public org.pentaho.di.repository.ObjectId updateElementType​(org.pentaho.di.repository.ObjectId namespaceId,
                                                                    org.pentaho.di.repository.ObjectId elementTypeId,
                                                                    org.pentaho.metastore.api.IMetaStoreElementType type)
                                                             throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • parseElementType

        public KDBRMetaStoreElementType parseElementType​(String namespace,
                                                         org.pentaho.di.repository.ObjectId namespaceId,
                                                         org.pentaho.di.core.RowMetaAndData elementTypeRow)
                                                  throws org.pentaho.di.core.exception.KettleValueException
        Throws:
        org.pentaho.di.core.exception.KettleValueException
      • deleteElementType

        public void deleteElementType​(org.pentaho.di.repository.ObjectId elementTypeId)
                               throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • deleteNamespace

        public void deleteNamespace​(org.pentaho.di.repository.ObjectId namespaceId)
                             throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • parseElement

        public KDBRMetaStoreElement parseElement​(org.pentaho.metastore.api.IMetaStoreElementType elementType,
                                                 org.pentaho.di.core.RowMetaAndData elementRow)
                                          throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • parseAttributeValue

        public Object parseAttributeValue​(String value)
                                   throws Exception
        supported types:

         S : String (java.lang.String)
         D : Date (java.util.Date)
         N : Number (Double)
         I : Integer (Long)
         B : Boolean (Boolean)
        
         Examples
         S:Pentaho Data Integration
         D:2013/08/23 17:25:00
         N:1039348.9347
         I:12345678
         B:true
         
        Parameters:
        value -
        Returns:
        The native value
        Throws:
        Exception - in case of conversion trouble
      • insertElement

        public org.pentaho.di.repository.ObjectId insertElement​(org.pentaho.metastore.api.IMetaStoreElementType elementType,
                                                                org.pentaho.metastore.api.IMetaStoreElement element)
                                                         throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • deleteElement

        public void deleteElement​(org.pentaho.di.repository.ObjectId elementId)
                           throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException