Codota Logo
RecoverableException.getCause
Code IndexAdd Codota to your IDE (free)

How to use
getCause
method
in
org.hibernate.cfg.RecoverableException

Best Java code snippets using org.hibernate.cfg.RecoverableException.getCause (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

private void processEndOfQueue(List<FkSecondPass> endOfQueueFkSecondPasses) {
  /*
   * If a second pass raises a recoverableException, queue it for next round
   * stop of no pass has to be processed or if the number of pass to processes
   * does not diminish between two rounds.
   * If some failing pass remain, raise the original exception
   */
  boolean stopProcess = false;
  RuntimeException originalException = null;
  while ( !stopProcess ) {
    List<FkSecondPass> failingSecondPasses = new ArrayList<>();
    for ( FkSecondPass pass : endOfQueueFkSecondPasses ) {
      try {
        pass.doSecondPass( getEntityBindingMap() );
      }
      catch (RecoverableException e) {
        failingSecondPasses.add( pass );
        if ( originalException == null ) {
          originalException = (RuntimeException) e.getCause();
        }
      }
    }
    stopProcess = failingSecondPasses.size() == 0 || failingSecondPasses.size() == endOfQueueFkSecondPasses.size();
    endOfQueueFkSecondPasses = failingSecondPasses;
  }
  if ( endOfQueueFkSecondPasses.size() > 0 ) {
    throw originalException;
  }
}
origin: org.hibernate/hibernate-annotations

failingSecondPasses.add( pass );
if ( originalException == null ) {
  originalException = ( RuntimeException ) e.getCause();
origin: org.hibernate/hibernate-annotations

throw ( RuntimeException ) e.getCause();
origin: org.hibernate/com.springsource.org.hibernate

private void processEndOfQueue(List<FkSecondPass> endOfQueueFkSecondPasses) {
  /*
   * If a second pass raises a recoverableException, queue it for next round
   * stop of no pass has to be processed or if the number of pass to processes
   * does not diminish between two rounds.
   * If some failing pass remain, raise the original exception
   */
  boolean stopProcess = false;
  RuntimeException originalException = null;
  while ( !stopProcess ) {
    List<FkSecondPass> failingSecondPasses = new ArrayList<FkSecondPass>();
    for ( FkSecondPass pass : endOfQueueFkSecondPasses ) {
      try {
        pass.doSecondPass( classes );
      }
      catch (RecoverableException e) {
        failingSecondPasses.add( pass );
        if ( originalException == null ) {
          originalException = (RuntimeException) e.getCause();
        }
      }
    }
    stopProcess = failingSecondPasses.size() == 0 || failingSecondPasses.size() == endOfQueueFkSecondPasses.size();
    endOfQueueFkSecondPasses = failingSecondPasses;
  }
  if ( endOfQueueFkSecondPasses.size() > 0 ) {
    throw originalException;
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private void processEndOfQueue(List<FkSecondPass> endOfQueueFkSecondPasses) {
  /*
   * If a second pass raises a recoverableException, queue it for next round
   * stop of no pass has to be processed or if the number of pass to processes
   * does not diminish between two rounds.
   * If some failing pass remain, raise the original exception
   */
  boolean stopProcess = false;
  RuntimeException originalException = null;
  while ( !stopProcess ) {
    List<FkSecondPass> failingSecondPasses = new ArrayList<FkSecondPass>();
    for ( FkSecondPass pass : endOfQueueFkSecondPasses ) {
      try {
        pass.doSecondPass( classes );
      }
      catch (RecoverableException e) {
        failingSecondPasses.add( pass );
        if ( originalException == null ) {
          originalException = (RuntimeException) e.getCause();
        }
      }
    }
    stopProcess = failingSecondPasses.size() == 0 || failingSecondPasses.size() == endOfQueueFkSecondPasses.size();
    endOfQueueFkSecondPasses = failingSecondPasses;
  }
  if ( endOfQueueFkSecondPasses.size() > 0 ) {
    throw originalException;
  }
}
origin: org.hibernate.orm/hibernate-core

private void processEndOfQueue(List<FkSecondPass> endOfQueueFkSecondPasses) {
  /*
   * If a second pass raises a recoverableException, queue it for next round
   * stop of no pass has to be processed or if the number of pass to processes
   * does not diminish between two rounds.
   * If some failing pass remain, raise the original exception
   */
  boolean stopProcess = false;
  RuntimeException originalException = null;
  while ( !stopProcess ) {
    List<FkSecondPass> failingSecondPasses = new ArrayList<>();
    for ( FkSecondPass pass : endOfQueueFkSecondPasses ) {
      try {
        pass.doSecondPass( getEntityBindingMap() );
      }
      catch (RecoverableException e) {
        failingSecondPasses.add( pass );
        if ( originalException == null ) {
          originalException = (RuntimeException) e.getCause();
        }
      }
    }
    stopProcess = failingSecondPasses.size() == 0 || failingSecondPasses.size() == endOfQueueFkSecondPasses.size();
    endOfQueueFkSecondPasses = failingSecondPasses;
  }
  if ( endOfQueueFkSecondPasses.size() > 0 ) {
    throw originalException;
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

throw ( RuntimeException ) e.getCause();
origin: org.hibernate/com.springsource.org.hibernate

throw ( RuntimeException ) e.getCause();
org.hibernate.cfgRecoverableExceptiongetCause

Popular methods of RecoverableException

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
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