org.objectweb.cjdbc.controller.backend
Class DriverCompliance
java.lang.Object
org.objectweb.cjdbc.controller.backend.DriverCompliance
- public class DriverCompliance
- extends java.lang.Object
This class checks if a given driver provides the mandatory features
necessary for C-JDBC.
- Version:
- 1.0
- Author:
- Emmanuel Cecchet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isCompliant
private boolean isCompliant
supportSetQueryTimeout
private boolean supportSetQueryTimeout
supportGetGeneratedKeys
private boolean supportGetGeneratedKeys
supportGetColumnCount
private boolean supportGetColumnCount
supportGetColumnClassName
private boolean supportGetColumnClassName
supportGetColumnTypeName
private boolean supportGetColumnTypeName
supportGetColumnType
private boolean supportGetColumnType
supportGetColumnDisplaySize
private boolean supportGetColumnDisplaySize
supportGetTableName
private boolean supportGetTableName
supportSetMaxRows
private boolean supportSetMaxRows
logger
private Trace logger
TIMEOUT_VALUE
private static final int TIMEOUT_VALUE
- See Also:
- Constant Field Values
DriverCompliance
public DriverCompliance(Trace logger)
- Builds a new DriverCompliance object.
- Parameters:
logger
- the logger to use
complianceTest
public boolean complianceTest(java.lang.String backendUrl,
java.lang.String login,
java.lang.String password)
throws java.net.ConnectException
- Check the driver compliance.
- Parameters:
backendUrl
- the JDBC URL to connect tologin
- the user loginpassword
- the user password
- Returns:
- true if the driver is C-JDBC compliant
- Throws:
java.net.ConnectException
- if it is not possible to connect to the backend
isCompliant
public boolean isCompliant()
- Returns:
- true if the driver is compliant to the C-JDBC requirements
supportGetGeneratedKeys
public boolean supportGetGeneratedKeys()
- Returns:
- true if the driver supports getGeneratedKeys
supportGetColumnClassName
public boolean supportGetColumnClassName()
- Returns:
- true if the driver supports getColumnClassName
supportGetColumnCount
public boolean supportGetColumnCount()
- Returns:
- true if the driver supports getColumnCount
supportGetColumnDisplaySize
public boolean supportGetColumnDisplaySize()
- Returns:
- true if the driver supports getColumnDisplaySize
supportGetColumnType
public boolean supportGetColumnType()
- Returns:
- true if the driver supports getColumnType
supportGetColumnTypeName
public boolean supportGetColumnTypeName()
- Returns:
- true if the driver supports getColumnTypeName
supportGetTableName
public boolean supportGetTableName()
- Returns:
- true if the driver supports getTableName
supportSetQueryTimeout
public boolean supportSetQueryTimeout()
- Returns:
- true if the driver supports setQueryTimeout
supportSetMaxRows
public boolean supportSetMaxRows()
- Returns:
- true if the driver supports Statement.setMaxRows
Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.