|
Elexis API documentationVersion 2.1.6 as of January 22 2012 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.healthmarketscience.jackcess.ImportUtil
public class ImportUtil
| Method Summary | |
|---|---|
static java.lang.String |
importFile(java.io.File f,
Database db,
java.lang.String name,
java.lang.String delim)
Copy a delimited text file into a new table in this database Equivalent to: importFile(f, name, db, delim, SimpleImportFilter.INSTANCE); |
static java.lang.String |
importFile(java.io.File f,
Database db,
java.lang.String name,
java.lang.String delim,
ImportFilter filter)
Copy a delimited text file into a new table in this database Equivalent to: importReader(new BufferedReader(new FileReader(f)), db, name, delim,
filter); |
static java.lang.String |
importReader(java.io.BufferedReader in,
Database db,
java.lang.String name,
java.lang.String delim)
Copy a delimited text file into a new table in this database Equivalent to: importReader(in, db, name, delim, SimpleImportFilter.INSTANCE); |
static java.lang.String |
importReader(java.io.BufferedReader in,
Database db,
java.lang.String name,
java.lang.String delim,
ImportFilter filter)
Copy a delimited text file into a new table in this database Equivalent to: importReader(in, db, name, delim, filter, false); |
static java.lang.String |
importReader(java.io.BufferedReader in,
Database db,
java.lang.String name,
java.lang.String delim,
ImportFilter filter,
boolean useExistingTable)
Copy a delimited text file into a new (or optionally exixsting) table in this database |
static java.lang.String |
importResultSet(java.sql.ResultSet source,
Database db,
java.lang.String name)
Copy an existing JDBC ResultSet into a new table in this database Equivalent to: importResultSet(source, db, name, SimpleImportFilter.INSTANCE); |
static java.lang.String |
importResultSet(java.sql.ResultSet source,
Database db,
java.lang.String name,
ImportFilter filter)
Copy an existing JDBC ResultSet into a new table in this database Equivalent to: importResultSet(source, db, name, filter, false); |
static java.lang.String |
importResultSet(java.sql.ResultSet source,
Database db,
java.lang.String name,
ImportFilter filter,
boolean useExistingTable)
Copy an existing JDBC ResultSet into a new (or optionally existing) table in this database |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String importResultSet(java.sql.ResultSet source,
Database db,
java.lang.String name)
throws java.sql.SQLException,
java.io.IOException
Equivalent to: importResultSet(source, db, name, SimpleImportFilter.INSTANCE);
name - Name of the new table to createsource - ResultSet to copy from
java.sql.SQLException
java.io.IOExceptionimportResultSet(ResultSet,Database,String,ImportFilter)
public static java.lang.String importResultSet(java.sql.ResultSet source,
Database db,
java.lang.String name,
ImportFilter filter)
throws java.sql.SQLException,
java.io.IOException
Equivalent to: importResultSet(source, db, name, filter, false);
name - Name of the new table to createsource - ResultSet to copy fromfilter - valid import filter
java.sql.SQLException
java.io.IOExceptionimportResultSet(ResultSet,Database,String,ImportFilter,boolean)
public static java.lang.String importResultSet(java.sql.ResultSet source,
Database db,
java.lang.String name,
ImportFilter filter,
boolean useExistingTable)
throws java.sql.SQLException,
java.io.IOException
name - Name of the new table to createsource - ResultSet to copy fromfilter - valid import filteruseExistingTable - if true use current table if it already exists, otherwise, create new
table with unique name
java.sql.SQLException
java.io.IOException
public static java.lang.String importFile(java.io.File f,
Database db,
java.lang.String name,
java.lang.String delim)
throws java.io.IOException
Equivalent to: importFile(f, name, db, delim, SimpleImportFilter.INSTANCE);
name - Name of the new table to createf - Source file to importdelim - Regular expression representing the delimiter string.
java.io.IOExceptionimportFile(File,Database,String,String,ImportFilter)
public static java.lang.String importFile(java.io.File f,
Database db,
java.lang.String name,
java.lang.String delim,
ImportFilter filter)
throws java.io.IOException
Equivalent to: importReader(new BufferedReader(new FileReader(f)), db, name, delim,
filter);
name - Name of the new table to createf - Source file to importdelim - Regular expression representing the delimiter string.filter - valid import filter
java.io.IOExceptionimportReader(BufferedReader,Database,String,String,ImportFilter)
public static java.lang.String importReader(java.io.BufferedReader in,
Database db,
java.lang.String name,
java.lang.String delim)
throws java.io.IOException
Equivalent to: importReader(in, db, name, delim, SimpleImportFilter.INSTANCE);
name - Name of the new table to createin - Source reader to importdelim - Regular expression representing the delimiter string.
java.io.IOExceptionimportReader(BufferedReader,Database,String,String,ImportFilter)
public static java.lang.String importReader(java.io.BufferedReader in,
Database db,
java.lang.String name,
java.lang.String delim,
ImportFilter filter)
throws java.io.IOException
Equivalent to: importReader(in, db, name, delim, filter, false);
name - Name of the new table to createin - Source reader to importdelim - Regular expression representing the delimiter string.filter - valid import filter
java.io.IOExceptionimportReader(BufferedReader,Database,String,String,ImportFilter,boolean)
public static java.lang.String importReader(java.io.BufferedReader in,
Database db,
java.lang.String name,
java.lang.String delim,
ImportFilter filter,
boolean useExistingTable)
throws java.io.IOException
name - Name of the new table to createin - Source reader to importdelim - Regular expression representing the delimiter string.filter - valid import filteruseExistingTable - if true use current table if it already exists, otherwise, create new
table with unique name
java.io.IOException
|
Elexis API documentationVersion 2.1.6 as of January 22 2012 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||