/** * PUBLIC: * Provide the details of my connection information. This is primarily for JMX runtime services. * @return java.lang.String */ public String getConnectionDetails() { return this.getConnectionString(); }
/** * PUBLIC: * Provide the details of my connection information. This is primarily for JMX runtime services. * @return java.lang.String */ public String getConnectionDetails() { return this.getConnectionString(); }
/** * PUBLIC: * Provide the details of my connection information. This is primarily for JMX runtime services. * @return java.lang.String */ public String getConnectionDetails() { return this.getConnectionString(); }
/** * PUBLIC: * Return the JDBC connection string. * This is a combination of the driver-specific URL header and the database URL. */ public String getConnectionString() throws ValidationException { return getDefaultConnector().getConnectionString(); }
/** * INTERNAL: * Print something useful on the log. */ public void toString(PrintWriter writer) { writer.println(ToStringLocalization.buildMessage("datasource_URL", (Object[])null) + "=> \"" + this.getConnectionString() + "\""); }
/** * PUBLIC: * Print connection string. */ public String toString() { return Helper.getShortClassName(getClass()) + "(" + getConnectionString() + ")"; }
/** * PUBLIC: * Return the JDBC connection string. * This is a combination of the driver-specific URL header and the database URL. */ public String getConnectionString() throws ValidationException { return getDefaultConnector().getConnectionString(); }
/** * PUBLIC: * Print connection string. */ public String toString() { return Helper.getShortClassName(getClass()) + "(" + getConnectionString() + ")"; }
/** * INTERNAL: * Print something useful on the log. */ public void toString(PrintWriter writer) { writer.println(ToStringLocalization.buildMessage("datasource_URL", (Object[])null) + "=> \"" + this.getConnectionString() + "\""); }
/** * PUBLIC: * Return the JDBC connection string. * This is a combination of the driver-specific URL header and the database URL. */ public String getConnectionString() throws ValidationException { return getDefaultConnector().getConnectionString(); }
/** * INTERNAL: * Print something useful on the log. */ public void toString(PrintWriter writer) { writer.println(ToStringLocalization.buildMessage("datasource_URL", (Object[])null) + "=> \"" + this.getConnectionString() + "\""); }
/** * PUBLIC: * Print connection string. */ public String toString() { return Helper.getShortClassName(getClass()) + "(" + getConnectionString() + ")"; }
/** * INTERNAL: * Connect directly - without using DriverManager. Return the Connection. * @return java.sql.Connection */ protected Connection directConnect(Properties properties) throws DatabaseException { if(this.driver == null) { this.instantiateDriver(); } try { return this.driver.connect(this.getConnectionString(), properties); } catch (SQLException exception) { this.clearDriverClassAndDriver(); throw DatabaseException.sqlException(exception, true); } }
/** * INTERNAL: * Connect directly - without using DriverManager. Return the Connection. * @return java.sql.Connection */ protected Connection directConnect(Properties properties) throws DatabaseException { if(this.driver == null) { this.instantiateDriver(); } try { return this.driver.connect(this.getConnectionString(), properties); } catch (SQLException exception) { this.clearDriverClassAndDriver(); throw DatabaseException.sqlException(exception, true); } }
/** * INTERNAL: * Connect directly - without using DriverManager. Return the Connection. * @return java.sql.Connection */ protected Connection directConnect(Properties properties) throws DatabaseException { if(this.driver == null) { this.instantiateDriver(); } try { return this.driver.connect(this.getConnectionString(), properties); } catch (SQLException exception) { this.clearDriverClassAndDriver(); throw DatabaseException.sqlException(exception, true); } }
String connectionString = this.getConnectionString(); if (this.shouldUseDriverManager(properties, session)) { try { return DriverManager.getConnection(this.getConnectionString(), properties); } catch (SQLException sqlException) { driverManagerException = sqlException;
String connectionString = this.getConnectionString(); if (this.shouldUseDriverManager(properties, session)) { try { return DriverManager.getConnection(this.getConnectionString(), properties); } catch (SQLException sqlException) { driverManagerException = sqlException;
String connectionString = this.getConnectionString(); if (this.shouldUseDriverManager(properties, session)) { try { return DriverManager.getConnection(this.getConnectionString(), properties); } catch (SQLException sqlException) { driverManagerException = sqlException;
if (oldDefaultConnector != null) { isNewDriverRequired = isPropertyValueToBeUpdated(oldDefaultConnector.getDriverClassName(), driver); isNewConnectionStringRequired = isPropertyValueToBeUpdated(oldDefaultConnector.getConnectionString(), connectionString);