|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscriptella.driver.csv.CsvQuery
public class CsvQuery
Query for CSV file.
| Constructor Summary | |
|---|---|
CsvQuery(CSVReader queryReader,
PropertiesSubstitutor substitutor,
java.lang.String nullString,
boolean headers,
boolean trim)
Creates a query for CSVReader. |
|
| Method Summary | |
|---|---|
void |
execute(CSVReader reader,
QueryCallback queryCallback,
AbstractConnection.StatementCounter counter)
Executes a query over a specified text content. |
java.lang.Object |
getParameter(java.lang.String name)
Returns the value of parameter specified by name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CsvQuery(CSVReader queryReader,
PropertiesSubstitutor substitutor,
java.lang.String nullString,
boolean headers,
boolean trim)
queryReader - query CSVReader.substitutor - properties substitutor to use. The parameters for the substitutor must be set by a caller.headers - true if first line of input CSV file contains headers.trim - true if if extra whitespaces should be trimmed.nullString - string to treat as NULL.| Method Detail |
|---|
public void execute(CSVReader reader,
QueryCallback queryCallback,
AbstractConnection.StatementCounter counter)
throws java.io.IOException
reader - CSV content reader.queryCallback - callback to use for result set iteration.counter - statements counter.
java.io.IOException - if IO error occurs.public java.lang.Object getParameter(java.lang.String name)
ParametersCallbackThe callback internally delegates a call to parent callbacks if the parameter cannot be found.
getParameter in interface ParametersCallbackname - parameter name. Providers are allowed (but not required) to ignore a case of the name parameter
to comply with their internal model. For example JDBC drivers are case-insensitive to column names.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||