OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ai.heavy.jdbc.HeavyAIDriver Class Reference
+ Inheritance diagram for ai.heavy.jdbc.HeavyAIDriver:
+ Collaboration diagram for ai.heavy.jdbc.HeavyAIDriver:

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 final String HEAVYAI_PREFIX = "jdbc:heavyai:"
 

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(HeavyAIDriver.class)
 

Static Private Member Functions

static boolean isValidURL (String url)
 

Detailed Description

Definition at line 30 of file HeavyAIDriver.java.

Member Function Documentation

ai.heavy.jdbc.HeavyAIDriver.[static initializer] ( )
inlinestaticpackage
boolean ai.heavy.jdbc.HeavyAIDriver.acceptsURL ( String  url) throws SQLException
inline

Definition at line 81 of file HeavyAIDriver.java.

References ai.heavy.jdbc.HeavyAIDriver.isValidURL().

81  { // logger.debug("Entered");
82  return isValidURL(url);
83  }
static boolean isValidURL(String url)

+ Here is the call graph for this function:

Connection ai.heavy.jdbc.HeavyAIDriver.connect ( String  url,
Properties  info 
) throws SQLException
inline

Definition at line 70 of file HeavyAIDriver.java.

References ai.heavy.jdbc.HeavyAIDriver.isValidURL().

71  { // logger.debug("Entered");
72  if (!isValidURL(url)) {
73  return null;
74  }
75 
76  url = url.trim();
77  return new HeavyAIConnection(url, info);
78  }
static boolean isValidURL(String url)

+ Here is the call graph for this function:

int ai.heavy.jdbc.HeavyAIDriver.getMajorVersion ( )
inline

Definition at line 105 of file HeavyAIDriver.java.

References ai.heavy.jdbc.HeavyAIDriver.DriverMajorVersion.

105  {
106  return DriverMajorVersion;
107  }
int ai.heavy.jdbc.HeavyAIDriver.getMinorVersion ( )
inline

Definition at line 110 of file HeavyAIDriver.java.

References ai.heavy.jdbc.HeavyAIDriver.DriverMinorVersion.

110  {
111  return DriverMinorVersion;
112  }
Logger ai.heavy.jdbc.HeavyAIDriver.getParentLogger ( )
inline

Definition at line 120 of file HeavyAIDriver.java.

120  {
121  return null;
122  }
DriverPropertyInfo [] ai.heavy.jdbc.HeavyAIDriver.getPropertyInfo ( String  url,
Properties  info 
) throws SQLException
inline

Definition at line 99 of file HeavyAIDriver.java.

100  { // logger.debug("Entered");
101  return null;
102  }
static boolean ai.heavy.jdbc.HeavyAIDriver.isValidURL ( String  url)
inlinestaticprivate

Validates a URL

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

Definition at line 91 of file HeavyAIDriver.java.

References ai.heavy.jdbc.HeavyAIDriver.HEAVYAI_PREFIX, ai.heavy.jdbc.HeavyAIDriver.MAPD_PREFIX, and ai.heavy.jdbc.HeavyAIDriver.OMNISCI_PREFIX.

Referenced by ai.heavy.jdbc.HeavyAIDriver.acceptsURL(), and ai.heavy.jdbc.HeavyAIDriver.connect().

91  {
92  return url != null
93  && (url.toLowerCase().startsWith(OMNISCI_PREFIX)
94  || url.toLowerCase().startsWith(MAPD_PREFIX)
95  || url.toLowerCase().startsWith(HEAVYAI_PREFIX));
96  }
static final String MAPD_PREFIX
static final String HEAVYAI_PREFIX
static final String OMNISCI_PREFIX

+ Here is the caller graph for this function:

boolean ai.heavy.jdbc.HeavyAIDriver.jdbcCompliant ( )
inline

Definition at line 115 of file HeavyAIDriver.java.

115  {
116  return false;
117  }

Member Data Documentation

int ai.heavy.jdbc.HeavyAIDriver.DriverMajorVersion = -1
staticpackage
int ai.heavy.jdbc.HeavyAIDriver.DriverMinorVersion = -1
staticpackage
String ai.heavy.jdbc.HeavyAIDriver.DriverVersion = "UNKNOWN"
staticpackage
final String ai.heavy.jdbc.HeavyAIDriver.HEAVYAI_PREFIX = "jdbc:heavyai:"
static

Definition at line 38 of file HeavyAIDriver.java.

Referenced by ai.heavy.jdbc.HeavyAIDriver.isValidURL().

final org.slf4j.Logger ai.heavy.jdbc.HeavyAIDriver.logger = LoggerFactory.getLogger(HeavyAIDriver.class)
staticpackage

Definition at line 35 of file HeavyAIDriver.java.

final String ai.heavy.jdbc.HeavyAIDriver.MAPD_PREFIX = "jdbc:mapd:"
static

Definition at line 37 of file HeavyAIDriver.java.

Referenced by ai.heavy.jdbc.HeavyAIDriver.isValidURL().

final String ai.heavy.jdbc.HeavyAIDriver.OMNISCI_PREFIX = "jdbc:omnisci:"
static

Definition at line 36 of file HeavyAIDriver.java.

Referenced by ai.heavy.jdbc.HeavyAIDriver.isValidURL().

final String ai.heavy.jdbc.HeavyAIDriver.VERSION_FILE = "version.properties"
staticpackage

Definition at line 34 of file HeavyAIDriver.java.


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