congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DatabaseEventListener.init
Code IndexAdd Tabnine to your IDE (free)

How to use
init
method
in
org.h2.api.DatabaseEventListener

Best Java code snippets using org.h2.api.DatabaseEventListener.init (Showing top 5 results out of 315)

origin: com.h2database/h2

public void setEventListenerClass(String className) {
  if (className == null || className.length() == 0) {
    eventListener = null;
  } else {
    try {
      eventListener = (DatabaseEventListener)
          JdbcUtils.loadUserClass(className).newInstance();
      String url = databaseURL;
      if (cipher != null) {
        url += ";CIPHER=" + cipher;
      }
      eventListener.init(url);
    } catch (Throwable e) {
      throw DbException.get(
          ErrorCode.ERROR_SETTING_DATABASE_EVENT_LISTENER_2, e,
          className, e.toString());
    }
  }
}
origin: orbisgis/orbisgis

@Override
public void init(String url) {
  DatabaseEventListener listener = delegateDatabaseEventListener;
  if(listener != null) {
    listener.init(url);
  }
}
origin: com.h2database/com.springsource.org.h2

public void setEventListenerClass(String className) throws SQLException {
  if (className == null || className.length() == 0) {
    eventListener = null;
  } else {
    try {
      eventListener = (DatabaseEventListener) loadUserClass(className).newInstance();
      String url = databaseURL;
      if (cipher != null) {
        url += ";CIPHER=" + cipher;
      }
      eventListener.init(url);
    } catch (Throwable e) {
      throw Message.getSQLException(ErrorCode.ERROR_SETTING_DATABASE_EVENT_LISTENER_2, new String[] {
          className, e.toString() }, e);
    }
  }
}
origin: com.eventsourcing/h2

public void setEventListenerClass(String className) {
  if (className == null || className.length() == 0) {
    eventListener = null;
  } else {
    try {
      eventListener = (DatabaseEventListener)
          JdbcUtils.loadUserClass(className).newInstance();
      String url = databaseURL;
      if (cipher != null) {
        url += ";CIPHER=" + cipher;
      }
      eventListener.init(url);
    } catch (Throwable e) {
      throw DbException.get(
          ErrorCode.ERROR_SETTING_DATABASE_EVENT_LISTENER_2, e,
          className, e.toString());
    }
  }
}
origin: org.wowtools/h2

public void setEventListenerClass(String className) {
  if (className == null || className.length() == 0) {
    eventListener = null;
  } else {
    try {
      eventListener = (DatabaseEventListener)
          JdbcUtils.loadUserClass(className).newInstance();
      String url = databaseURL;
      if (cipher != null) {
        url += ";CIPHER=" + cipher;
      }
      eventListener.init(url);
    } catch (Throwable e) {
      throw DbException.get(
          ErrorCode.ERROR_SETTING_DATABASE_EVENT_LISTENER_2, e,
          className, e.toString());
    }
  }
}
org.h2.apiDatabaseEventListenerinit

Javadoc

This method is called just after creating the object. This is done when opening the database if the listener is specified in the database URL, but may be later if the listener is set at runtime with the SET SQL statement.

Popular methods of DatabaseEventListener

  • closingDatabase
    This method is called before the database is closed normally. It is save to connect to the database
  • exceptionThrown
    This method is called if an exception occurred.
  • opened
    This method is called after the database has been opened. It is save to connect to the database and
  • setProgress
    This method is called for long running events, such as recovering, scanning a file or building an in
  • diskSpaceIsLow
    This method is called if the disk space is very low. One strategy is to inform the user and wait for

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • JFileChooser (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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