Tabnine Logo
Dialect.init
Code IndexAdd Tabnine to your IDE (free)

How to use
init
method
in
org.sonar.db.dialect.Dialect

Best Java code snippets using org.sonar.db.dialect.Dialect.init (Showing top 2 results out of 315)

origin: SonarSource/sonarqube

private void checkConnection() {
 Connection connection = null;
 try {
  connection = datasource.getConnection();
  dialect.init(connection.getMetaData());
 } catch (SQLException e) {
  throw new IllegalStateException("Can not connect to database. Please check connectivity and settings (see the properties prefixed by 'sonar.jdbc.').", e);
 } finally {
  DbUtils.closeQuietly(connection);
 }
}
origin: org.sonarsource.sonarqube/sonar-db-core

private void checkConnection() {
 Connection connection = null;
 try {
  connection = datasource.getConnection();
  dialect.init(connection.getMetaData());
 } catch (SQLException e) {
  throw new IllegalStateException("Can not connect to database. Please check connectivity and settings (see the properties prefixed by 'sonar.jdbc.').", e);
 } finally {
  DbUtils.closeQuietly(connection);
 }
}
org.sonar.db.dialectDialectinit

Javadoc

This method is called when connecting for the first time to the database.

Popular methods of Dialect

  • getId
  • getFalseSqlValue
  • getScrollDefaultFetchSize
    Fetch size to be used when scrolling large result sets.
  • getTrueSqlValue
  • getConnectionInitStatements
  • getDefaultDriverClassName
  • getValidationQuery
    Query used to validate the jdbc connection.
  • supportsMigration
    Indicates whether DB migration can be perform on the DB vendor implementation associated with the cu
  • getScrollSingleRowFetchSize
    Fetch size to scroll one row at a time. It sounds strange because obviously value is 1 in most cases
  • matchesJdbcUrl
    Used to autodetect dialect from connection URL
  • supportsUpsert
  • getSqlFromDual
  • supportsUpsert,
  • getSqlFromDual,
  • matchesJdbcURL

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now