CE-1955 Add version field to the built BulkLoadProfile

This commit is contained in:
2024-11-19 10:25:17 -06:00
parent 07886214f5
commit 2918235f46
2 changed files with 36 additions and 3 deletions

View File

@ -125,6 +125,7 @@ public class BulkInsertStepUtils
}
BulkLoadProfile bulkLoadProfile = new BulkLoadProfile()
.withVersion(version)
.withFieldList(fieldList)
.withHasHeaderRow(hasHeaderRow)
.withLayout(layout);

View File

@ -33,8 +33,10 @@ import java.util.ArrayList;
public class BulkLoadProfile implements Serializable
{
private ArrayList<BulkLoadProfileField> fieldList;
private Boolean hasHeaderRow;
private String layout;
private Boolean hasHeaderRow;
private String layout;
private String version;
@ -48,7 +50,6 @@ public class BulkLoadProfile implements Serializable
/*******************************************************************************
** Getter for hasHeaderRow
*******************************************************************************/
@ -110,6 +111,7 @@ public class BulkLoadProfile implements Serializable
}
/*******************************************************************************
** Setter for fieldList
*******************************************************************************/
@ -130,4 +132,34 @@ public class BulkLoadProfile implements Serializable
}
/*******************************************************************************
** Getter for version
*******************************************************************************/
public String getVersion()
{
return (this.version);
}
/*******************************************************************************
** Setter for version
*******************************************************************************/
public void setVersion(String version)
{
this.version = version;
}
/*******************************************************************************
** Fluent setter for version
*******************************************************************************/
public BulkLoadProfile withVersion(String version)
{
this.version = version;
return (this);
}
}