本文整理汇总了Java中org.pentaho.di.repository.Repository.saveStepAttribute方法的典型用法代码示例。如果您正苦于以下问题:Java Repository.saveStepAttribute方法的具体用法?Java Repository.saveStepAttribute怎么用?Java Repository.saveStepAttribute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.repository.Repository
的用法示例。
在下文中一共展示了Repository.saveStepAttribute方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
@Override public void saveRep(Repository rep, IMetaStore metaStore, ObjectId id_transformation,
ObjectId id_step) throws KettleException {
rep.saveStepAttribute(id_transformation, id_step, "endpoint", getEndpoint());
rep.saveStepAttribute(id_transformation, id_step, "tunnelEndpoint", getTunnelEndpoint());
rep.saveStepAttribute(id_transformation, id_step, "accessId", getAccessId());
rep.saveStepAttribute(id_transformation, id_step, "accessKey", getAccessKey());
rep.saveStepAttribute(id_transformation, id_step, "projectName", getProjectName());
rep.saveStepAttribute(id_transformation, id_step, "tableName", getTableName());
rep.saveStepAttribute(id_transformation, id_step, "partition", getPartition());
for (int i = 0; i < odpsFields.size(); i++) {
OdpsField field = odpsFields.get(i);
rep.saveStepAttribute(id_transformation, id_step, i, "field_name",
field.getName().toLowerCase());
rep.saveStepAttribute(id_transformation, id_step, i, "field_type", field.getType());
rep.saveStepAttribute(id_transformation, id_step, i, "field_comment",
field.getComment());
}
}
示例2: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
/**
* This method is called by Spoon when a step needs to serialize its configuration to a repository.
* The repository implementation provides the necessary methods to save the step attributes.
*
* @param rep the repository to save to
* @param metaStore the metaStore to optionally write to
* @param id_transformation the id to use for the transformation when saving
* @param id_step the id to use for the step when saving
*/
public void saveRep(Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step) throws KettleException
{
try{
rep.saveStepAttribute(id_transformation, id_step, "provider_id", provider == null ? "" : provider.getName() );
rep.saveStepAttribute(id_transformation, id_step, "provider_desc", provider == null ? "" : provider.getDescription() );
rep.saveStepAttribute( id_transformation, id_step, "flow_id", dataflow.getId() );
rep.saveStepAttribute( id_transformation, id_step, "flow_desc", dataflow.getDescription() );
rep.saveStepAttribute( id_transformation, id_step, "query_sdmx", getSdmxQuery() );
saveDimensionsToRepository( rep, id_transformation, id_step );
saveFieldsToRepository( rep, id_transformation, id_step );
}
catch(Exception e){
throw new KettleException("Unable to save step into repository: "+id_step, e);
}
}
示例3: saveFieldsToRepository
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
private void saveFieldsToRepository( Repository rep, ObjectId id_transformation, ObjectId id_step ) throws KettleException {
for ( int i = 0; i < fields.length; i++ ) {
SdmxInputField field = fields[i];
rep.saveStepAttribute( id_transformation, id_step, i, "name", field.getName() );
rep.saveStepAttribute( id_transformation, id_step, i, "type", field.getTypeDesc() );
rep.saveStepAttribute( id_transformation, id_step, i, "length", field.getLength() );
rep.saveStepAttribute( id_transformation, id_step, i, "precision", field.getPrecision() );
rep.saveStepAttribute( id_transformation, id_step, i, "trim_type", field.getTrimTypeCode() );
rep.saveStepAttribute( id_transformation, id_step, i, "repeat", field.isRepeated() );
rep.saveStepAttribute( id_transformation, id_step, i, "format", field.getFormat() );
rep.saveStepAttribute( id_transformation, id_step, i, "currency", field.getCurrencySymbol() );
rep.saveStepAttribute( id_transformation, id_step, i, "decimal", field.getDecimalSymbol() );
rep.saveStepAttribute( id_transformation, id_step, i, "group", field.getGroupSymbol() );
}
}
示例4: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
@Override
public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step )
throws KettleException {
super.saveRep( rep, metaStore, id_transformation, id_step );
rep.saveStepAttribute( id_transformation, id_step, "ticketFieldIdFieldname", getTicketFieldIdFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "ticketFieldUrlFieldname", getTicketFieldUrlFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "ticketFieldTypeFieldname", getTicketFieldTypeFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "ticketFieldTitleFieldname", getTicketFieldTitleFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "ticketFieldActiveFieldname", getTicketFieldActiveFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "ticketFieldRequiredFieldname",
getTicketFieldRequiredFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "ticketFieldVisibleEndUsersFieldname",
getTicketFieldVisibleEndUsersFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "createdAtFieldname", getCreatedAtFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "updatedAtFieldname", getUpdatedAtFieldname() );
}
示例5: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
@Override
public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step )
throws KettleException {
super.saveRep( rep, metaStore, id_transformation, id_step );
rep.saveStepAttribute( id_transformation, id_step, "sectionIdFieldname", getSectionIdFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "sectionUrlFieldname", getSectionUrlFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "sectionNameFieldname", getSectionNameFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "categoryIdFieldname", getCategoryIdFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "localeFieldname", getLocaleFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "sourceLocaleFieldname", getSourceLocaleFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "sectionHtmlUrlFieldname", getSectionHtmlUrlFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "outdatedFieldname", getOutdatedFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "positionFieldname", getPositionFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "createdAtFieldname", getCreatedAtFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "updatedAtFieldname", getUpdatedAtFieldname() );
}
示例6: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
@Override
public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step )
throws KettleException {
super.saveRep( rep, metaStore, id_transformation, id_step );
rep.saveStepAttribute( id_transformation, id_step, "categoryIdFieldname", getCategoryIdFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "categoryUrlFieldname", getCategoryUrlFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "categoryNameFieldname", getCategoryNameFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "descriptionFieldname", getDescriptionFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "localeFieldname", getLocaleFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "sourceLocaleFieldname", getSourceLocaleFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "categoryHtmlUrlFieldname", getCategoryHtmlUrlFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "outdatedFieldname", getOutdatedFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "positionFieldname", getPositionFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "createdAtFieldname", getCreatedAtFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "updatedAtFieldname", getUpdatedAtFieldname() );
}
示例7: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
@Override
public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step )
throws KettleException {
super.saveRep( rep, metaStore, id_transformation, id_step );
rep.saveStepAttribute( id_transformation, id_step, "suspendedTicketIdFieldname", getSuspendedTicketIdFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "suspendedTicketUrlFieldname", getSuspendedTicketUrlFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "authorFieldname", getAuthorFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "subjectFieldname", getSubjectFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "contentFieldname", getContentFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "causeFieldname", getCauseFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "messageIdFieldname", getMessageIdFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "ticketIdFieldname", getTicketIdFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "recipientFieldname", getRecipientFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "createdAtFieldname", getCreatedAtFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "updatedAtFieldname", getUpdatedAtFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "viaFieldname", getViaFieldname() );
rep.saveStepAttribute( id_transformation, id_step, "brandIdFieldname", getBrandIdFieldname() );
}
示例8: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
@Override
public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step ) throws KettleException{
rep.saveStepAttribute( id_transformation, id_step, "hostname", getHostname() );
rep.saveStepAttribute( id_transformation, id_step, "port", getPort() );
rep.saveStepAttribute( id_transformation, id_step, "sequoiadbusername", getUserName() );
rep.saveStepAttribute( id_transformation, id_step, "sequoiadbpassword", getPwd() );
rep.saveStepAttribute( id_transformation, id_step, "CSName", getCSName() );
rep.saveStepAttribute( id_transformation, id_step, "CLName", getCLName() );
rep.saveStepAttribute( id_transformation, id_step, "query", getQuery() );
rep.saveStepAttribute( id_transformation, id_step, "selector", getSelector() );
rep.saveStepAttribute( id_transformation, id_step, "orderby", getOrderby() );
rep.saveStepAttribute( id_transformation, id_step, "skip", getSkipStr() );
rep.saveStepAttribute( id_transformation, id_step, "limit", getLimitStr() );
if (m_fields != null && m_fields.size() > 0){
for (int i = 0; i < m_fields.size(); i++){
SequoiaDBInputField fieldTmp = m_fields.get(i);
rep.saveStepAttribute(id_transformation, id_step, i, "field_name", fieldTmp.m_fieldName);
rep.saveStepAttribute(id_transformation, id_step, i, "field_path", fieldTmp.m_path);
rep.saveStepAttribute(id_transformation, id_step, i, "field_type", fieldTmp.m_kettleType);
}
}
}
示例9: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step)
throws KettleException
{
try
{
for (int i=0;i<fieldName.length;i++)
{
if (fieldName[i]!=null && fieldName[i].length()!=0)
{
rep.saveStepAttribute(id_transformation, id_step, i, "field_name", fieldName[i]);
rep.saveStepAttribute(id_transformation, id_step, i, "field_type", fieldType[i]);
rep.saveStepAttribute(id_transformation, id_step, i, "field_format", fieldFormat[i]);
rep.saveStepAttribute(id_transformation, id_step, i, "field_currency", currency[i]);
rep.saveStepAttribute(id_transformation, id_step, i, "field_decimal", decimal[i]);
rep.saveStepAttribute(id_transformation, id_step, i, "field_group", group[i]);
rep.saveStepAttribute(id_transformation, id_step, i, "field_nullif", value[i]);
rep.saveStepAttribute(id_transformation, id_step, i, "field_length", fieldLength[i]);
rep.saveStepAttribute(id_transformation, id_step, i, "field_precision", fieldPrecision[i]);
}
}
}
catch(Exception e)
{
throw new KettleException("Unable to save step information to the repository for id_step="+id_step, e);
}
}
示例10: 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, "xdsfilename", xsdFilename); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "xmlstream", xmlStream); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "resultfieldname",resultFieldname);
rep.saveStepAttribute(id_transformation, id_step, "xmlsourcefile", xmlSourceFile);
rep.saveStepAttribute(id_transformation, id_step, "addvalidationmsg", addValidationMessage);
rep.saveStepAttribute(id_transformation, id_step, "validationmsgfield", validationMessageField);
rep.saveStepAttribute(id_transformation, id_step, "ifxmlvalid", ifXmlValid);
rep.saveStepAttribute(id_transformation, id_step, "ifxmlunvalid", ifXmlInvalid);
rep.saveStepAttribute(id_transformation, id_step, "outputstringfield", outputStringField);
rep.saveStepAttribute(id_transformation, id_step, "xsddefinedfield", xsdDefinedField);
rep.saveStepAttribute(id_transformation, id_step, "xsdsource", xsdSource);
}
catch(Exception e)
{
throw new KettleException(BaseMessages.getString(PKG, "XsdValidatorMeta.Exception.UnableToSaveStepInfo")+id_step, e); //$NON-NLS-1$
}
}
示例11: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step )
throws KettleException {
try {
rep.saveStepAttribute( id_transformation, id_step, "keyfield", this.keyFieldName );
rep.saveStepAttribute( id_transformation, id_step, "valuefield", this.valueFieldName );
rep.saveStepAttribute( id_transformation, id_step, "expiration", this.expirationTime );
int i = 0;
Set<InetSocketAddress> servers = this.getServers();
if ( servers != null ) {
for ( InetSocketAddress addr : servers ) {
rep.saveStepAttribute( id_transformation, id_step, i++, "hostname", addr.getHostName() );
rep.saveStepAttribute( id_transformation, id_step, i++, "port", addr.getPort() );
}
}
} catch ( Exception e ) {
throw new KettleException( BaseMessages.getString( PKG,
"MemcachedOutputMeta.Exception.UnexpectedErrorSavingStepInfo" ), e );
}
}
示例12: 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, "source", source); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "layer_name", layerName);
rep.saveStepAttribute(id_transformation, id_step, "spatial_filter", spatialFilter); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "attribute_filter", attributeFilter); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "skip_failure", skipFailureAdded); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "limit", rowLimit); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "add_rownr", rowNrAdded); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "field_rownr", rowNrField); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "sourcefield", sourceField);
rep.saveStepAttribute(id_transformation, id_step, "issourceinfield", isSourceInField);
rep.saveStepAttribute(id_transformation, id_step, "layernamefield", layerNameField);
rep.saveStepAttribute(id_transformation, id_step, "islayernameinfield", isLayerNameInField);
rep.saveStepAttribute(id_transformation, id_step, "passing_through_fields", passingThruFields);
rep.saveStepAttribute(id_transformation, id_step, "isfilesource", isFileSource);
}catch(Exception e){
throw new KettleException(Messages.getString("OGRFileInputMeta.Exception.UnableToSaveMetaDataToRepository")+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, "filename", filename);
rep.saveStepAttribute(id_transformation, id_step, "table", tablename);
rep.saveStepAttribute(id_transformation, id_step, "truncate", tableTruncated);
rep.saveStepAttribute(id_transformation, id_step, "create_file", fileCreated);
rep.saveStepAttribute(id_transformation, id_step, "create_table", tableCreated);
rep.saveStepAttribute(id_transformation, id_step, "commit_size", commitSize);
rep.saveStepAttribute(id_transformation, id_step, "add_to_result_filenames", addToResultFilenames);
rep.saveStepAttribute(id_transformation, id_step, "do_not_open_newfile_init", doNotOpeNnewFileInit);
}
catch(Exception e)
{
throw new KettleException("Unable to save step information to the repository for id_step="+id_step, e);
}
}
示例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, "xdsfilename", xsdFilename); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "xmlstream", xmlStream); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "resultfieldname",resultFieldname);
rep.saveStepAttribute(id_transformation, id_step, "xmlsourcefile", xmlSourceFile);
rep.saveStepAttribute(id_transformation, id_step, "addvalidationmsg", addValidationMessage);
rep.saveStepAttribute(id_transformation, id_step, "validationmsgfield", validationMessageField);
rep.saveStepAttribute(id_transformation, id_step, "ifxmlvalid", ifXmlValid);
rep.saveStepAttribute(id_transformation, id_step, "ifxmlunvalid", ifXmlInvalid);
rep.saveStepAttribute(id_transformation, id_step, "outputstringfield", outputStringField);
rep.saveStepAttribute(id_transformation, id_step, "xsddefinedfield", xsdDefinedField);
rep.saveStepAttribute(id_transformation, id_step, "xsdsource", xsdSource);
}
catch(Exception e)
{
throw new KettleException(Messages.getString("XsdValidatorMeta.Exception.UnableToSaveStepInfo")+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.saveStepAttribute(id_transformation, id_step, "sourcefilenamefield", sourcefilenamefield); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "targetfilenamefield", targetfilenamefield); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "operation_type", getOperationTypeCode(operationType));
rep.saveStepAttribute(id_transformation, id_step, "addresultfilenames", addresultfilenames);
rep.saveStepAttribute(id_transformation, id_step, "overwritetargetfile", overwritetargetfile);
rep.saveStepAttribute(id_transformation, id_step, "createparentfolder", createparentfolder);
rep.saveStepAttribute(id_transformation, id_step, "simulate", simulate);
}
catch (Exception e)
{
throw new KettleException(BaseMessages.getString(PKG, "ProcessFilesMeta.Exception.UnableToSaveStepInfo") + id_step, e); //$NON-NLS-1$
}
}