public class KettleDatabaseRepositoryMetaStoreDelegate extends KettleDatabaseRepositoryBaseDelegate
log, repository| Constructor and Description |
|---|
KettleDatabaseRepositoryMetaStoreDelegate(KettleDatabaseRepository repository) |
quote, quoteTablepublic KettleDatabaseRepositoryMetaStoreDelegate(KettleDatabaseRepository repository)
public LongObjectId getNamespaceId(String namespace) throws KettleException
namespace - The namespace to look upKettleExceptionpublic ObjectId verifyNamespace(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException
org.pentaho.metastore.api.exceptions.MetaStoreExceptionpublic LongObjectId getElementTypeId(LongObjectId namespaceId, String elementTypeName) throws KettleException
KettleExceptionpublic LongObjectId getElementId(LongObjectId elementTypeId, String elementName) throws KettleException
KettleExceptionpublic RowMetaAndData getElementType(LongObjectId elementTypeId) throws KettleException
KettleExceptionpublic RowMetaAndData getElement(LongObjectId elementId) throws KettleException
KettleExceptionpublic RowMetaAndData getElementAttribute(LongObjectId elementAttributeId) throws KettleException
KettleExceptionpublic Collection<RowMetaAndData> getNamespaces() throws KettleDatabaseException, KettleValueException
public Collection<RowMetaAndData> getElementTypes(LongObjectId namespaceId) throws KettleDatabaseException, KettleValueException
public Collection<RowMetaAndData> getElements(LongObjectId elementTypeId) throws KettleDatabaseException, KettleValueException
public Collection<RowMetaAndData> getElementAttributes(ObjectId elementId, ObjectId parentAttributeId) throws KettleDatabaseException, KettleValueException
public ObjectId insertNamespace(String namespace) throws KettleException
KettleExceptionpublic ObjectId insertElementType(KDBRMetaStoreElementType type) throws KettleException
KettleExceptionpublic ObjectId updateElementType(ObjectId namespaceId, ObjectId elementTypeId, org.pentaho.metastore.api.IMetaStoreElementType type) throws KettleException
KettleExceptionpublic KDBRMetaStoreElementType parseElementType(String namespace, ObjectId namespaceId, RowMetaAndData elementTypeRow) throws KettleValueException
KettleValueExceptionpublic void deleteElementType(ObjectId elementTypeId) throws KettleException
KettleExceptionpublic void deleteNamespace(ObjectId namespaceId) throws KettleException
KettleExceptionpublic KDBRMetaStoreElement parseElement(org.pentaho.metastore.api.IMetaStoreElementType elementType, RowMetaAndData elementRow) throws KettleException
KettleExceptionpublic Object parseAttributeValue(String value) throws Exception
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
value - Exception - in case of conversion troublepublic String encodeAttributeValue(Object object) throws Exception
Exceptionpublic ObjectId insertElement(org.pentaho.metastore.api.IMetaStoreElementType elementType, org.pentaho.metastore.api.IMetaStoreElement element) throws org.pentaho.metastore.api.exceptions.MetaStoreException
org.pentaho.metastore.api.exceptions.MetaStoreExceptionpublic void deleteElement(ObjectId elementId) throws KettleException
KettleExceptionCopyright © 2018 Hitachi Vantara. All rights reserved.