Tabnine Logo
ConnectionSourceBase.addWarn
Code IndexAdd Tabnine to your IDE (free)

How to use
addWarn
method
in
ch.qos.logback.core.db.ConnectionSourceBase

Best Java code snippets using ch.qos.logback.core.db.ConnectionSourceBase.addWarn (Showing top 8 results out of 315)

origin: camunda/camunda-bpm-platform

/**
 * Learn relevant information about this connection source.
 *
 */
public void discoverConnectionProperties() {
 Connection connection = null;
 try {
  connection = getConnection();
  if (connection == null) {
   addWarn("Could not get a connection");
   return;
  }
  DatabaseMetaData meta = connection.getMetaData();
  DBUtil util = new DBUtil();
  util.setContext(getContext());
  supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
  supportsBatchUpdates = util.supportsBatchUpdates(meta);
  dialectCode = DBUtil.discoverSQLDialect(meta);
  addInfo("Driver name="+meta.getDriverName());
  addInfo("Driver version="+meta.getDriverVersion());
  addInfo("supportsGetGeneratedKeys="+supportsGetGeneratedKeys);
  
 } catch (SQLException se) {
  addWarn("Could not discover the dialect to use.", se);
 } finally {
  DBHelper.closeConnection(connection);
 }
}
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Learn relevant information about this connection source.
 *
 */
public void discoverConnnectionProperties() {
 try {
  Connection connection = getConnection();
  if (connection == null) {
   addWarn("Could not get a connection");
   return;
  }
  DatabaseMetaData meta = connection.getMetaData();
  DBUtil util = new DBUtil();
  util.setContext(getContext());
  supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
  supportsBatchUpdates = util.supportsBatchUpdates(meta);
  dialectCode = DBUtil.discoverSQLDialect(meta);
  System.out.println("Driver name="+meta.getDriverName());
  System.out.println("Driver version="+meta.getDriverVersion());
  System.out.println("supportsGetGeneratedKeys="+supportsGetGeneratedKeys);
  
 } catch (SQLException se) {
  addWarn("Could not discover the dialect to use.", se);
 }
}
origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.core

/**
 * Learn relevant information about this connection source.
 *
 */
public void discoverConnectionProperties() {
 try {
  Connection connection = getConnection();
  if (connection == null) {
   addWarn("Could not get a connection");
   return;
  }
  DatabaseMetaData meta = connection.getMetaData();
  DBUtil util = new DBUtil();
  util.setContext(getContext());
  supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
  supportsBatchUpdates = util.supportsBatchUpdates(meta);
  dialectCode = DBUtil.discoverSQLDialect(meta);
  addInfo("Driver name="+meta.getDriverName());
  addInfo("Driver version="+meta.getDriverVersion());
  addInfo("supportsGetGeneratedKeys="+supportsGetGeneratedKeys);
  
 } catch (SQLException se) {
  addWarn("Could not discover the dialect to use.", se);
 }
}
origin: ch.qos.logback/core

/**
 * Learn relevant information about this connection source.
 *
 */
public void discoverConnectionProperties() {
 try {
  Connection connection = getConnection();
  if (connection == null) {
   addWarn("Could not get a connection");
   return;
  }
  DatabaseMetaData meta = connection.getMetaData();
  DBUtil util = new DBUtil();
  util.setContext(getContext());
  supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
  supportsBatchUpdates = util.supportsBatchUpdates(meta);
  dialectCode = DBUtil.discoverSQLDialect(meta);
  addInfo("Driver name="+meta.getDriverName());
  addInfo("Driver version="+meta.getDriverVersion());
  addInfo("supportsGetGeneratedKeys="+supportsGetGeneratedKeys);
  
 } catch (SQLException se) {
  addWarn("Could not discover the dialect to use.", se);
 }
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Learn relevant information about this connection source.
 *
 */
public void discoverConnectionProperties() {
  Connection connection = null;
  try {
    connection = getConnection();
    if (connection == null) {
      addWarn("Could not get a connection");
      return;
    }
    DatabaseMetaData meta = connection.getMetaData();
    DBUtil util = new DBUtil();
    util.setContext(getContext());
    supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
    supportsBatchUpdates = util.supportsBatchUpdates(meta);
    dialectCode = DBUtil.discoverSQLDialect(meta);
    addInfo("Driver name=" + meta.getDriverName());
    addInfo("Driver version=" + meta.getDriverVersion());
    addInfo("supportsGetGeneratedKeys=" + supportsGetGeneratedKeys);
  } catch (SQLException se) {
    addWarn("Could not discover the dialect to use.", se);
  } finally {
    DBHelper.closeConnection(connection);
  }
}
origin: com.hynnet/logback-core

/**
 * Learn relevant information about this connection source.
 *
 */
public void discoverConnectionProperties() {
 Connection connection = null;
 try {
  connection = getConnection();
  if (connection == null) {
   addWarn("Could not get a connection");
   return;
  }
  DatabaseMetaData meta = connection.getMetaData();
  DBUtil util = new DBUtil();
  util.setContext(getContext());
  supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
  supportsBatchUpdates = util.supportsBatchUpdates(meta);
  dialectCode = DBUtil.discoverSQLDialect(meta);
  addInfo("Driver name="+meta.getDriverName());
  addInfo("Driver version="+meta.getDriverVersion());
  addInfo("supportsGetGeneratedKeys="+supportsGetGeneratedKeys);
  
 } catch (SQLException se) {
  addWarn("Could not discover the dialect to use.", se);
 } finally {
  DBHelper.closeConnection(connection);
 }
}
origin: Nextdoor/bender

/**
 * Learn relevant information about this connection source.
 *
 */
public void discoverConnectionProperties() {
  Connection connection = null;
  try {
    connection = getConnection();
    if (connection == null) {
      addWarn("Could not get a connection");
      return;
    }
    DatabaseMetaData meta = connection.getMetaData();
    DBUtil util = new DBUtil();
    util.setContext(getContext());
    supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
    supportsBatchUpdates = util.supportsBatchUpdates(meta);
    dialectCode = DBUtil.discoverSQLDialect(meta);
    addInfo("Driver name=" + meta.getDriverName());
    addInfo("Driver version=" + meta.getDriverVersion());
    addInfo("supportsGetGeneratedKeys=" + supportsGetGeneratedKeys);
  } catch (SQLException se) {
    addWarn("Could not discover the dialect to use.", se);
  } finally {
    DBHelper.closeConnection(connection);
  }
}
origin: io.virtdata/virtdata-lib-realer

/**
 * Learn relevant information about this connection source.
 *
 */
public void discoverConnectionProperties() {
  Connection connection = null;
  try {
    connection = getConnection();
    if (connection == null) {
      addWarn("Could not get a connection");
      return;
    }
    DatabaseMetaData meta = connection.getMetaData();
    DBUtil util = new DBUtil();
    util.setContext(getContext());
    supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
    supportsBatchUpdates = util.supportsBatchUpdates(meta);
    dialectCode = DBUtil.discoverSQLDialect(meta);
    addInfo("Driver name=" + meta.getDriverName());
    addInfo("Driver version=" + meta.getDriverVersion());
    addInfo("supportsGetGeneratedKeys=" + supportsGetGeneratedKeys);
  } catch (SQLException se) {
    addWarn("Could not discover the dialect to use.", se);
  } finally {
    DBHelper.closeConnection(connection);
  }
}
ch.qos.logback.core.dbConnectionSourceBaseaddWarn

Popular methods of ConnectionSourceBase

  • getConnection
  • getContext
  • start
  • addInfo

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • 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