本文整理汇总了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$
}
}
示例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$
}
}
示例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);
}
}
示例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$
}
}
示例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$
}
}
示例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$
}
}
示例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 );
}
}
示例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);
}
}
示例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$
}
}
示例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$
}
}
示例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$
}
}
示例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);
}
}
示例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$
}
}
示例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$
}
}
示例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$
}
}