當前位置: 首頁>>代碼示例>>Java>>正文


Java Repository.countNrJobEntryAttributes方法代碼示例

本文整理匯總了Java中org.pentaho.di.repository.Repository.countNrJobEntryAttributes方法的典型用法代碼示例。如果您正苦於以下問題:Java Repository.countNrJobEntryAttributes方法的具體用法?Java Repository.countNrJobEntryAttributes怎麽用?Java Repository.countNrJobEntryAttributes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.pentaho.di.repository.Repository的用法示例。


在下文中一共展示了Repository.countNrJobEntryAttributes方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: 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$

     // 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, "JobEntryCheckFilesLocked.UnableToLoadFromRepo", String.valueOf(id_jobentry)), dbe); //$NON-NLS-1$
   }
 }
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:22,代碼來源:JobEntryCheckFilesLocked.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 {
    argFromPrevious = rep.getJobEntryAttributeBoolean(id_jobentry, "arg_from_previous"); //$NON-NLS-1$
    limit_folders  = rep.getJobEntryAttributeString(id_jobentry, "limit_folders");
success_condition  = rep.getJobEntryAttributeString(id_jobentry, "success_condition");

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

    // Read them all...
    for (int a = 0; a < argnr; a++) {
      arguments[a] = rep.getJobEntryAttributeString(id_jobentry, a, "name"); //$NON-NLS-1$
    }
  } catch (KettleException dbe) {
    throw new KettleException(BaseMessages.getString(PKG, "JobEntryDeleteFolders.UnableToLoadFromRepo", String.valueOf(id_jobentry)), dbe); //$NON-NLS-1$
  }
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:19,代碼來源:JobEntryDeleteFolders.java

示例3: 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

示例4: 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);
		filename = rep.getJobEntryAttributeString(id_jobentry, "filename");
		
		 // How many arguments?
        int argnr = rep.countNrJobEntryAttributes(id_jobentry, "name"); //$NON-NLS-1$
        arguments = new String[argnr];

        // Read them all...
        for (int a = 0; a < argnr; a++) 
        {
          arguments[a] = rep.getJobEntryAttributeString(id_jobentry, a, "name"); 
        }
	}
	catch(KettleException dbe)
	{
		throw new KettleException(Messages.getString("JobEntryFilesExist.ERROR_0002_Cannot_Load_Job_From_Repository",""+id_jobentry, dbe.getMessage()));
	}
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:23,代碼來源:JobEntryFilesExist.java

示例5: 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

示例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);
		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(Messages.getString("JobEntryMSAccessBulkLoad.Meta.UnableLoadRep",""+id_jobentry,dbe.getMessage()), dbe);
	}
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:36,代碼來源:JobEntryMSAccessBulkLoad.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
	{
		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(BaseMessages.getString(PKG, "JobXMLWellFormed.Error.Exception.UnableLoadRep")+id_jobentry, dbe);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:30,代碼來源:JobEntryXMLWellFormed.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
	{
		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

示例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
	{
		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

示例10: 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

示例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);
		copy_empty_folders      = rep.getJobEntryAttributeBoolean(id_jobentry, "copy_empty_folders");
		arg_from_previous   = rep.getJobEntryAttributeBoolean(id_jobentry, "arg_from_previous");
		overwrite_files      = rep.getJobEntryAttributeBoolean(id_jobentry, "overwrite_files");
		include_subfolders = rep.getJobEntryAttributeBoolean(id_jobentry, "include_subfolders");
		remove_source_files = rep.getJobEntryAttributeBoolean(id_jobentry, "remove_source_files");
		
		add_result_filesname = rep.getJobEntryAttributeBoolean(id_jobentry, "add_result_filesname");
		destination_is_a_file = rep.getJobEntryAttributeBoolean(id_jobentry, "destination_is_a_file");
		create_destination_folder = rep.getJobEntryAttributeBoolean(id_jobentry, "create_destination_folder");
			
		// How many arguments?
		int argnr = rep.countNrJobEntryAttributes(id_jobentry, "source_filefolder");
		source_filefolder = new String[argnr];
		destination_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");
			destination_filefolder[a]= rep.getJobEntryAttributeString(id_jobentry, a, "destination_filefolder");
			wildcard[a]= rep.getJobEntryAttributeString(id_jobentry, a, "wildcard");
		}
	}
	catch(KettleException dbe)
	{
		
		throw new KettleException(Messages.getString("JobCopyFiles.Error.Exception.UnableLoadRep")+id_jobentry, dbe);
	}
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:36,代碼來源:JobEntryCopyFiles.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);
			tablename  = rep.getJobEntryAttributeString(id_jobentry, "tablename");
			schemaname  = rep.getJobEntryAttributeString(id_jobentry, "schemaname");
			
			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"));
			}
			

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

	        // Read them all...
	        for (int a = 0; a < argnr; a++) 
	        {
	          arguments[a] = rep.getJobEntryAttributeString(id_jobentry, a, "name"); 
	        }
			
			
		}
		catch(KettleDatabaseException dbe)
		{
			throw new KettleException(Messages.getString("JobEntryColumnsExist.Meta.UnableLoadRep",""+id_jobentry), dbe);
		}
	}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:39,代碼來源:JobEntryColumnsExist.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
	{
		xmlfilename = rep.getJobEntryAttributeString(id_jobentry, "xmlfilename");
		xslfilename = rep.getJobEntryAttributeString(id_jobentry, "xslfilename");
		outputfilename = rep.getJobEntryAttributeString(id_jobentry, "outputfilename");
		iffileexists=(int) rep.getJobEntryAttributeInteger(id_jobentry, "iffileexists");
		addfiletoresult=rep.getJobEntryAttributeBoolean(id_jobentry, "addfiletoresult");
		filenamesfromprevious=rep.getJobEntryAttributeBoolean(id_jobentry, "filenamesfromprevious");
		xsltfactory = rep.getJobEntryAttributeString(id_jobentry, "xsltfactory");
		if(xsltfactory==null) xsltfactory=FACTORY_JAXP;
		
		 int nrparams = rep.countNrJobEntryAttributes(id_jobentry, "param_name"); //$NON-NLS-1$
		 int nroutputprops = rep.countNrJobEntryAttributes(id_jobentry, "output_property_name"); //$NON-NLS-1$
         allocate(nrparams, nroutputprops);

          for (int i = 0; i < nrparams; i++)
          {
              parameterField[i] = rep.getJobEntryAttributeString(id_jobentry, i, "param_field"); //$NON-NLS-1$
              parameterName[i] = rep.getJobEntryAttributeString(id_jobentry, i, "param_name"); //$NON-NLS-1$
          }
          for (int i = 0; i < nroutputprops; i++)
          {
              outputPropertyName[i] = rep.getJobEntryAttributeString(id_jobentry, i, "output_property_name"); //$NON-NLS-1$
              outputPropertyValue[i] = rep.getJobEntryAttributeString(id_jobentry, i, "output_property_value"); //$NON-NLS-1$
          }
	}
	catch(KettleException dbe)
	{
		throw new KettleException("Unable to load job entry of type 'xslt' from the repository for id_jobentry="+id_jobentry, dbe);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:34,代碼來源:JobEntryXSLT.java

示例14: 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
    {
		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];
		ConversionTypes = new int[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");
			ConversionTypes[a] = getConversionTypeByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"ConversionType"), ""));
		}
	}
	catch(KettleException dbe)
	{
		
		throw new KettleException(BaseMessages.getString(PKG, "JobDosToUnix.Error.Exception.UnableLoadRep")+id_jobentry, dbe);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:31,代碼來源:JobEntryDosToUnix.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
	{
     copy_empty_folders      = rep.getJobEntryAttributeBoolean(id_jobentry, "copy_empty_folders");//$NON-NLS-1$ 
     arg_from_previous   = rep.getJobEntryAttributeBoolean(id_jobentry, "arg_from_previous");//$NON-NLS-1$ 
     overwrite_files      = rep.getJobEntryAttributeBoolean(id_jobentry, "overwrite_files");//$NON-NLS-1$ 
     include_subfolders = rep.getJobEntryAttributeBoolean(id_jobentry, "include_subfolders");//$NON-NLS-1$ 
     remove_source_files = rep.getJobEntryAttributeBoolean(id_jobentry, "remove_source_files");//$NON-NLS-1$ 
		
		add_result_filesname = rep.getJobEntryAttributeBoolean(id_jobentry, "add_result_filesname");//$NON-NLS-1$ 
		destination_is_a_file = rep.getJobEntryAttributeBoolean(id_jobentry, "destination_is_a_file");//$NON-NLS-1$ 
		create_destination_folder = rep.getJobEntryAttributeBoolean(id_jobentry, "create_destination_folder");//$NON-NLS-1$ 
			
		// How many arguments?
		int argnr = rep.countNrJobEntryAttributes(id_jobentry, "source_filefolder");//$NON-NLS-1$ 
		source_filefolder = new String[argnr];
		destination_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");//$NON-NLS-1$ 
			destination_filefolder[a]= rep.getJobEntryAttributeString(id_jobentry, a, "destination_filefolder");//$NON-NLS-1$ 
			wildcard[a]= rep.getJobEntryAttributeString(id_jobentry, a, "wildcard");//$NON-NLS-1$ 
		}
	}
	catch(KettleException dbe)
	{
		
		throw new KettleException(BaseMessages.getString(PKG, "JobCopyFiles.Error.Exception.UnableLoadRep")+id_jobentry, dbe);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:35,代碼來源:JobEntryCopyFiles.java


注:本文中的org.pentaho.di.repository.Repository.countNrJobEntryAttributes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。