public static class ImportUtil.Builder extends Object
Constructor and Description |
---|
Builder(Database db) |
Builder(Database db,
String tableName) |
Modifier and Type | Method and Description |
---|---|
String |
importFile(File f) |
String |
importReader(BufferedReader reader) |
String |
importResultSet(ResultSet source) |
ImportUtil.Builder |
setDatabase(Database db) |
ImportUtil.Builder |
setDelimiter(String delim) |
ImportUtil.Builder |
setFilter(ImportFilter filter) |
ImportUtil.Builder |
setHeader(boolean header) |
ImportUtil.Builder |
setQuote(char quote) |
ImportUtil.Builder |
setTableName(String tableName) |
ImportUtil.Builder |
setUseExistingTable(boolean useExistingTable) |
public Builder(Database db)
public ImportUtil.Builder setDatabase(Database db)
public ImportUtil.Builder setTableName(String tableName)
public ImportUtil.Builder setDelimiter(String delim)
public ImportUtil.Builder setQuote(char quote)
public ImportUtil.Builder setFilter(ImportFilter filter)
public ImportUtil.Builder setUseExistingTable(boolean useExistingTable)
public ImportUtil.Builder setHeader(boolean header)
public String importResultSet(ResultSet source) throws SQLException, IOException
public String importFile(File f) throws IOException
public String importReader(BufferedReader reader) throws IOException
Copyright © 2005–2024 OpenHMS. All rights reserved.