org.relique.jdbc.csv
Class CsvDriver
java.lang.Object
|
+--org.relique.jdbc.csv.CsvDriver
- All Implemented Interfaces:
- java.sql.Driver
- public class CsvDriver
- extends java.lang.Object
- implements java.sql.Driver
This class implements the Driver interface for the CsvJdbc driver.
- Version:
- $Id: CsvDriver.java,v 1.5 2003/01/16 09:03:59 tskutnik Exp $
- Author:
- Jonathan Ackerman, Sander Brienen, JD Evora, Tomasz Skutnik
Method Summary |
(package private) static void |
()
|
boolean |
acceptsURL(java.lang.String url)
Description of the Method |
java.sql.Connection |
connect(java.lang.String url,
java.util.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 |
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.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, registerNatives, toString, wait, wait, wait |
DEFAULT_EXTENSION
public static final java.lang.String DEFAULT_EXTENSION
DEFAULT_SEPARATOR
public static final char DEFAULT_SEPARATOR
DEFAULT_SUPPRESS
public static final boolean DEFAULT_SUPPRESS
FILE_EXTENSION
public static final java.lang.String FILE_EXTENSION
SEPARATOR
public static final java.lang.String SEPARATOR
SUPPRESS_HEADERS
public static final java.lang.String SUPPRESS_HEADERS
CHARSET
public static final java.lang.String CHARSET
URL_PREFIX
private static final java.lang.String URL_PREFIX
info
private java.util.Properties info
CsvDriver
public CsvDriver()
getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
- Gets the propertyInfo attribute of the CsvDriver object
- Specified by:
getPropertyInfo
in interface java.sql.Driver
- Parameters:
url
- Description of Parameterinfo
- Description of Parameter- Returns:
- The propertyInfo value
- Throws:
java.sql.SQLException
- Description of Exception- Since:
-
getMajorVersion
public int getMajorVersion()
- Gets the majorVersion attribute of the CsvDriver object
- Specified by:
getMajorVersion
in interface java.sql.Driver
- Returns:
- The majorVersion value
- Since:
-
getMinorVersion
public int getMinorVersion()
- Gets the minorVersion attribute of the CsvDriver object
- Specified by:
getMinorVersion
in interface java.sql.Driver
- Returns:
- The minorVersion value
- Since:
-
connect
public java.sql.Connection connect(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
- Description of the Method
- Specified by:
connect
in interface java.sql.Driver
- Parameters:
url
- Description of Parameterinfo
- Description of Parameter- Returns:
- Description of the Returned Value
- Throws:
java.sql.SQLException
- Description of Exception- Since:
-
acceptsURL
public boolean acceptsURL(java.lang.String url)
throws java.sql.SQLException
- Description of the Method
- Specified by:
acceptsURL
in interface java.sql.Driver
- Parameters:
url
- Description of Parameter- Returns:
- Description of the Returned Value
- Throws:
java.sql.SQLException
- Description of Exception- Since:
-
jdbcCompliant
public boolean jdbcCompliant()
- Description of the Method
- Specified by:
jdbcCompliant
in interface java.sql.Driver
- Returns:
- Description of the Returned Value
- Since:
-
static void ()
Check out http://csvjdbc.sourceforge.net for more info.