OmniSciDB  343343d194
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.omnisci.jdbc.OmniSciDriver Class Reference
+ Inheritance diagram for com.omnisci.jdbc.OmniSciDriver:
+ Collaboration diagram for com.omnisci.jdbc.OmniSciDriver:

Public Member Functions

Connection connect (String url, Properties info) throws SQLException
 
boolean acceptsURL (String url) throws SQLException
 
DriverPropertyInfo[] getPropertyInfo (String url, Properties info) throws SQLException
 
int getMajorVersion ()
 
int getMinorVersion ()
 
boolean jdbcCompliant ()
 
Logger getParentLogger () throws SQLFeatureNotSupportedException
 

Static Public Attributes

static final String OMNISCI_PREFIX = "jdbc:omnisci:"
 
static final String MAPD_PREFIX = "jdbc:mapd:"
 

Static Package Functions

 [static initializer]
 

Static Package Attributes

static final int DriverMajorVersion = 2
 
static final int DriverMinorVersion = 1
 
static final org.slf4j.Logger logger = LoggerFactory.getLogger(OmniSciDriver.class)
 

Static Private Member Functions

static boolean isValidURL (String url)
 

Detailed Description

Author
michael

Definition at line 33 of file OmniSciDriver.java.

Member Function Documentation

com.omnisci.jdbc.OmniSciDriver.[static initializer] ( )
inlinestaticpackage
boolean com.omnisci.jdbc.OmniSciDriver.acceptsURL ( String  url) throws SQLException
inline

Definition at line 61 of file OmniSciDriver.java.

References com.omnisci.jdbc.OmniSciDriver.isValidURL().

61  { // logger.debug("Entered");
62  return isValidURL(url);
63  }
static boolean isValidURL(String url)

+ Here is the call graph for this function:

Connection com.omnisci.jdbc.OmniSciDriver.connect ( String  url,
Properties  info 
) throws SQLException
inline

Definition at line 50 of file OmniSciDriver.java.

References com.omnisci.jdbc.OmniSciDriver.isValidURL().

51  { // logger.debug("Entered");
52  if (!isValidURL(url)) {
53  return null;
54  }
55 
56  url = url.trim();
57  return new OmniSciConnection(url, info);
58  }
static boolean isValidURL(String url)

+ Here is the call graph for this function:

int com.omnisci.jdbc.OmniSciDriver.getMajorVersion ( )
inline

Definition at line 84 of file OmniSciDriver.java.

References com.omnisci.jdbc.OmniSciDriver.DriverMajorVersion.

84  {
85  return DriverMajorVersion;
86  }
static final int DriverMajorVersion
int com.omnisci.jdbc.OmniSciDriver.getMinorVersion ( )
inline

Definition at line 89 of file OmniSciDriver.java.

References com.omnisci.jdbc.OmniSciDriver.DriverMinorVersion.

89  {
90  return DriverMinorVersion;
91  }
static final int DriverMinorVersion
Logger com.omnisci.jdbc.OmniSciDriver.getParentLogger ( ) throws SQLFeatureNotSupportedException
inline

Definition at line 99 of file OmniSciDriver.java.

99  {
100  return null;
101  }
DriverPropertyInfo [] com.omnisci.jdbc.OmniSciDriver.getPropertyInfo ( String  url,
Properties  info 
) throws SQLException
inline

Definition at line 78 of file OmniSciDriver.java.

79  { // logger.debug("Entered");
80  return null;
81  }
static boolean com.omnisci.jdbc.OmniSciDriver.isValidURL ( String  url)
inlinestaticprivate

Validates a URL

Parameters
url
Returns
true if the URL is valid, false otherwise

Definition at line 71 of file OmniSciDriver.java.

References com.omnisci.jdbc.OmniSciDriver.MAPD_PREFIX, and com.omnisci.jdbc.OmniSciDriver.OMNISCI_PREFIX.

Referenced by com.omnisci.jdbc.OmniSciDriver.acceptsURL(), and com.omnisci.jdbc.OmniSciDriver.connect().

71  {
72  return url != null
73  && (url.toLowerCase().startsWith(OMNISCI_PREFIX)
74  || url.toLowerCase().startsWith(MAPD_PREFIX));
75  }
static final String OMNISCI_PREFIX
static final String MAPD_PREFIX

+ Here is the caller graph for this function:

boolean com.omnisci.jdbc.OmniSciDriver.jdbcCompliant ( )
inline

Definition at line 94 of file OmniSciDriver.java.

94  {
95  return false;
96  }

Member Data Documentation

final int com.omnisci.jdbc.OmniSciDriver.DriverMajorVersion = 2
staticpackage
final int com.omnisci.jdbc.OmniSciDriver.DriverMinorVersion = 1
staticpackage
final org.slf4j.Logger com.omnisci.jdbc.OmniSciDriver.logger = LoggerFactory.getLogger(OmniSciDriver.class)
staticpackage

Definition at line 37 of file OmniSciDriver.java.

final String com.omnisci.jdbc.OmniSciDriver.MAPD_PREFIX = "jdbc:mapd:"
static

Definition at line 39 of file OmniSciDriver.java.

Referenced by com.omnisci.jdbc.OmniSciDriver.isValidURL().

final String com.omnisci.jdbc.OmniSciDriver.OMNISCI_PREFIX = "jdbc:omnisci:"
static

Definition at line 38 of file OmniSciDriver.java.

Referenced by com.omnisci.jdbc.OmniSciDriver.isValidURL().


The documentation for this class was generated from the following file: