com.healthmarketscience.jackcess
Class ImportUtil.Builder

java.lang.Object
  extended by com.healthmarketscience.jackcess.ImportUtil.Builder
Enclosing class:
ImportUtil

public static class ImportUtil.Builder
extends Object

Builder which simplifies configuration of an import operation.


Constructor Summary
ImportUtil.Builder(Database db)
           
ImportUtil.Builder(Database db, String tableName)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportUtil.Builder

public ImportUtil.Builder(Database db)

ImportUtil.Builder

public ImportUtil.Builder(Database db,
                          String tableName)
Method Detail

setDatabase

public ImportUtil.Builder setDatabase(Database db)

setTableName

public ImportUtil.Builder setTableName(String tableName)

setDelimiter

public ImportUtil.Builder setDelimiter(String delim)

setQuote

public ImportUtil.Builder setQuote(char quote)

setFilter

public ImportUtil.Builder setFilter(ImportFilter filter)

setUseExistingTable

public ImportUtil.Builder setUseExistingTable(boolean useExistingTable)

setHeader

public ImportUtil.Builder setHeader(boolean header)

importResultSet

public String importResultSet(ResultSet source)
                       throws SQLException,
                              IOException
Throws:
SQLException
IOException
See Also:
ImportUtil.importResultSet(ResultSet,Database,String,ImportFilter,boolean)

importFile

public String importFile(File f)
                  throws IOException
Throws:
IOException
See Also:
ImportUtil.importFile(File,Database,String,String,char,ImportFilter,boolean,boolean)

importReader

public String importReader(BufferedReader reader)
                    throws IOException
Throws:
IOException
See Also:
ImportUtil.importReader(BufferedReader,Database,String,String,char,ImportFilter,boolean,boolean)


Copyright © 2005-2013 Health Market Science. All Rights Reserved.