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


Java Repository.saveDatabaseMetaStepAttribute方法代碼示例

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


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

示例1: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step)
	throws KettleException
{
	try
	{
		rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", databaseMeta);
		rep.saveStepAttribute(id_transformation, id_step, "rowlimit",        rowLimit); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "sql",             sql); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "outer_join",      outerJoin); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "replace_vars",      replacevars);
		
		for (int i=0;i<parameterField.length;i++)
		{
			rep.saveStepAttribute(id_transformation, id_step, i, "parameter_field", parameterField[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "parameter_type",  ValueMeta.getTypeDesc( parameterType[i] )); //$NON-NLS-1$
		}
		
		// Also, save the step-database relationship!
		if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getObjectId());
	}
	catch(Exception e)
	{
		throw new KettleException(BaseMessages.getString(PKG, "DatabaseJoinMeta.Exception.UnableToSaveStepInfo")+id_step, e); //$NON-NLS-1$
	}	
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:26,代碼來源:DatabaseJoinMeta.java

示例2: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step)
	throws KettleException
{
	try
	{
		rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", databaseMeta);
		rep.saveStepAttribute(id_transformation, id_step, "commit",        commitSize); //$NON-NLS-1$
           rep.saveStepAttribute(id_transformation, id_step, "schema",        schemaName); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "table",         tableName); //$NON-NLS-1$

		for (int i=0;i<keyStream.length;i++)
		{
			rep.saveStepAttribute(id_transformation, id_step, i, "key_name",      keyStream[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "key_field",     keyLookup[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "key_condition", keyCondition[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "key_name2",     keyStream2[i]); //$NON-NLS-1$
		}

		// Also, save the step-database relationship!
		if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getObjectId());
	}
	catch(Exception e)
	{
		throw new KettleException(BaseMessages.getString(PKG, "DeleteMeta.Exception.UnableToSaveStepInfo")+id_step, e); //$NON-NLS-1$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:27,代碼來源:DeleteMeta.java

示例3: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step)
	throws KettleException
{
	try
	{
		rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", databaseMeta);
		rep.saveStepAttribute(id_transformation, id_step, "sql",              sql);
		rep.saveStepAttribute(id_transformation, id_step, "catalog",            catalog);
           rep.saveStepAttribute(id_transformation, id_step, "variables_active", variableReplacementActive);
		
		// Also, save the step-database relationship!
		if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getObjectId());
	}
	catch(Exception e)
	{
		throw new KettleException("Unable to save step information to the repository for id_step="+id_step, e);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:19,代碼來源:MondrianInputMeta.java

示例4: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step) throws KettleException
{
    try
    {
    	rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", database);
        rep.saveStepAttribute(id_transformation, id_step, "tablename", tablename);
        rep.saveStepAttribute(id_transformation, id_step, "schemaname", schemaname);
        rep.saveStepAttribute(id_transformation, id_step, "istablenameInfield",    istablenameInfield);
        rep.saveStepAttribute(id_transformation, id_step, "tablenamefield", tablenamefield); //$NON-NLS-1$
        rep.saveStepAttribute(id_transformation, id_step, "columnnamefield", columnnamefield); //$NON-NLS-1$
        rep.saveStepAttribute(id_transformation, id_step, "resultfieldname", resultfieldname); //$NON-NLS-1$

        // Also, save the step-database relationship!
        if (database != null) rep.insertStepDatabase(id_transformation, id_step, database.getObjectId());
    }
    catch (Exception e)
    {
        throw new KettleException(BaseMessages.getString(PKG, "ColumnExistsMeta.Exception.UnableToSaveStepInfo") + id_step, e); //$NON-NLS-1$
    }
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:21,代碼來源:ColumnExistsMeta.java

示例5: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step) throws KettleException
 {
     try
     {
rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", database);
         rep.saveStepAttribute(id_transformation, id_step, "tablenamefield", tablenamefield); //$NON-NLS-1$
         rep.saveStepAttribute(id_transformation, id_step, "schemaname", schemaname);
         
         rep.saveStepAttribute(id_transformation, id_step, "resultfieldname", resultfieldname); //$NON-NLS-1$

         // Also, save the step-database relationship!
         if (database != null) rep.insertStepDatabase(id_transformation, id_step, database.getObjectId());
     }
     catch (Exception e)
     {
         throw new KettleException(BaseMessages.getString(PKG, "TableExistsMeta.Exception.UnableToSaveStepInfo") + id_step, e); //$NON-NLS-1$
     }
 }
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:19,代碼來源:TableExistsMeta.java

示例6: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step)
	throws KettleException
{
	try
	{
		rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", databaseMeta);
		rep.saveStepAttribute(id_transformation, id_step, "rowlimit",        rowLimit); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "sql",             sql); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "outer_join",      outerJoin); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "replace_vars",      replacevars);
		rep.saveStepAttribute(id_transformation, id_step, "sql_fieldname",             sqlfieldname); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "query_only_on_change",      queryonlyonchange);
		
		// Also, save the step-database relationship!
		if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getObjectId());
	}
	catch(Exception e)
	{
		throw new KettleException(BaseMessages.getString(PKG, "DynamicSQLRowMeta.Exception.UnableToSaveStepInfo")+id_step, e); //$NON-NLS-1$
	}	
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:22,代碼來源:DynamicSQLRowMeta.java

示例7: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
/**
 * Saves the metadata for the step to a repository.
 *
 * @param rep               The repository
 * @param metaStore         The mestatore
 * @param id_transformation The ID of the transformation
 * @param id_step           The ID of the step
 * @throws KettleException
 */
public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step )
  throws KettleException {
  try {
    rep.saveDatabaseMetaStepAttribute( id_transformation, id_step, "id_connection", databaseMeta );
    rep.saveStepAttribute( id_transformation, id_step, TARGET_SCHEMA, targetSchema );
    rep.saveStepAttribute( id_transformation, id_step, TARGET_TABLE, targetTable );
    rep.saveStepAttribute( id_transformation, id_step, LOCATION_TYPE, locationType );
    rep.saveStepAttribute( id_transformation, id_step, STAGE_NAME, stageName );
    rep.saveStepAttribute( id_transformation, id_step, WORK_DIRECTORY, workDirectory );
    rep.saveStepAttribute( id_transformation, id_step, ON_ERROR, onError );
    rep.saveStepAttribute( id_transformation, id_step, ERROR_LIMIT, errorLimit );
    rep.saveStepAttribute( id_transformation, id_step, SPLIT_SIZE, splitSize );
    rep.saveStepAttribute( id_transformation, id_step, REMOVE_FILES, removeFiles );
    rep.saveStepAttribute( id_transformation, id_step, DATA_TYPE, dataType );
    rep.saveStepAttribute( id_transformation, id_step, TRIM_WHITESPACE, trimWhitespace );
    rep.saveStepAttribute( id_transformation, id_step, NULL_IF, nullIf );
    rep.saveStepAttribute( id_transformation, id_step, ERROR_COLUMN_MISMATCH, errorColumnMismatch );
    rep.saveStepAttribute( id_transformation, id_step, STRIP_NULL, stripNull );
    rep.saveStepAttribute( id_transformation, id_step, IGNORE_UTF_8, ignoreUtf8 );
    rep.saveStepAttribute( id_transformation, id_step, ALLOW_DUPLICATE_ELEMENT, allowDuplicateElements );
    rep.saveStepAttribute( id_transformation, id_step, ENABLE_OCTAL, enableOctal );
    rep.saveStepAttribute( id_transformation, id_step, SPECIFY_FIELDS, specifyFields );
    rep.saveStepAttribute( id_transformation, id_step, JSON_FIELD, jsonField );

    for ( int i = 0; i < snowflakeBulkLoaderFields.length; i++ ) {
      SnowflakeBulkLoaderField field = snowflakeBulkLoaderFields[i];

      rep.saveStepAttribute( id_transformation, id_step, i, STREAM_FIELD, field.getStreamField() );
      rep.saveStepAttribute( id_transformation, id_step, i, TABLE_FIELD, field.getTableField() );
    }
  } catch ( Exception e ) {
    throw new KettleException( "Unable to save step information to the repository for id_step=" + id_step, e );
  }
}
 
開發者ID:inquidia,項目名稱:PentahoSnowflakePlugin,代碼行數:44,代碼來源:SnowflakeBulkLoaderMeta.java

示例8: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step) throws KettleException
{
	try
	{
		rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", databaseMeta);
		if (function!=null && !Const.isEmpty(function.getName())) {
			rep.saveStepAttribute(id_transformation, id_step, "function_name", function.getName());
			rep.saveStepAttribute(id_transformation, id_step, "function_description", function.getDescription());
			rep.saveStepAttribute(id_transformation, id_step, "function_group", function.getGroup());
			rep.saveStepAttribute(id_transformation, id_step, "function_application", function.getApplication());
			rep.saveStepAttribute(id_transformation, id_step, "function_host", function.getHost());
		}
		
		for (int i=0;i<parameters.size();i++) {
			SapParameter parameter = parameters.get(i);
			rep.saveStepAttribute(id_transformation, id_step, i, "parameter_field_name", parameter.getFieldName());
			rep.saveStepAttribute(id_transformation, id_step, i, "parameter_sap_type", parameter.getSapType()==null ? null : parameter.getSapType().getCode());
			rep.saveStepAttribute(id_transformation, id_step, i, "parameter_table_name", parameter.getTableName());
			rep.saveStepAttribute(id_transformation, id_step, i, "parameter_name", parameter.getParameterName());
			rep.saveStepAttribute(id_transformation, id_step, i, "parameter_target_type", ValueMeta.getTypeDesc( parameter.getTargetType()));
		}
		
		for (int i=0;i<outputFields.size();i++) {
			SapOutputField field = outputFields.get(i);
			rep.saveStepAttribute(id_transformation, id_step, i, "field_sap_field_name", field.getSapFieldName());
			rep.saveStepAttribute(id_transformation, id_step, i, "field_sap_type", field.getSapType()==null ? null : field.getSapType().getCode());
			rep.saveStepAttribute(id_transformation, id_step, i, "field_table_name", field.getTableName());
			rep.saveStepAttribute(id_transformation, id_step, i, "field_target_type", ValueMeta.getTypeDesc( field.getTargetType()));
			rep.saveStepAttribute(id_transformation, id_step, i, "field_new_name", field.getNewName());
		}
	}
	catch(Exception e)
	{
		throw new KettleException("Unable to save step information to the repository for id_step="+id_step, e);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:37,代碼來源:SapInputMeta.java

示例9: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step)
	throws KettleException
{
	try
	{
		rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", databaseMeta);
		rep.saveStepAttribute(id_transformation, id_step, "errors",          maxErrors);     //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "buffer_size",      bufferSize);     //$NON-NLS-1$
           rep.saveStepAttribute(id_transformation, id_step, "schema",           schemaName);    //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "table",            tableName);     //$NON-NLS-1$
		
		rep.saveStepAttribute(id_transformation, id_step, "encoding",         encoding);      //$NON-NLS-1$

		rep.saveStepAttribute(id_transformation, id_step, "fifo_directory",   fifoDirectory);      //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "fifo_server_name", fifoServerName);      //$NON-NLS-1$

		for (int i=0;i<fieldTable.length;i++)
		{
			rep.saveStepAttribute(id_transformation, id_step, i, "stream_name", fieldTable[i]);  //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "field_name",  fieldStream[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "field_format_ok",  fieldFormatOk[i]); //$NON-NLS-1$
		}

		// Also, save the step-database relationship!
		if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getObjectId());
	}
	catch(Exception e)
	{
		throw new KettleException(BaseMessages.getString(PKG, "LucidDBBulkLoaderMeta.Exception.UnableToSaveStepInfoToRepository")+id_step, e); //$NON-NLS-1$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:32,代碼來源:LucidDBBulkLoaderMeta.java

示例10: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step)
	throws KettleException
{
	try
	{
		rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", databaseMeta);
		rep.saveStepAttribute(id_transformation, id_step, "commit",        commitSize); //$NON-NLS-1$
           rep.saveStepAttribute(id_transformation, id_step, "schema",        schemaName); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "table",         tableName); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "update_bypassed", updateBypassed); //$NON-NLS-1$

		for (int i=0;i<keyStream.length;i++)
		{
			rep.saveStepAttribute(id_transformation, id_step, i, "key_name",      keyStream[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "key_field",     keyLookup[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "key_condition", keyCondition[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "key_name2",     keyStream2[i]); //$NON-NLS-1$
		}

		for (int i=0;i<updateLookup.length;i++)
		{
			rep.saveStepAttribute(id_transformation, id_step, i, "value_name",    updateLookup[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "value_rename",  updateStream[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "value_update",  update[i].booleanValue()); //$NON-NLS-1$
		}
		
		// Also, save the step-database relationship!
		if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getObjectId());
	}
	catch(Exception e)
	{
		throw new KettleException(BaseMessages.getString(PKG, "InsertUpdateMeta.Exception.UnableToSaveStepInfoToRepository")+id_step, e); //$NON-NLS-1$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:35,代碼來源:InsertUpdateMeta.java

示例11: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step) throws KettleException
{
	try
	{
           rep.saveStepAttribute(id_transformation, id_step, "schema",         schemaName); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "table",          tablename); //$NON-NLS-1$
		rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", databaseMeta);
		rep.saveStepAttribute(id_transformation, id_step, "commit",         commitSize); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "cache_size",     cacheSize); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "replace",        replaceFields); //$NON-NLS-1$

		rep.saveStepAttribute(id_transformation, id_step, "crc",            useHash); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "crcfield",       hashField); //$NON-NLS-1$

		for (int i=0;i<keyField.length;i++)
		{
			rep.saveStepAttribute(id_transformation, id_step, i, "lookup_key_name",      keyField[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "lookup_key_field",     keyLookup[i]); //$NON-NLS-1$
		}

		rep.saveStepAttribute(id_transformation, id_step, "return_name",         technicalKeyField); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "sequence",            sequenceFrom); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "creation_method",     techKeyCreation); //$NON-NLS-1$

		// For the moment still save 'use_autoinc' for backwards compatibility (Sven Boden).
		rep.saveStepAttribute(id_transformation, id_step, "use_autoinc",         useAutoinc); //$NON-NLS-1$

		rep.saveStepAttribute(id_transformation, id_step, "last_update_field",         lastUpdateField); //$NON-NLS-1$

		// Also, save the step-database relationship!
		if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getObjectId());
	}
	catch(Exception e)
	{
		throw new KettleException(BaseMessages.getString(PKG, "CombinationLookupMeta.Exception.UnableToSaveStepInfo")+id_step, e); //$NON-NLS-1$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:38,代碼來源:CombinationLookupMeta.java

示例12: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step) throws KettleException
{
	try
	{
		rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", databaseMeta);
           rep.saveStepAttribute(id_transformation, id_step, "schema",          schemaName);
		rep.saveStepAttribute(id_transformation, id_step, "table",       	 tablename);
		rep.saveStepAttribute(id_transformation, id_step, "truncate",        truncateTable);
		rep.saveStepAttribute(id_transformation, id_step, "create",        createTable);		
		rep.saveStepAttribute(id_transformation, id_step, "encoding",         encoding);
		rep.saveStepAttribute(id_transformation, id_step, "dateformat",         dateformat);
		rep.saveStepAttribute(id_transformation, id_step, "addtoresult",        AddToResult);
		
		rep.saveStepAttribute(id_transformation, id_step, "file_name",        fileName);
		rep.saveStepAttribute(id_transformation, id_step, "file_extention",   extension);
		rep.saveStepAttribute(id_transformation, id_step, "file_append",      fileAppended);
		rep.saveStepAttribute(id_transformation, id_step, "file_split",       splitEvery);
		rep.saveStepAttribute(id_transformation, id_step, "file_add_stepnr",  stepNrInFilename);
		rep.saveStepAttribute(id_transformation, id_step, "file_add_partnr",  partNrInFilename);
		rep.saveStepAttribute(id_transformation, id_step, "file_add_date",    dateInFilename);
		rep.saveStepAttribute(id_transformation, id_step, "file_add_time",    timeInFilename);
		rep.saveStepAttribute(id_transformation, id_step, "create_parent_folder",    createparentfolder);
		rep.saveStepAttribute(id_transformation, id_step, "DoNotOpenNewFileInit",      DoNotOpenNewFileInit);
		
		
		
	
		// Also, save the step-database relationship!
		if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getObjectId());
		
	}
	catch(Exception e)
	{
		throw new KettleException("Unable to save step information to the repository for id_step="+id_step, e);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:37,代碼來源:SQLFileOutputMeta.java

示例13: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step)
	throws KettleException
{
	try
	{
		rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", databaseMeta);

           rep.saveStepAttribute(id_transformation, id_step, "schema",          schemaName);    //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "table",           tableName);     //$NON-NLS-1$
		
		rep.saveStepAttribute(id_transformation, id_step, "load_action",     loadAction);    //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "PsqlPath",          PsqlPath);        //$NON-NLS-1$

		rep.saveStepAttribute(id_transformation, id_step, "dbname_override", dbNameOverride);//$NON-NLS-1$
        rep.saveStepAttribute(id_transformation, id_step, "enclosure", enclosure);//$NON-NLS-1$
        rep.saveStepAttribute(id_transformation, id_step, "delimiter", delimiter);//$NON-NLS-1$

		for (int i=0;i<fieldTable.length;i++)
		{
			rep.saveStepAttribute(id_transformation, id_step, i, "stream_name", fieldTable[i]);  //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "field_name",  fieldStream[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "date_mask",   dateMask[i]);    //$NON-NLS-1$
		}

		// Also, save the step-database relationship!
		if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getObjectId());
	}
	catch(Exception e)
	{
		throw new KettleException(BaseMessages.getString(PKG, "GPBulkLoaderMeta.Exception.UnableToSaveStepInfoToRepository")+id_step, e); //$NON-NLS-1$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:33,代碼來源:PGBulkLoaderMeta.java

示例14: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step)
	throws KettleException
{
	try
	{
		rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", databaseMeta);
		rep.saveStepAttribute(id_transformation, id_step, "skip_lookup",    skipLookup);
		rep.saveStepAttribute(id_transformation, id_step, "commit",        commitSize); //$NON-NLS-1$
           rep.saveStepAttribute(id_transformation, id_step, "use_batch",       useBatchUpdate);
           rep.saveStepAttribute(id_transformation, id_step, "schema",        schemaName); //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "table",         tableName); //$NON-NLS-1$

           rep.saveStepAttribute(id_transformation, id_step, "error_ignored",        errorIgnored); //$NON-NLS-1$
           rep.saveStepAttribute(id_transformation, id_step, "ignore_flag_field",    ignoreFlagField); //$NON-NLS-1$

		for (int i=0;i<keyStream.length;i++)
		{
			rep.saveStepAttribute(id_transformation, id_step, i, "key_name",      keyStream[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "key_field",     keyLookup[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "key_condition", keyCondition[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "key_name2",     keyStream2[i]); //$NON-NLS-1$
		}

		for (int i=0;i<updateLookup.length;i++)
		{
			rep.saveStepAttribute(id_transformation, id_step, i, "value_name",    updateLookup[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "value_rename",  updateStream[i]); //$NON-NLS-1$
		}
		
		// Also, save the step-database relationship!
		if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getObjectId());
	}
	catch(Exception e)
	{
		throw new KettleException(BaseMessages.getString(PKG, "UpdateMeta.Exception.UnableToSaveStepInfoToRepository")+id_step, e); //$NON-NLS-1$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:38,代碼來源:UpdateMeta.java

示例15: saveRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step)
	throws KettleException
{
	try
	{
		rep.saveDatabaseMetaStepAttribute(id_transformation, id_step, "id_connection", databaseMeta);
           rep.saveStepAttribute(id_transformation, id_step, "schema",           schemaName);    //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "table",            tableName);     //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "encoding",         encoding);      //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "enclosure",        enclosure);      //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "delimiter",        delimiter);      //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "escape_char",      escapeChar);      //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "fifo_file_name",   fifoFileName);      //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "replace",          replacingData);      //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "ignore",           ignoringErrors);      //$NON-NLS-1$
     rep.saveStepAttribute(id_transformation, id_step, "local",            localFile);      //$NON-NLS-1$
		rep.saveStepAttribute(id_transformation, id_step, "bulk_size",        bulkSize);      //$NON-NLS-1$

		for (int i=0;i<fieldTable.length;i++)
		{
			rep.saveStepAttribute(id_transformation, id_step, i, "stream_name", fieldTable[i]);  //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "field_name",  fieldStream[i]); //$NON-NLS-1$
			rep.saveStepAttribute(id_transformation, id_step, i, "field_format_ok",  getFieldFormatTypeCode(fieldFormatType[i])); //$NON-NLS-1$
		}

		// Also, save the step-database relationship!
		if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getObjectId());
	}
	catch(Exception e)
	{
		throw new KettleException(BaseMessages.getString(PKG, "MySQLBulkLoaderMeta.Exception.UnableToSaveStepInfoToRepository")+id_step, e); //$NON-NLS-1$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:34,代碼來源:MySQLBulkLoaderMeta.java


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