public class ImportedTable extends Object
| Constructor and Description |
|---|
ImportedTable(String tablename,
SchemaDefinition schema,
ArrayList<DBField> csvFieldsDefinition) |
| Modifier and Type | Method and Description |
|---|---|
int |
cleanByImportRoutine(ImportRoutineDescriptor toClean,
Connection conn) |
String |
createStatement() |
Map<String,String> |
exportCSV(CSVExportRequest request) |
Map<String,String> |
exportStatistics() |
Query |
getInsertQuery() |
SchemaDefinition |
getSchema() |
DBQueryDescriptor |
getSetRow(Map<String,String> csvRow,
Long routineId) |
String |
getTableName() |
boolean |
matchesSchema(ArrayList<String> toMatchSchema)
Checks if passed set of labels is
|
String |
toString() |
public ImportedTable(String tablename, SchemaDefinition schema, ArrayList<DBField> csvFieldsDefinition) throws InternalException
InternalExceptionpublic String createStatement()
public boolean matchesSchema(ArrayList<String> toMatchSchema)
toMatchSchema - public DBQueryDescriptor getSetRow(Map<String,String> csvRow, Long routineId)
public Query getInsertQuery()
public String getTableName()
public int cleanByImportRoutine(ImportRoutineDescriptor toClean, Connection conn) throws InvalidRequestException, SQLException
InvalidRequestExceptionSQLExceptionpublic Map<String,String> exportStatistics() throws SQLException, InternalException
SQLExceptionInternalExceptionpublic Map<String,String> exportCSV(CSVExportRequest request) throws InvalidRequestException, SQLException, InternalException, IOException
public SchemaDefinition getSchema()
Copyright © 2020. All Rights Reserved.