OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 ()
 

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 int DriverMajorVersion = -1
 
static int DriverMinorVersion = -1
 
static String DriverVersion = "UNKNOWN"
 
static final String VERSION_FILE = "version.properties"
 
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 34 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 84 of file OmniSciDriver.java.

References com.omnisci.jdbc.OmniSciDriver.isValidURL(), and setup.url.

84  { // logger.debug("Entered");
85  return isValidURL(url);
86  }
static boolean isValidURL(String url)
string url
Definition: setup.py:48

+ Here is the call graph for this function:

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

Definition at line 73 of file OmniSciDriver.java.

References com.omnisci.jdbc.OmniSciDriver.isValidURL(), and setup.url.

74  { // logger.debug("Entered");
75  if (!isValidURL(url)) {
76  return null;
77  }
78 
79  url = url.trim();
80  return new OmniSciConnection(url, info);
81  }
static boolean isValidURL(String url)
string url
Definition: setup.py:48

+ Here is the call graph for this function:

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

Definition at line 107 of file OmniSciDriver.java.

References com.omnisci.jdbc.OmniSciDriver.DriverMajorVersion.

107  {
108  return DriverMajorVersion;
109  }
int com.omnisci.jdbc.OmniSciDriver.getMinorVersion ( )
inline

Definition at line 112 of file OmniSciDriver.java.

References com.omnisci.jdbc.OmniSciDriver.DriverMinorVersion.

112  {
113  return DriverMinorVersion;
114  }
Logger com.omnisci.jdbc.OmniSciDriver.getParentLogger ( )
inline

Definition at line 122 of file OmniSciDriver.java.

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

Definition at line 101 of file OmniSciDriver.java.

102  { // logger.debug("Entered");
103  return null;
104  }
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 94 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().

94  {
95  return url != null
96  && (url.toLowerCase().startsWith(OMNISCI_PREFIX)
97  || url.toLowerCase().startsWith(MAPD_PREFIX));
98  }
static final String OMNISCI_PREFIX
static final String MAPD_PREFIX
string url
Definition: setup.py:48

+ Here is the caller graph for this function:

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

Definition at line 117 of file OmniSciDriver.java.

117  {
118  return false;
119  }

Member Data Documentation

int com.omnisci.jdbc.OmniSciDriver.DriverMajorVersion = -1
staticpackage
int com.omnisci.jdbc.OmniSciDriver.DriverMinorVersion = -1
staticpackage
String com.omnisci.jdbc.OmniSciDriver.DriverVersion = "UNKNOWN"
staticpackage
final org.slf4j.Logger com.omnisci.jdbc.OmniSciDriver.logger = LoggerFactory.getLogger(OmniSciDriver.class)
staticpackage

Definition at line 39 of file OmniSciDriver.java.

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

Definition at line 41 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 40 of file OmniSciDriver.java.

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

final String com.omnisci.jdbc.OmniSciDriver.VERSION_FILE = "version.properties"
staticpackage

Definition at line 38 of file OmniSciDriver.java.


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