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;
}
Aggregations