org.relique.jdbc.csv
Class CsvDriver

java.lang.Object
  extended byorg.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.

Author:
Zoran Milakovic

Field Summary
static java.lang.String BINARY_TYPE
           
static java.lang.String CARRIAGE_RETURN_ESCAPE
           
static java.lang.String CHARSET
           
static java.lang.String CREATE
           
static boolean DEBUG
           
static java.lang.String DEFAULT_CARRIAGE_RETURN_ESCAPE
           
static boolean DEFAULT_CREATE
           
static java.lang.String DEFAULT_DOUBLE_QUOTE_ESCAPE
           
static java.lang.String DEFAULT_EXTENSION
           
static long DEFAULT_FILE_MAXSIZE
           
static java.lang.String DEFAULT_LINE_BREAK_ESCAPE
           
static char DEFAULT_SEPARATOR
           
static boolean DEFAULT_SUPPRESS
           
static boolean DEFAULT_TRIM
           
static boolean DEFAULT_USE_QUOTES
           
static boolean DEFAULT_USE_QUOTES_ESCAPE
           
static java.lang.String FILE_EXTENSION
           
static java.lang.String FILE_NAME_EXT
           
static java.lang.String LINE_BREAK_ESCAPE
           
static java.lang.String MAXFILESIZE
           
static java.lang.String SEPARATOR
           
static java.lang.String SUPPRESS_HEADERS
           
static java.lang.String TRIM_STRING
           
static java.lang.String USE_QUOTES
           
static java.lang.String USE_QUOTES_ESCAPE
           
static java.lang.String VARCHAR_TYPE
           
 
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
static void log(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

MAXFILESIZE

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

CREATE

public static final java.lang.String CREATE
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

LINE_BREAK_ESCAPE

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

CARRIAGE_RETURN_ESCAPE

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

USE_QUOTES

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

USE_QUOTES_ESCAPE

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

TRIM_STRING

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

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

DEFAULT_CREATE

public static final boolean DEFAULT_CREATE
See Also:
Constant Field Values

DEFAULT_FILE_MAXSIZE

public static final long DEFAULT_FILE_MAXSIZE
See Also:
Constant Field Values

DEFAULT_LINE_BREAK_ESCAPE

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

DEFAULT_DOUBLE_QUOTE_ESCAPE

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

DEFAULT_CARRIAGE_RETURN_ESCAPE

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

DEFAULT_USE_QUOTES

public static final boolean DEFAULT_USE_QUOTES
See Also:
Constant Field Values

DEFAULT_USE_QUOTES_ESCAPE

public static final boolean DEFAULT_USE_QUOTES_ESCAPE
See Also:
Constant Field Values

DEFAULT_TRIM

public static final boolean DEFAULT_TRIM
See Also:
Constant Field Values

BINARY_TYPE

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

VARCHAR_TYPE

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

FILE_NAME_EXT

public static java.lang.String FILE_NAME_EXT

DEBUG

public static boolean DEBUG
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:

log

public static void log(java.lang.String message)


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