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.html,v 1.1 2003/05/12 16:19:42 sinisa Exp $
Author:
Jonathan Ackerman
, Sander Brienen , JD Evora , Tomasz Skutnik

Field Summary
static java.lang.String CHARSET
           
static java.lang.String DEFAULT_EXTENSION
           
static char DEFAULT_SEPARATOR
           
static boolean DEFAULT_SUPPRESS
           
static java.lang.String FILE_EXTENSION
           
static java.lang.String SEPARATOR
           
static java.lang.String SUPPRESS_HEADERS
           
 
Constructor Summary
CsvDriver()
           
 
Method Summary
 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, toString, wait, wait, wait
 

Field Detail

DEFAULT_EXTENSION

public static final java.lang.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 java.lang.String FILE_EXTENSION
See Also:
Constant Field Values

SEPARATOR

public static final java.lang.String SEPARATOR
See Also:
Constant Field Values

SUPPRESS_HEADERS

public static final java.lang.String SUPPRESS_HEADERS
See Also:
Constant Field Values

CHARSET

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

CsvDriver

public CsvDriver()
Method Detail

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 Parameter
info - 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 Parameter
info - 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:


Copyright © 2002-2003 Together - the Workgroup. All Rights Reserved.