/** * <p>Gets this drivers minor version number * @return int representing the driver's minor version */ public int getDriverMinorVersion() { return TeiidDriver.getInstance().getMinorVersion(); }
/** * <p>Get the name of this JDBC driver * @return String representing the driver's name * @throws SQLException, if the connection is already closed. */ public String getDriverName() throws SQLException { return TeiidDriver.getInstance().getDriverName(); }
/** * <p>Gets this drivers minor version number * @return int representing the driver's minor version */ public int getDriverMinorVersion() { return TeiidDriver.getInstance().getMinorVersion(); }
/** * <p>Get the name of this JDBC driver * @return String representing the driver's name * @throws SQLException, if the connection is already closed. */ public String getDriverName() throws SQLException { return TeiidDriver.getInstance().getDriverName(); }
/** * <p>Gets this drivers major version number * @return int representing the driver's major version */ public int getDriverMajorVersion() { return TeiidDriver.getInstance().getMajorVersion(); }
/** * <p>Gets this drivers major version number * @return int representing the driver's major version */ public int getDriverMajorVersion() { return TeiidDriver.getInstance().getMajorVersion(); }
public String getDatabaseProductVersion() throws SQLException { return TeiidDriver.getInstance().getMajorVersion() + "." + TeiidDriver.getInstance().getMinorVersion(); //$NON-NLS-1$ }
public String getDatabaseProductVersion() throws SQLException { return TeiidDriver.getInstance().getMajorVersion() + "." + TeiidDriver.getInstance().getMinorVersion(); //$NON-NLS-1$ }
@Help.Doc(text = "Get a Teiid connection") public static TeiidSql connect( @Help.Doc(text = "url") String url, @Help.Doc(text = "user") String user, @Help.Doc(text = "password") String password) throws SQLException { Properties info = new Properties(); if (user != null) { info.setProperty(TeiidURL.CONNECTION.USER_NAME, user); } if (password != null) { info.setProperty(TeiidURL.CONNECTION.PASSWORD, password); } Connection c = TeiidDriver.getInstance().connect(url, info); if (c == null) { throw new SQLException("Invalid url " + url); } return new TeiidSql(c); }
@Override public Connection open() throws SQLException, TeiidProcessingException { this.connection = buildConnection(TeiidDriver.getInstance(), this.vdbName, this.vdbVersion, this.properties); ODBCServerRemoteImpl.setConnectionProperties(connection); ODBCServerRemoteImpl.setConnectionProperties(connection, this.properties); getVDBInternal(); return this.connection; }
/** Invalid format of urls*/ @Test public void testAcceptsURL2() throws Exception { assertTrue(!TeiidDriver.getInstance().acceptsURL("jdbc:matamatrix:test")); //$NON-NLS-1$ assertTrue(!TeiidDriver.getInstance().acceptsURL("metamatrix:test")); //$NON-NLS-1$ assertTrue(!TeiidDriver.getInstance().acceptsURL("jdbc&matamatrix:test")); //$NON-NLS-1$ assertTrue(!TeiidDriver.getInstance().acceptsURL("jdbc;metamatrix:test")); //$NON-NLS-1$ }