当前位置: 首页>>代码示例>>Java>>正文


Java Repository.saveJobEntryAttribute方法代码示例

本文整理汇总了Java中org.pentaho.di.repository.Repository.saveJobEntryAttribute方法的典型用法代码示例。如果您正苦于以下问题:Java Repository.saveJobEntryAttribute方法的具体用法?Java Repository.saveJobEntryAttribute怎么用?Java Repository.saveJobEntryAttribute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.repository.Repository的用法示例。


在下文中一共展示了Repository.saveJobEntryAttribute方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_job ) throws KettleException {
  try {
    rep.saveDatabaseMetaJobEntryAttribute( id_job, getObjectId(), CONNECTION, "id_database", databaseMeta );
    rep.saveJobEntryAttribute( id_job, getObjectId(), MANAGEMENT_ACTION, getManagementAction() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), REPLACE, isReplace() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), FAIL_IF_EXISTS, isFailIfExists() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), WAREHOUSE_NAME, getWarehouseName() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), WAREHOUSE_SIZE, getWarehouseSize() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), WAREHOUSE_TYPE, getWarehouseType() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), MAX_CLUSTER_COUNT, getMaxClusterCount() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), MIN_CLUSTER_COUNT, getMinClusterCount() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), AUTO_SUSPEND, getAutoSuspend() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), AUTO_RESUME, isAutoResume() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), INITIALLY_SUSPENDED, isInitiallySuspended() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), RESOURCE_MONITOR, getResourceMonitor() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), COMMENT, getComment() );
    rep.saveJobEntryAttribute( id_job, getObjectId(), FAIL_IF_NOT_EXISTS, isFailIfNotExists() );
  } catch ( KettleDatabaseException dbe ) {
    throw new KettleDatabaseException( BaseMessages.getString( PKG, "SnowflakeWarehouseManager.Error.Exception.UnableSaveRep" )
      + getObjectId(), dbe );
  }
}
 
开发者ID:inquidia,项目名称:PentahoSnowflakePlugin,代码行数:23,代码来源:WarehouseManager.java

示例2: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_job)
	throws KettleException
{
	try
	{
		super.saveRep(rep, id_job);
		
		rep.saveJobEntryAttribute(id_job, getID(), "tablename", tablename);
		rep.saveJobEntryAttribute(id_job, getID(), "schemaname", schemaname);
		
		if (connection!=null) rep.saveJobEntryAttribute(id_job, getID(), "connection", connection.getName());
		
		   // save the arguments...
	      if (arguments != null) {
	        for (int i = 0; i < arguments.length; i++) {
	          rep.saveJobEntryAttribute(id_job, getID(), i, "name", arguments[i]);
	        }
	      }
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException(Messages.getString("JobEntryColumnsExist.Meta.UnableSaveRep",""+id_job), dbe);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:25,代码来源:JobEntryColumnsExist.java

示例3: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_job)
	throws KettleException
{
	try
	{
		super.saveRep(rep, id_job);

		rep.saveJobEntryAttribute(id_job, getID(), "hostname",    hostname);
		rep.saveJobEntryAttribute(id_job, getID(), "nbr_packets", nbrPackets);
		// TODO: The following line may be removed 3 versions after 2.5.0
		rep.saveJobEntryAttribute(id_job, getID(), "nbrpaquets",  nbrPackets);
		rep.saveJobEntryAttribute(id_job, getID(), "timeout",      timeout);
		rep.saveJobEntryAttribute(id_job, getID(), "pingtype",      pingtype);
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException("Unable to save job entry of type 'ping' to the repository for id_job="+id_job, dbe);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:20,代码来源:JobEntryPing.java

示例4: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_job)
	throws KettleException
{
	try
	{
		super.saveRep(rep, id_job);
		
		rep.saveJobEntryAttribute(id_job, getID(), "filename", filename);
		
		   // save the arguments...
	      if (arguments != null) {
	        for (int i = 0; i < arguments.length; i++) {
	          rep.saveJobEntryAttribute(id_job, getID(), i, "name", arguments[i]);
	        }
	      }
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException(Messages.getString("JobEntryFilesExist.ERROR_0003_Cannot_Save_Job_Entry",""+id_job, dbe.getMessage()));
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:22,代码来源:JobEntryFilesExist.java

示例5: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_job)
	throws KettleException
{
	try
	{
		super.saveRep(rep, id_job);

		rep.saveJobEntryAttribute(id_job, getID(), "xmlfilename", xmlfilename);
		rep.saveJobEntryAttribute(id_job, getID(), "xslfilename", xslfilename);
		rep.saveJobEntryAttribute(id_job, getID(), "outputfilename", outputfilename);
		rep.saveJobEntryAttribute(id_job, getID(), "iffileexists", iffileexists);
		rep.saveJobEntryAttribute(id_job, getID(), "addfiletoresult", addfiletoresult);
		rep.saveJobEntryAttribute(id_job, getID(), "xsltfactory", xsltfactory);
		
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException("Unable to save job entry of type 'xslt' to the repository for id_job="+id_job, dbe);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:21,代码来源:JobEntryXSLT.java

示例6: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, ObjectId id_job) throws KettleException {
  try {

    rep.saveJobEntryAttribute(id_job, getObjectId(), "arg_from_previous", argFromPrevious); //$NON-NLS-1$
    rep.saveJobEntryAttribute(id_job, getObjectId(), "include_subfolders", includeSubfolders); //$NON-NLS-1$

    // save the arguments...
    if (arguments != null) {
      for (int i = 0; i < arguments.length; i++) {
        rep.saveJobEntryAttribute(id_job, getObjectId(), i, "name", arguments[i]); //$NON-NLS-1$
        rep.saveJobEntryAttribute(id_job, getObjectId(), i, "filemask", filemasks[i]); //$NON-NLS-1$
      }
    }
  } catch (KettleDatabaseException dbe) {
    throw new KettleException(
        BaseMessages.getString(PKG, "JobEntryCheckFilesLocked.UnableToSaveToRepo", String.valueOf(id_job)), dbe); //$NON-NLS-1$
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:19,代码来源:JobEntryCheckFilesLocked.java

示例7: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, ObjectId id_job)
	throws KettleException
{
	try
	{
		rep.saveJobEntryAttribute(id_job, getObjectId(), "smtpCheck", smtpCheck);
		rep.saveJobEntryAttribute(id_job, getObjectId(), "timeout", timeout);
		rep.saveJobEntryAttribute(id_job, getObjectId(), "defaultSMTP", defaultSMTP);
		rep.saveJobEntryAttribute(id_job, getObjectId(), "emailSender", emailSender);
		rep.saveJobEntryAttribute(id_job, getObjectId(), "emailAddress", emailAddress);
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException(BaseMessages.getString(PKG, "JobEntryMailValidator.Meta.UnableToSaveToRep")+id_job, dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:17,代码来源:JobEntryMailValidator.java

示例8: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_job)
	throws KettleException
{
	try
	{
		super.saveRep(rep, id_job);
		rep.saveJobEntryAttribute(id_job, getID(), "port",      port);
		rep.saveJobEntryAttribute(id_job, getID(), "servername",      serverName);
		rep.saveJobEntryAttribute(id_job, getID(), "oid",      oid);
		rep.saveJobEntryAttribute(id_job, getID(), "message",      message);
		rep.saveJobEntryAttribute(id_job, getID(), "comstring",      comString);
		rep.saveJobEntryAttribute(id_job, getID(), "timeout",         timeout);
		rep.saveJobEntryAttribute(id_job, getID(), "nrretry",         nrretry);
		rep.saveJobEntryAttribute(id_job, getID(), "targettype",         targettype);
		rep.saveJobEntryAttribute(id_job, getID(), "user",         user);
		rep.saveJobEntryAttribute(id_job, getID(), "passphrase",         passphrase);
		rep.saveJobEntryAttribute(id_job, getID(), "engineid",         engineid);
          
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException("Unable to save job entry of type 'SNMPTrap' to the repository for id_job="+id_job, dbe);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:25,代码来源:JobEntrySNMPTrap.java

示例9: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, ObjectId id_job) throws KettleException
{
	try
	{
		rep.saveDatabaseMetaJobEntryAttribute(id_job, getObjectId(), "connection", "id_database", connection);
		
		rep.saveJobEntryAttribute(id_job, getObjectId(), "sql", sql);
		rep.saveJobEntryAttribute(id_job, getObjectId(), "useVariableSubstitution", useVariableSubstitution ? "T" : "F" );
		rep.saveJobEntryAttribute(id_job, getObjectId(), "sqlfromfile", sqlfromfile ? "T" : "F" );
		rep.saveJobEntryAttribute(id_job, getObjectId(), "sqlfilename", sqlfilename);
		rep.saveJobEntryAttribute(id_job, getObjectId(), "sendOneStatement", sendOneStatement ? "T" : "F" );
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException("Unable to save job entry of type 'sql' to the repository for id_job="+id_job, dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:18,代码来源:JobEntrySQL.java

示例10: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, ObjectId id_job) throws KettleException {
  try {
    rep.saveJobEntryAttribute(id_job, getObjectId(), "zipfilename", zipFilename);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "compressionrate", compressionrate);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "ifzipfileexists", ifzipfileexists);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "afterzip", afterzip);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "wildcard", wildcard);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "wildcardexclude", wildcardexclude);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "sourcedirectory", sourcedirectory);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "movetodirectory", movetodirectory);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "addfiletoresult", addfiletoresult);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "isfromprevious", isfromprevious);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "createparentfolder", createparentfolder);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "addtime", addtime);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "adddate", adddate);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "SpecifyFormat", SpecifyFormat);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "date_time_format", date_time_format);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "createMoveToDirectory", createMoveToDirectory);
    rep.saveJobEntryAttribute(id_job, getObjectId(), "include_subfolders", includingSubFolders);          
  } catch (KettleDatabaseException dbe) {
    throw new KettleException(BaseMessages.getString(PKG, "JobEntryZipFile.UnableSaveJobEntryRep", "" + id_job), dbe);
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:24,代码来源:JobEntryZipFile.java

示例11: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, IMetaStore metaStore, ObjectId id_job)
        throws KettleException {
    try {
        rep.saveJobEntryAttribute(id_job, getObjectId(), "configInfo",
                configInfo);
        rep.saveJobEntryAttribute(id_job, getObjectId(), "className",
                className);
    } catch (KettleDatabaseException dbe) {
        throw new KettleException(BaseMessages.getString(PKG,
                "JobEntryKettleUtil.UnableToSaveToRepo",
                String.valueOf(id_job)), dbe);
    }
}
 
开发者ID:majinju,项目名称:KettleEasyExpand,代码行数:14,代码来源:JobEntryEasyExpand.java

示例12: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_job)
	throws KettleException
{
	try
	{
		super.saveRep(rep, id_job);
		rep.saveJobEntryAttribute(id_job, getID(), "schemaname",     schemaname);
		rep.saveJobEntryAttribute(id_job, getID(), "tablename",      tablename);
		rep.saveJobEntryAttribute(id_job, getID(), "filename",       filename);
		rep.saveJobEntryAttribute(id_job, getID(), "separator",      separator);
		rep.saveJobEntryAttribute(id_job, getID(), "enclosed",       enclosed);
		rep.saveJobEntryAttribute(id_job, getID(), "escaped",       escaped);
		rep.saveJobEntryAttribute(id_job, getID(), "linestarted",    linestarted);
		rep.saveJobEntryAttribute(id_job, getID(), "lineterminated", lineterminated);
		rep.saveJobEntryAttribute(id_job, getID(), "replacedata",    replacedata);
		rep.saveJobEntryAttribute(id_job, getID(), "ignorelines",    ignorelines);
		rep.saveJobEntryAttribute(id_job, getID(), "listattribut",   listattribut);
		rep.saveJobEntryAttribute(id_job, getID(), "localinfile",    localinfile);
		rep.saveJobEntryAttribute(id_job, getID(), "prorityvalue",   prorityvalue);
		rep.saveJobEntryAttribute(id_job, getID(), "addfiletoresult", addfiletoresult);

		if (connection!=null) rep.saveJobEntryAttribute(id_job, getID(), "connection", connection.getName());
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException("Unable to load job entry of type 'Mysql Bulk Load' to the repository for id_job="+id_job, dbe);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:29,代码来源:JobEntryMysqlBulkLoad.java

示例13: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_job)
	throws KettleException
{
	try
	{
		super.saveRep(rep, id_job);
		
		rep.saveJobEntryAttribute(id_job, getID(), "foldername", foldername);
           rep.saveJobEntryAttribute(id_job, getID(), "fail_of_folder_exists", failOfFolderExists);
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException("Unable to save job entry of type 'create Folder' to the repository for id_job="+id_job, dbe);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:16,代码来源:JobEntryCreateFolder.java

示例14: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_job)
	throws KettleException
{
	try
	{
		super.saveRep(rep, id_job);
		
		rep.saveJobEntryAttribute(id_job, getID(), "copy_empty_folders",      copy_empty_folders);
		rep.saveJobEntryAttribute(id_job, getID(), "arg_from_previous",  arg_from_previous);
		rep.saveJobEntryAttribute(id_job, getID(), "overwrite_files",      overwrite_files);
		rep.saveJobEntryAttribute(id_job, getID(), "include_subfolders", include_subfolders);
		rep.saveJobEntryAttribute(id_job, getID(), "remove_source_files", remove_source_files);
		rep.saveJobEntryAttribute(id_job, getID(), "add_result_filesname", add_result_filesname);
		rep.saveJobEntryAttribute(id_job, getID(), "destination_is_a_file", destination_is_a_file);
		rep.saveJobEntryAttribute(id_job, getID(), "create_destination_folder", create_destination_folder);

		
		// save the arguments...
		if (source_filefolder!=null)
		{
			for (int i=0;i<source_filefolder.length;i++) 
			{
				rep.saveJobEntryAttribute(id_job, getID(), i, "source_filefolder",     source_filefolder[i]);
				rep.saveJobEntryAttribute(id_job, getID(), i, "destination_filefolder",     destination_filefolder[i]);
				rep.saveJobEntryAttribute(id_job, getID(), i, "wildcard", wildcard[i]);
			}
		}
	}
	catch(KettleDatabaseException dbe)
	{
		
		throw new KettleException(Messages.getString("JobCopyFiles.Error.Exception.UnableSaveRep")+id_job, dbe);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:35,代码来源:JobEntryCopyFiles.java

示例15: saveRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, ObjectId id_job) throws KettleException
{
	try
	{
		rep.saveJobEntryAttribute(id_job, getObjectId(), "isspecificrep", isspecificrep);
		rep.saveJobEntryAttribute(id_job, getObjectId(), "repname", repname);
		rep.saveJobEntryAttribute(id_job, getObjectId(), "isspecificuser", isspecificuser);
		rep.saveJobEntryAttribute(id_job, getObjectId(), "username", username);
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException(BaseMessages.getString(PKG, "JobEntryConnectedToRepository.Meta.UnableToSaveToRep")+id_job, dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:15,代码来源:JobEntryConnectedToRepository.java


注:本文中的org.pentaho.di.repository.Repository.saveJobEntryAttribute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。