Search in sources :

Example 1 with KDBRMetaStoreElement

use of org.pentaho.di.repository.kdr.delegates.metastore.KDBRMetaStoreElement in project pentaho-kettle by pentaho.

the class KettleDatabaseRepositoryMetaStoreDelegate method parseElement.

public KDBRMetaStoreElement parseElement(IMetaStoreElementType elementType, RowMetaAndData elementRow) throws KettleException {
    Long elementId = elementRow.getInteger(KettleDatabaseRepository.FIELD_ELEMENT_ID_ELEMENT);
    String name = elementRow.getString(KettleDatabaseRepository.FIELD_ELEMENT_NAME, null);
    KDBRMetaStoreElement element = new KDBRMetaStoreElement(this, elementType, Long.toString(elementId), null);
    element.setName(name);
    // Now load the attributes...
    // 
    addAttributes(element, new LongObjectId(elementId), new LongObjectId(0));
    return element;
}
Also used : ValueMetaString(org.pentaho.di.core.row.value.ValueMetaString) LongObjectId(org.pentaho.di.repository.LongObjectId) KDBRMetaStoreElement(org.pentaho.di.repository.kdr.delegates.metastore.KDBRMetaStoreElement)

Aggregations

ValueMetaString (org.pentaho.di.core.row.value.ValueMetaString)1 LongObjectId (org.pentaho.di.repository.LongObjectId)1 KDBRMetaStoreElement (org.pentaho.di.repository.kdr.delegates.metastore.KDBRMetaStoreElement)1