本文整理汇总了Java中org.pentaho.di.repository.Repository.insertStepDatabase方法的典型用法代码示例。如果您正苦于以下问题:Java Repository.insertStepDatabase方法的具体用法?Java Repository.insertStepDatabase怎么用?Java Repository.insertStepDatabase使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.repository.Repository
的用法示例。
在下文中一共展示了Repository.insertStepDatabase方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_transformation, long id_step)
throws KettleException
{
try
{
rep.saveStepAttribute(id_transformation, id_step, "id_connection", databaseMeta==null?-1:databaseMeta.getID()); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "commit", commitSize);
rep.saveStepAttribute(id_transformation, id_step, "sql_field", sqlField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "insert_field", insertField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "update_field", updateField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "delete_field", deleteField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "read_field", readField); //$NON-NLS-1$
// Also, save the step-database relationship!
if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getID());
}
catch(Exception e)
{
throw new KettleException(Messages.getString("ExecSQLRowMeta.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, "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);
}
}
示例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, "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$
}
}
示例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", 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$
}
}
示例5: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_transformation, long id_step) throws KettleException
{
try
{
rep.saveStepAttribute(id_transformation, id_step, "id_connection", database == null ? -1 : database.getID()); //$NON-NLS-1$
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.getID());
}
catch (Exception e)
{
throw new KettleException(Messages.getString("ColumnExistsMeta.Exception.UnableToSaveStepInfo") + id_step, e); //$NON-NLS-1$
}
}
示例6: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_transformation, long id_step)
throws KettleException
{
try
{
rep.saveStepAttribute(id_transformation, id_step, "id_connection", databaseMeta==null?-1:databaseMeta.getID());
rep.saveStepAttribute(id_transformation, id_step, "sql", sql);
rep.saveStepAttribute(id_transformation, id_step, "limit", rowLimit);
rep.saveStepAttribute(id_transformation, id_step, "lookup", getLookupStepname());
rep.saveStepAttribute(id_transformation, id_step, "execute_each_row", executeEachInputRow);
rep.saveStepAttribute(id_transformation, id_step, "variables_active", variableReplacementActive);
rep.saveStepAttribute(id_transformation, id_step, "lazy_conversion_active", lazyConversionActive);
// Also, save the step-database relationship!
if (databaseMeta!=null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getID());
}
catch(Exception e)
{
throw new KettleException("Unable to save step information to the repository for id_step="+id_step, e);
}
}
示例7: 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$
}
}
示例8: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_transformation, long id_step)
throws KettleException
{
try
{
rep.saveStepAttribute(id_transformation, id_step, "id_connection", databaseMeta==null?-1:databaseMeta.getID()); //$NON-NLS-1$
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.getID());
}
catch(Exception e)
{
throw new KettleException(Messages.getString("InsertUpdateMeta.Exception.UnableToSaveStepInfoToRepository")+id_step, e); //$NON-NLS-1$
}
}
示例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, "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, "mclient_path", mClientPath); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "log_file", logFile); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "encoding", encoding); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "truncate", truncate); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "auto_schema", autoSchema); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "auto_string_widths", autoStringWidths); //$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, "MonetDBBulkLoaderMeta.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, "sql", sql); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "execute_each_row", executedEachInputRow); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "single_statement", singleStatement); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "replace_variables", replaceVariables); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "insert_field", insertField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "update_field", updateField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "delete_field", deleteField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "read_field", readField); //$NON-NLS-1$
// Also, save the step-database relationship!
if (databaseMeta != null)
rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getObjectId());
for (int i = 0; i < arguments.length; i++)
{
rep.saveStepAttribute(id_transformation, id_step, i, "arg_name", arguments[i]); //$NON-NLS-1$
}
} catch (Exception e)
{
throw new KettleException(
BaseMessages.getString(PKG, "ExecSQLMeta.Exception.UnableToSaveStepInfo") + id_step, e); //$NON-NLS-1$
}
}
示例11: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_transformation, long id_step)
throws KettleException
{
try
{
rep.saveStepAttribute(id_transformation, id_step, "id_connection", databaseMeta==null?-1:databaseMeta.getID()); //$NON-NLS-1$
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, "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.getID());
}
catch(Exception e)
{
throw new KettleException(Messages.getString("UpdateMeta.Exception.UnableToSaveStepInfoToRepository")+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, "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$
}
}
示例13: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_transformation, long id_step)
throws KettleException
{
try
{
rep.saveStepAttribute(id_transformation, id_step, "id_connection", databaseMeta==null?-1:databaseMeta.getID()); //$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, "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, "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.getID());
}
catch(Exception e)
{
throw new KettleException(Messages.getString("MySQLBulkLoaderMeta.Exception.UnableToSaveStepInfoToRepository")+id_step, e); //$NON-NLS-1$
}
}
示例14: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_transformation, long id_step) throws KettleException
{
try
{
rep.saveStepAttribute(id_transformation, id_step,
"id_connection", databaseMeta == null ? -1 : databaseMeta.getID()); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "sql", sql); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "execute_each_row", executedEachInputRow); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "replace_variables", replaceVariables); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "insert_field", insertField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "update_field", updateField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "delete_field", deleteField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "read_field", readField); //$NON-NLS-1$
// Also, save the step-database relationship!
if (databaseMeta != null)
rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getID());
for (int i = 0; i < arguments.length; i++)
{
rep.saveStepAttribute(id_transformation, id_step, i, "arg_name", arguments[i]); //$NON-NLS-1$
}
} catch (Exception e)
{
throw new KettleException(
Messages.getString("ExecSQLMeta.Exception.UnableToSaveStepInfo") + id_step, e); //$NON-NLS-1$
}
}
示例15: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_transformation, long 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.saveStepAttribute(id_transformation, id_step, "id_connection", databaseMeta == null ? -1 : databaseMeta.getID()); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "commit", commitSize); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "update", update); //$NON-NLS-1$
for (int i = 0; i < keyStream.length; i++)
{
rep.saveStepAttribute(id_transformation, id_step, i, "lookup_key_name", keyStream[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, "date_name", dateField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "date_from", dateFrom); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "date_to", dateTo); //$NON-NLS-1$
if (fieldStream != null) for (int i = 0; i < fieldStream.length; i++)
{
if (fieldStream[i] != null)
{
rep.saveStepAttribute(id_transformation, id_step, i, "field_name", fieldStream[i]); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, i, "field_lookup", fieldLookup[i]); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, i, "field_update", getUpdateType(update, fieldUpdate[i])); //$NON-NLS-1$
}
}
rep.saveStepAttribute(id_transformation, id_step, "return_name", keyField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "return_rename", keyRename); //$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", autoIncrement); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "version_field", versionField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "sequence", sequenceName); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "min_year", minYear); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "max_year", maxYear); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "cache_size", cacheSize); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "preload_cache", preloadingCache); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "use_start_date_alternative", usingStartDateAlternative); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "start_date_alternative", getStartDateAlternativeCode(startDateAlternative)); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "start_date_field_name", startDateFieldName); //$NON-NLS-1$
// Also, save the step-database relationship!
if (databaseMeta != null) rep.insertStepDatabase(id_transformation, id_step, databaseMeta.getID());
}
catch (KettleDatabaseException dbe)
{
throw new KettleException(Messages.getString("DimensionLookupMeta.Exception.UnableToLoadDimensionLookupInfoFromRepository"), dbe); //$NON-NLS-1$
}
}