Search in sources :

Example 1 with KDBRMetaStoreElementType

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

the class KettleDatabaseRepositoryMetaStoreDelegate method parseElementType.

public KDBRMetaStoreElementType parseElementType(String namespace, ObjectId namespaceId, RowMetaAndData elementTypeRow) throws KettleValueException {
    Long id = elementTypeRow.getInteger(KettleDatabaseRepository.FIELD_ELEMENT_TYPE_ID_ELEMENT_TYPE);
    String name = elementTypeRow.getString(KettleDatabaseRepository.FIELD_ELEMENT_TYPE_NAME, null);
    String description = elementTypeRow.getString(KettleDatabaseRepository.FIELD_ELEMENT_TYPE_DESCRIPTION, null);
    KDBRMetaStoreElementType type = new KDBRMetaStoreElementType(this, namespace, namespaceId, name, description);
    type.setId(new LongObjectId(id));
    return type;
}
Also used : ValueMetaString(org.pentaho.di.core.row.value.ValueMetaString) LongObjectId(org.pentaho.di.repository.LongObjectId) KDBRMetaStoreElementType(org.pentaho.di.repository.kdr.delegates.metastore.KDBRMetaStoreElementType)

Aggregations

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