br.ufg.integrate.wrapper.csv
Class CsvDriver

java.lang.Object
  extended by br.ufg.integrate.wrapper.csv.CsvDriver
All Implemented Interfaces:
Driver

public class CsvDriver
extends Object
implements Driver

This class implements the Driver interface for the CsvJdbc driver.

Version:
$Id: CsvDriver.java,v 1.6 2007/09/19
Author:
Jonathan Ackerman, Sander Brienen, JD Evora, Tomasz Skutnik, Rogerio Arantes Gaioso

Field Summary
static String CHARSET
           
static String DEFAULT_EXTENSION
           
static char DEFAULT_SEPARATOR
           
static boolean DEFAULT_SUPPRESS
           
static String FILE_EXTENSION
           
static String SEPARATOR
           
static String SUPPRESS_HEADERS
           
 
Constructor Summary
CsvDriver()
           
 
Method Summary
 boolean acceptsURL(String url)
          Description of the Method
 Connection connect(String url, Properties info)
          Description of the Method
 int getMajorVersion()
          Gets the majorVersion attribute of the CsvDriver object
 int getMinorVersion()
          Gets the minorVersion attribute of the CsvDriver object
 DriverPropertyInfo[] getPropertyInfo(String url, Properties info)
          Gets the propertyInfo attribute of the CsvDriver object
 boolean jdbcCompliant()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_EXTENSION

public static final String DEFAULT_EXTENSION
See Also:
Constant Field Values

DEFAULT_SEPARATOR

public static final char DEFAULT_SEPARATOR
See Also:
Constant Field Values

DEFAULT_SUPPRESS

public static final boolean DEFAULT_SUPPRESS
See Also:
Constant Field Values

FILE_EXTENSION

public static final String FILE_EXTENSION
See Also:
Constant Field Values

SEPARATOR

public static final String SEPARATOR
See Also:
Constant Field Values

SUPPRESS_HEADERS

public static final String SUPPRESS_HEADERS
See Also:
Constant Field Values

CHARSET

public static final String CHARSET
See Also:
Constant Field Values
Constructor Detail

CsvDriver

public CsvDriver()
Method Detail

acceptsURL

public boolean acceptsURL(String url)
                   throws SQLException
Description of the Method

Specified by:
acceptsURL in interface Driver
Parameters:
url - Description of Parameter
Returns:
Description of the Returned Value
Throws:
SQLException - Description of Exception
Since:

connect

public Connection connect(String url,
                          Properties info)
                   throws SQLException
Description of the Method

Specified by:
connect in interface Driver
Parameters:
url - Description of Parameter
info - Description of Parameter
Returns:
Description of the Returned Value
Throws:
SQLException - Description of Exception
Since:

getMajorVersion

public int getMajorVersion()
Gets the majorVersion attribute of the CsvDriver object

Specified by:
getMajorVersion in interface Driver
Returns:
The majorVersion value
Since:

getMinorVersion

public int getMinorVersion()
Gets the minorVersion attribute of the CsvDriver object

Specified by:
getMinorVersion in interface Driver
Returns:
The minorVersion value
Since:

getPropertyInfo

public DriverPropertyInfo[] getPropertyInfo(String url,
                                            Properties info)
                                     throws SQLException
Gets the propertyInfo attribute of the CsvDriver object

Specified by:
getPropertyInfo in interface Driver
Parameters:
url - Description of Parameter
info - Description of Parameter
Returns:
The propertyInfo value
Throws:
SQLException - Description of Exception
Since:

jdbcCompliant

public boolean jdbcCompliant()
Description of the Method

Specified by:
jdbcCompliant in interface Driver
Returns:
Description of the Returned Value
Since:


Copyright © 2008 Rogério Arantes Gaioso. All Rights Reserved.