本文整理了Java中org.pentaho.di.repository.Repository.getJobAndTransformationObjects
方法的一些代码示例,展示了Repository.getJobAndTransformationObjects
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.getJobAndTransformationObjects
方法的具体详情如下:
包路径:org.pentaho.di.repository.Repository
类名称:Repository
方法名:getJobAndTransformationObjects
[英]Gets all job and transformation objects in the given directory. (Combines #getJobObjects(ObjectId,boolean)and #getTransformationObjects(ObjectId,boolean) into one operation.
[中]获取给定目录中的所有作业和转换对象。(将#getJobObjects(ObjectId,boolean)和#getTransformationObjects(ObjectId,boolean)组合为一个操作。
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public List<RepositoryElementMetaInterface> getJobAndTransformationObjects( ObjectId objectId, boolean b ) throws KettleException {
return getDelegate().getJobAndTransformationObjects( objectId, b );
}
代码示例来源:origin: pentaho/pentaho-kettle
private List<RepositoryElementMetaInterface> getRepositoryElements(
RepositoryDirectoryInterface repositoryDirectoryInterface ) {
List<RepositoryElementMetaInterface> elements = repositoryDirectoryInterface.getRepositoryObjects();
if ( elements == null ) {
try {
return getRepository().getJobAndTransformationObjects( repositoryDirectoryInterface.getObjectId(), false );
} catch ( KettleException ke ) {
ke.printStackTrace();
}
} else {
return elements;
}
return Collections.emptyList();
}
代码示例来源:origin: pentaho/pentaho-kettle
protected static List<RepositoryElementMetaInterface> loadRepositoryObjects( RepositoryDirectoryInterface dir,
boolean getTransformations, boolean getJobs, Repository rep ) throws KettleDatabaseException {
// Then show the transformations & jobs in that directory...
List<RepositoryElementMetaInterface> repositoryObjects = new ArrayList<RepositoryElementMetaInterface>();
if ( dir.getRepositoryObjects() == null ) {
try {
dir.setRepositoryObjects( rep.getJobAndTransformationObjects( dir.getObjectId(), false ) );
} catch ( KettleException e ) {
throw new KettleDatabaseException( e );
}
}
List<RepositoryObjectType> allowedTypes = new ArrayList<>( 2 );
if ( getTransformations ) {
allowedTypes.add( RepositoryObjectType.TRANSFORMATION );
}
if ( getJobs ) {
allowedTypes.add( RepositoryObjectType.JOB );
}
for ( RepositoryElementMetaInterface repoObject : dir.getRepositoryObjects() ) {
if ( allowedTypes.contains( repoObject.getObjectType() ) ) {
repositoryObjects.add( repoObject );
}
}
return repositoryObjects;
}
代码示例来源:origin: pentaho/pentaho-kettle
if ( jobsAndTransformations == null ) {
RepositoryDirectoryInterface dir = getDirectory();
jobsAndTransformations = rep.getJobAndTransformationObjects( dir.getObjectId(), false );
dir.setRepositoryObjects( jobsAndTransformations );
内容来源于网络,如有侵权,请联系作者删除!