Codota Logo
DatabaseEventListener.setProgress
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain DatabaseEventListener
private void myMethod () {
DatabaseEventListener d =
  • Codota IconString className;(DatabaseEventListener) JdbcUtils.loadUserClass(className).newInstance()
  • Smart code suggestions by Codota
}
origin: com.h2database/h2

/**
 * Set the progress of a long running operation.
 * This method calls the {@link DatabaseEventListener} if one is registered.
 *
 * @param state the {@link DatabaseEventListener} state
 * @param name the object name
 * @param x the current position
 * @param max the highest value
 */
public void setProgress(int state, String name, int x, int max) {
  if (eventListener != null) {
    try {
      eventListener.setProgress(state, name, x, max);
    } catch (Exception e2) {
      // ignore this (user made) exception
    }
  }
}
origin: com.h2database/h2

eventListener.setProgress(DatabaseEventListener.STATE_RECONNECTED,
    databaseName, count, SysProperties.MAX_RECONNECT);
origin: orbisgis/orbisgis

@Override
public void setProgress(int state, String name, int x, int max) {
  DatabaseEventListener listener = delegateDatabaseEventListener;
  if(listener != null) {
    listener.setProgress(state, name, x, max);
  }
}
origin: com.eventsourcing/h2

/**
 * Set the progress of a long running operation.
 * This method calls the {@link DatabaseEventListener} if one is registered.
 *
 * @param state the {@link DatabaseEventListener} state
 * @param name the object name
 * @param x the current position
 * @param max the highest value
 */
public void setProgress(int state, String name, int x, int max) {
  if (eventListener != null) {
    try {
      eventListener.setProgress(state, name, x, max);
    } catch (Exception e2) {
      // ignore this (user made) exception
    }
  }
}
origin: com.h2database/com.springsource.org.h2

/**
 * Set the progress of a long running operation.
 * This method calls the {@link DatabaseEventListener} if one is registered.
 * 
 * @param state the {@link DatabaseEventListener} state
 * @param name the object name
 * @param x the current position
 * @param max the highest value
 */

public void setProgress(int state, String name, int x, int max) {
  if (eventListener != null) {
    try {
      eventListener.setProgress(state, name, x, max);
    } catch (Exception e2) {
      // ignore this second (user made) exception
    }
  }
}
origin: org.wowtools/h2

/**
 * Set the progress of a long running operation.
 * This method calls the {@link DatabaseEventListener} if one is registered.
 *
 * @param state the {@link DatabaseEventListener} state
 * @param name the object name
 * @param x the current position
 * @param max the highest value
 */
public void setProgress(int state, String name, int x, int max) {
  if (eventListener != null) {
    try {
      eventListener.setProgress(state, name, x, max);
    } catch (Exception e2) {
      // ignore this (user made) exception
    }
  }
}
origin: org.wowtools/h2

eventListener.setProgress(DatabaseEventListener.STATE_RECONNECTED,
    databaseName, count, SysProperties.MAX_RECONNECT);
origin: com.eventsourcing/h2

eventListener.setProgress(DatabaseEventListener.STATE_RECONNECTED,
    databaseName, count, SysProperties.MAX_RECONNECT);
org.h2.apiDatabaseEventListenersetProgress

Javadoc

This method is called for long running events, such as recovering, scanning a file or building an index.

More states might be added in future versions, therefore implementations should silently ignore states that they don't understand.

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.
  • init
    This method is called just after creating the object. This is done when opening the database if the
  • opened
    This method is called after the database has been opened. It is save to connect to the database and
  • 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

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • BoxLayout (javax.swing)
  • JOptionPane (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now