Class UploadToRowCol
java.lang.Object
de.businesscode.bcdui.upload.data.steps.UploadToRowCol
- All Implemented Interfaces:
IUploadStep
Base class for inserting a file available as BLOB column- and cell wise to bcd_dataupload_rowcol
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static String
protected final UploadControl
protected final String
protected final String
-
Constructor Summary
ConstructorsConstructorDescriptionUploadToRowCol
(UploadControl uc, String userId) Open the file with the given uploaId, split it into columns and write it to bcd_dataupload_staging We remove any previous data for uploadId from bcd_dataupload_rowcol -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.businesscode.bcdui.upload.data.steps.IUploadStep
setParams
-
Field Details
-
STEP_ID
-
NON_DATA_COLUMNS
public static final int NON_DATA_COLUMNS- See Also:
-
uc
-
uploadId
-
userId
-
-
Constructor Details
-
UploadToRowCol
Open the file with the given uploaId, split it into columns and write it to bcd_dataupload_staging We remove any previous data for uploadId from bcd_dataupload_rowcol- Parameters:
uc
- UploadControl- Throws:
Exception
-
-
Method Details
-
process
Parse the file in blob an load it cell-wise to bcd_dataupload_rowcol- Specified by:
process
in interfaceIUploadStep
- Throws:
Exception
UploadException
SQLException
-
nextCell
Expects consecutive cells, null is allowed for value- Parameters:
value
-- Throws:
SQLException
-
startLine
Starts a new line- Throws:
SQLException
-
endLine
Ends a line, adds possible missing trailing cells- Throws:
Exception
-
endFile
Data fully parsed- Throws:
SQLException
Exception
-