public class JsonImportStep
extends java.lang.Object
| Constructor and Description |
|---|
JsonImportStep() |
JsonImportStep(java.lang.String taskName) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Connector targetDb,
java.io.File jsonFile,
java.lang.String qualifiedTableName,
java.lang.String columnName,
boolean deleteAllRows)
Imports the json file into a database text column.
|
public JsonImportStep()
public JsonImportStep(java.lang.String taskName)
public void execute(Connector targetDb, java.io.File jsonFile, java.lang.String qualifiedTableName, java.lang.String columnName, boolean deleteAllRows) throws java.lang.Exception
targetDb - Database properties to generate database connectionjsonFile - File containing json stringqualifiedTableName - The qualified table namecolumnName - The name of the database text column where the json text will be storeddeleteAllRows - Delete all records from the table before importing new datajava.lang.Exception - if file is missing, no correct extension, no connection to
database, could not read file or problems while executing
sql-queries