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


Java Repository.getJobEntryAttributeBoolean方法代码示例

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


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

示例1: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException {
  try {
    super.loadRep(rep, id_jobentry, databases, slaveServers);
    argFromPrevious = rep.getJobEntryAttributeBoolean(id_jobentry, "arg_from_previous"); //$NON-NLS-1$
    includeSubfolders = rep.getJobEntryAttributeBoolean(id_jobentry, "include_subfolders"); //$NON-NLS-1$

    // How many arguments?
    int argnr = rep.countNrJobEntryAttributes(id_jobentry, "name"); //$NON-NLS-1$
    arguments = new String[argnr];
    filemasks = new String[argnr];

    // Read them all...
    for (int a = 0; a < argnr; a++) {
      arguments[a] = rep.getJobEntryAttributeString(id_jobentry, a, "name"); //$NON-NLS-1$
      filemasks[a] = rep.getJobEntryAttributeString(id_jobentry, a, "filemask"); //$NON-NLS-1$
    }
  } catch (KettleException dbe) {
    throw new KettleException(Messages.getString("JobEntryDeleteFiles.UnableToLoadFromRepo", String.valueOf(id_jobentry)), dbe); //$NON-NLS-1$
  }
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:21,代码来源:JobEntryDeleteFiles.java

示例2: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
 { 
	try
	{
		valuetype = getValueTypeByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"valuetype"), ""));
		fieldname  = rep.getJobEntryAttributeString(id_jobentry, "fieldname");
		variablename  = rep.getJobEntryAttributeString(id_jobentry, "variablename");
		fieldtype = getFieldTypeByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"fieldtype"), ""));
		mask  = rep.getJobEntryAttributeString(id_jobentry, "mask");
		comparevalue  = rep.getJobEntryAttributeString(id_jobentry, "comparevalue");
		minvalue  = rep.getJobEntryAttributeString(id_jobentry, "minvalue");
		maxvalue  = rep.getJobEntryAttributeString(id_jobentry, "maxvalue");
		successcondition = getSuccessConditionByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"successcondition"), ""));
		successnumbercondition = getSuccessNumberConditionByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"successnumbercondition"), ""));
		successbooleancondition = getSuccessBooleanConditionByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"successbooleancondition"), ""));
		successwhenvarset  = rep.getJobEntryAttributeBoolean(id_jobentry, "successwhenvarset");
	}
	catch(KettleException dbe)
	{
		throw new KettleException(BaseMessages.getString(PKG, "JobEntrySimple.Error.Exception.UnableLoadRep")+id_jobentry, dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:23,代码来源:JobEntrySimpleEval.java

示例3: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
  try
  {
    super.loadRep(rep, id_jobentry, databases, slaveServers);
    servername = rep.getJobEntryAttributeString(id_jobentry, "servername"); //$NON-NLS-1$
    username = rep.getJobEntryAttributeString(id_jobentry, "username"); //$NON-NLS-1$
    password = Encr.decryptPasswordOptionallyEncrypted(rep.getJobEntryAttributeString(id_jobentry, "password"));

    usessl = rep.getJobEntryAttributeBoolean(id_jobentry, "usessl"); //$NON-NLS-1$
    int intSSLPort = (int) rep.getJobEntryAttributeInteger(id_jobentry, "sslport"); //$NON-NLS-1$
    sslport = rep.getJobEntryAttributeString(id_jobentry, "sslport"); // backward compatible. //$NON-NLS-1$
    if (intSSLPort > 0 && Const.isEmpty(sslport))
      sslport = Integer.toString(intSSLPort);

    outputdirectory = rep.getJobEntryAttributeString(id_jobentry, "outputdirectory"); //$NON-NLS-1$
    filenamepattern = rep.getJobEntryAttributeString(id_jobentry, "filenamepattern"); //$NON-NLS-1$
    retrievemails = (int) rep.getJobEntryAttributeInteger(id_jobentry, "retrievemails"); //$NON-NLS-1$
    firstmails = rep.getJobEntryAttributeString(id_jobentry, "firstmails"); //$NON-NLS-1$
    delete = rep.getJobEntryAttributeBoolean(id_jobentry, "delete"); //$NON-NLS-1$
  } catch (KettleException dbe)
  {
    throw new KettleException(
        Messages.getString("JobEntryGetPOP.UnableToLoadFromRepo", String.valueOf(id_jobentry)), dbe); //$NON-NLS-1$
  }
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:27,代码来源:JobEntryGetPOP.java

示例4: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
	try
	{
		filename = rep.getJobEntryAttributeString(id_jobentry, "filename");
		maximumTimeout = rep.getJobEntryAttributeString(id_jobentry, "maximum_timeout");
		checkCycleTime = rep.getJobEntryAttributeString(id_jobentry, "check_cycle_time");
		successOnTimeout = rep.getJobEntryAttributeBoolean(id_jobentry, "success_on_timeout");
		fileSizeCheck = rep.getJobEntryAttributeBoolean(id_jobentry, "file_size_check");
		addFilenameToResult = rep.getJobEntryAttributeBoolean(id_jobentry, "add_filename_result");
	}
	catch(KettleException dbe)
	{
		throw new KettleException("Unable to load job entry of type 'wait for file' from the repository for id_jobentry="+id_jobentry, dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:17,代码来源:JobEntryWaitForFile.java

示例5: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta>  databases, List<SlaveServer> slaveServers) throws KettleException
{
	try
	{
		start = rep.getJobEntryAttributeBoolean(id_jobentry, "start");
		dummy = rep.getJobEntryAttributeBoolean(id_jobentry, "dummy");
		repeat = rep.getJobEntryAttributeBoolean(id_jobentry, "repeat");
		schedulerType  = (int)rep.getJobEntryAttributeInteger(id_jobentry, "schedulerType");
		intervalSeconds  = (int)rep.getJobEntryAttributeInteger(id_jobentry, "intervalSeconds");
		intervalMinutes  = (int)rep.getJobEntryAttributeInteger(id_jobentry, "intervalMinutes");
		hour  = (int)rep.getJobEntryAttributeInteger(id_jobentry, "hour");
		minutes  = (int)rep.getJobEntryAttributeInteger(id_jobentry, "minutes");
		weekDay  = (int)rep.getJobEntryAttributeInteger(id_jobentry, "weekDay");
		dayOfMonth  = (int)rep.getJobEntryAttributeInteger(id_jobentry, "dayOfMonth");
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException("Unable to load job entry of type 'special' from the repository for id_jobentry="+id_jobentry, dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:21,代码来源:JobEntrySpecial.java

示例6: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
  {
    try
    {
    	super.loadRep(rep, id_jobentry, databases, slaveServers);
		smtpCheck = rep.getJobEntryAttributeBoolean(id_jobentry, "smtpCheck"); 
		timeout = rep.getJobEntryAttributeString(id_jobentry, "timeout"); 
		defaultSMTP = rep.getJobEntryAttributeString(id_jobentry, "defaultSMTP"); 
		emailSender = rep.getJobEntryAttributeString(id_jobentry, "emailSender"); 
		emailAddress = rep.getJobEntryAttributeString(id_jobentry, "emailAddress"); 	
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException(Messages.getString("JobEntryMailValidator.Meta.UnableToLoadFromRep")+id_jobentry, dbe);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:17,代码来源:JobEntryMailValidator.java

示例7: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
  try
  {
    argFromPrevious = rep.getJobEntryAttributeBoolean(id_jobentry, "arg_from_previous"); //$NON-NLS-1$
    includeSubfolders = rep.getJobEntryAttributeBoolean(id_jobentry, "include_subfolders"); //$NON-NLS-1$

    deleteallbefore = rep.getJobEntryAttributeBoolean(id_jobentry, "delete_all_before");
    
    // How many arguments?
    int argnr = rep.countNrJobEntryAttributes(id_jobentry, "name"); //$NON-NLS-1$
    arguments = new String[argnr];
    filemasks = new String[argnr];

    // Read them all...
    for (int a = 0; a < argnr; a++) {
      arguments[a] = rep.getJobEntryAttributeString(id_jobentry, a, "name"); //$NON-NLS-1$
      filemasks[a] = rep.getJobEntryAttributeString(id_jobentry, a, "filemask"); //$NON-NLS-1$
    }
  } catch (KettleException dbe) {
    throw new KettleException(BaseMessages.getString(PKG, "JobEntryAddResultFilenames.UnableToLoadFromRepo", String.valueOf(id_jobentry)), dbe); //$NON-NLS-1$
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:24,代码来源:JobEntryAddResultFilenames.java

示例8: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
	try
	{
		repositoryname = rep.getJobEntryAttributeString(id_jobentry, "repositoryname");
		username = rep.getJobEntryAttributeString(id_jobentry, "username");
		password        = Encr.decryptPasswordOptionallyEncrypted(rep.getJobEntryAttributeString(id_jobentry, "password"));
		targetfilename = rep.getJobEntryAttributeString(id_jobentry, "targetfilename");
		iffileexists = rep.getJobEntryAttributeString(id_jobentry, "iffileexists");  
		export_type = rep.getJobEntryAttributeString(id_jobentry, "export_type");
		directoryPath = rep.getJobEntryAttributeString(id_jobentry, "directoryPath");
		add_date = rep.getJobEntryAttributeBoolean(id_jobentry, "add_date"); 
		add_time = rep.getJobEntryAttributeBoolean(id_jobentry, "add_time"); 
		SpecifyFormat = rep.getJobEntryAttributeBoolean(id_jobentry, "SpecifyFormat"); 
		date_time_format  = rep.getJobEntryAttributeString(id_jobentry, "date_time_format");
		createfolder = rep.getJobEntryAttributeBoolean(id_jobentry, "createfolder"); 
		newfolder = rep.getJobEntryAttributeBoolean(id_jobentry, "newfolder"); 
		add_result_filesname = rep.getJobEntryAttributeBoolean(id_jobentry, "add_result_filesname"); 
		nr_errors_less_than = rep.getJobEntryAttributeString(id_jobentry, "nr_errors_less_than"); 
		
		success_condition = rep.getJobEntryAttributeString(id_jobentry, "success_condition"); 
		
	}
	catch(KettleException dbe)
	{
		throw new KettleException(BaseMessages.getString(PKG, "JobExportRepository.Meta.UnableLoadRep",""+id_jobentry), dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:29,代码来源:JobEntryExportRepository.java

示例9: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers)
	throws KettleException
{
	try
	{
		schemaname  = rep.getJobEntryAttributeString(id_jobentry, "schemaname");
		tablename  = rep.getJobEntryAttributeString(id_jobentry, "tablename");
		filename  = rep.getJobEntryAttributeString(id_jobentry, "filename");
		separator  = rep.getJobEntryAttributeString(id_jobentry, "separator");
		enclosed  = rep.getJobEntryAttributeString(id_jobentry, "enclosed");
		lineterminated  = rep.getJobEntryAttributeString(id_jobentry, "lineterminated");
		limitlines  = rep.getJobEntryAttributeString(id_jobentry, "limitlines");
		listcolumn  = rep.getJobEntryAttributeString(id_jobentry, "listcolumn");
		highpriority=rep.getJobEntryAttributeBoolean(id_jobentry, "highpriority");
		optionenclosed=rep.getJobEntryAttributeBoolean(id_jobentry, "optionenclosed");

		outdumpvalue=(int) rep.getJobEntryAttributeInteger(id_jobentry, "outdumpvalue");

		iffileexists=(int) rep.getJobEntryAttributeInteger(id_jobentry, "iffileexists");
		
		addfiletoresult=rep.getJobEntryAttributeBoolean(id_jobentry, "addfiletoresult");

		connection = rep.loadDatabaseMetaFromJobEntryAttribute(id_jobentry, "connection", "id_database", databases);
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException("Unable to load job entry of type 'table exists' from the repository for id_jobentry="+id_jobentry, dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:30,代码来源:JobEntryMysqlBulkFile.java

示例10: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
	try
	{
		gpglocation = rep.getJobEntryAttributeString(id_jobentry, "gpglocation"); //$NON-NLS-1$
		filename = rep.getJobEntryAttributeString(id_jobentry, "filename");
		detachedfilename = rep.getJobEntryAttributeString(id_jobentry, "detachedfilename");
		useDetachedSignature = rep.getJobEntryAttributeBoolean(id_jobentry, "useDetachedSignature");
	}
	catch(KettleException dbe)
	{
		throw new KettleException(BaseMessages.getString(PKG, "JobEntryPGPVerify.ERROR_0002_Cannot_Load_Job_From_Repository", id_jobentry), dbe); //$NON-NLS-1$
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:15,代码来源:JobEntryPGPVerify.java

示例11: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
	try
	{
		super.loadRep(rep, id_jobentry, databases, slaveServers);
		filename1 = rep.getJobEntryAttributeString(id_jobentry, "filename1"); //$NON-NLS-1$
		filename2 = rep.getJobEntryAttributeString(id_jobentry, "filename2"); //$NON-NLS-1$
		addFilenameToResult = rep.getJobEntryAttributeBoolean(id_jobentry, "add_filename_result");
	}
	catch(KettleException dbe)
	{
		throw new KettleException(Messages.getString("JobEntryFileCompare.ERROR_0002_Unable_To_Load_Job_From_Repository", Long.toString(id_jobentry)), dbe); //$NON-NLS-1$
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:15,代码来源:JobEntryFileCompare.java

示例12: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
  {
	try
	{
		super.loadRep(rep, id_jobentry, databases, slaveServers);
		
		arg_from_previous   = rep.getJobEntryAttributeBoolean(id_jobentry, "arg_from_previous");
		include_subfolders = rep.getJobEntryAttributeBoolean(id_jobentry, "include_subfolders");

		nr_errors_less_than  = rep.getJobEntryAttributeString(id_jobentry, "nr_errors_less_than");
		success_condition  = rep.getJobEntryAttributeString(id_jobentry, "success_condition");
		resultfilenames  = rep.getJobEntryAttributeString(id_jobentry, "resultfilenames");

		// How many arguments?
		int argnr = rep.countNrJobEntryAttributes(id_jobentry, "source_filefolder");
		source_filefolder = new String[argnr];
		wildcard = new String[argnr];
		
		// Read them all...
		for (int a=0;a<argnr;a++) 
		{
			source_filefolder[a]= rep.getJobEntryAttributeString(id_jobentry, a, "source_filefolder");
			wildcard[a]= rep.getJobEntryAttributeString(id_jobentry, a, "wildcard");
		}
	}
	catch(KettleException dbe)
	{
		
		throw new KettleException(Messages.getString("JobXMLWellFormed.Error.Exception.UnableLoadRep")+id_jobentry, dbe);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:32,代码来源:JobEntryXMLWellFormed.java

示例13: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
	try
	{
		include_subfolders = rep.getJobEntryAttributeBoolean(id_jobentry, "include_subfolders");
		add_result_filenames = rep.getJobEntryAttributeBoolean(id_jobentry, "add_result_filenames");
		is_args_from_previous = rep.getJobEntryAttributeBoolean(id_jobentry, "is_args_from_previous");

		limit  = rep.getJobEntryAttributeString(id_jobentry, "limit");
		success_condition  = rep.getJobEntryAttributeString(id_jobentry, "success_condition");
		
		// How many arguments?
		int argnr = rep.countNrJobEntryAttributes(id_jobentry, "source_filefolder");
		source_filefolder = new String[argnr];
		source_wildcard = new String[argnr];
		delimiter = new String[argnr];
		target_Db = new String[argnr];
		target_table = new String[argnr];
		
		// Read them all...
		for (int a=0;a<argnr;a++) 
		{
			source_filefolder[a]= rep.getJobEntryAttributeString(id_jobentry, a, "source_filefolder");
			source_wildcard[a]= rep.getJobEntryAttributeString(id_jobentry, a, "source_wildcard");
			delimiter[a]= rep.getJobEntryAttributeString(id_jobentry, a, "delimiter");
			target_Db[a]= rep.getJobEntryAttributeString(id_jobentry, a, "target_db");
			target_table[a]= rep.getJobEntryAttributeString(id_jobentry, a, "target_table");
		}
	}
	catch(KettleException dbe)
	{
		throw new KettleException(BaseMessages.getString(PKG, "JobEntryMSAccessBulkLoad.Meta.UnableLoadRep",""+id_jobentry,dbe.getMessage()), dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:35,代码来源:JobEntryMSAccessBulkLoad.java

示例14: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers)
	throws KettleException
{
	try
	{
		super.loadRep(rep, id_jobentry, databases, slaveServers);
		schemaname  = rep.getJobEntryAttributeString(id_jobentry, "schemaname");
		tablename  = rep.getJobEntryAttributeString(id_jobentry, "tablename");
		filename  = rep.getJobEntryAttributeString(id_jobentry, "filename");
		separator  = rep.getJobEntryAttributeString(id_jobentry, "separator");
		enclosed  = rep.getJobEntryAttributeString(id_jobentry, "enclosed");
		lineterminated  = rep.getJobEntryAttributeString(id_jobentry, "lineterminated");
		limitlines  = rep.getJobEntryAttributeString(id_jobentry, "limitlines");
		listcolumn  = rep.getJobEntryAttributeString(id_jobentry, "listcolumn");
		highpriority=rep.getJobEntryAttributeBoolean(id_jobentry, "highpriority");
		optionenclosed=rep.getJobEntryAttributeBoolean(id_jobentry, "optionenclosed");

		outdumpvalue=(int) rep.getJobEntryAttributeInteger(id_jobentry, "outdumpvalue");

		iffileexists=(int) rep.getJobEntryAttributeInteger(id_jobentry, "iffileexists");
		
		addfiletoresult=rep.getJobEntryAttributeBoolean(id_jobentry, "addfiletoresult");

		long id_db = rep.getJobEntryAttributeInteger(id_jobentry, "id_database");
		if (id_db>0)
		{
			connection = DatabaseMeta.findDatabase(databases, id_db);
		}
		else
		{
			// This is were we end up in normally, the previous lines are for backward compatibility.
			connection = DatabaseMeta.findDatabase(databases, rep.getJobEntryAttributeString(id_jobentry, "connection"));
		}

	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException("Unable to load job entry of type 'table exists' from the repository for id_jobentry="+id_jobentry, dbe);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:41,代码来源:JobEntryMysqlBulkFile.java

示例15: loadRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases,
		List<SlaveServer> slaveServers) throws KettleException
{
	try
	{
		setFileName(rep.getJobEntryAttributeString(id_jobentry, "file_name"));
		setWorkDirectory(rep.getJobEntryAttributeString(id_jobentry, "work_directory"));
		argFromPrevious = rep.getJobEntryAttributeBoolean(id_jobentry, "arg_from_previous");
		execPerRow = rep.getJobEntryAttributeBoolean(id_jobentry, "exec_per_row");

		setLogfile = rep.getJobEntryAttributeBoolean(id_jobentry, "set_logfile");
		setAppendLogfile       = rep.getJobEntryAttributeBoolean(id_jobentry, "set_append_logfile");
		addDate = rep.getJobEntryAttributeBoolean(id_jobentry, "add_date");
		addTime = rep.getJobEntryAttributeBoolean(id_jobentry, "add_time");
		logfile = rep.getJobEntryAttributeString(id_jobentry, "logfile");
		logext = rep.getJobEntryAttributeString(id_jobentry, "logext");
		logFileLevel = LogLevel.getLogLevelForCode(rep.getJobEntryAttributeString(id_jobentry, "loglevel"));
		insertScript = rep.getJobEntryAttributeBoolean(id_jobentry, "insertScript");
		
		script = rep.getJobEntryAttributeString(id_jobentry, "script");
		// How many arguments?
		int argnr = rep.countNrJobEntryAttributes(id_jobentry, "argument");
		arguments = new String[argnr];

		// Read them all...
		for (int a = 0; a < argnr; a++)
		{
			arguments[a] = rep.getJobEntryAttributeString(id_jobentry, a, "argument");
		}
	} catch (KettleDatabaseException dbe)
	{
		throw new KettleException(
				"Unable to load job entry of type 'shell' from the repository with id_jobentry="
						+ id_jobentry, dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:37,代码来源:JobEntryShell.java


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