Examples of JDBCException


Examples of org.hibernate.JDBCException

        st.close();
      }

    }
    catch ( SQLException sqle ) {
      JDBCException e = session.getFactory().getSQLExceptionHelper().convert(
          sqle,
          "could not lock: " + MessageHelper.infoString( lockable, id, session.getFactory() ),
          sql
        );
      throw new PessimisticLockException("could not obtain pessimistic lock", e, object);
View Full Code Here

Examples of org.hibernate.JDBCException

        st.close();
      }

    }
    catch ( SQLException sqle ) {
      JDBCException e = session.getFactory().getSQLExceptionHelper().convert(
          sqle,
          "could not lock: " + MessageHelper.infoString( lockable, id, session.getFactory() ),
          sql
        );
      throw new PessimisticLockException("could not obtain pessimistic lock", e, object);
View Full Code Here

Examples of org.hibernate.JDBCException

            stmt.executeUpdate( formatted );
          }
        }
        catch ( SQLException e ) {
          if ( haltOnError ) {
            throw new JDBCException( "Error during DDL export", e );
          }
          exceptions.add( e );
                    LOG.unsuccessful(sql);
                    LOG.error(e.getMessage());
        }
View Full Code Here

Examples of org.hibernate.JDBCException

        session.getBatcher().closeStatement( st );
      }

    }
    catch ( SQLException sqle ) {
      JDBCException e = JDBCExceptionHelper.convert(
          session.getFactory().getSQLExceptionConverter(),
          sqle,
          "could not lock: " + MessageHelper.infoString( lockable, id, session.getFactory() ),
          sql
        );
View Full Code Here

Examples of org.hibernate.JDBCException

        session.getBatcher().closeStatement( st );
      }

    }
    catch ( SQLException sqle ) {
      JDBCException e = JDBCExceptionHelper.convert(
          session.getFactory().getSQLExceptionConverter(),
          sqle,
          "could not lock: " + MessageHelper.infoString( lockable, id, session.getFactory() ),
          sql
        );
View Full Code Here

Examples of org.hibernate.JDBCException

    if (delegate == null) {
      delegate = new SQLExceptionConversionDelegate() {

        @Override
        public JDBCException convert(SQLException sqlException, String message, String sql) {
                    JDBCException exception = null;

                    int errorCode = JdbcExceptionHelper.extractErrorCode(sqlException);

                    if (40001 == errorCode) { // DEADLOCK DETECTED
                        exception = new LockAcquisitionException(message, sqlException, sql);
View Full Code Here

Examples of org.hibernate.JDBCException

      Blob blob = createBlob();
      blob.setBytes( 1, bytes );
      return blob;
    }
    catch ( SQLException e ) {
      throw new JDBCException( "Unable to set BLOB bytes after creation", e );
    }
  }
View Full Code Here

Examples of org.hibernate.JDBCException

      Clob clob = createClob();
      clob.setString( 1, string );
      return clob;
    }
    catch ( SQLException e ) {
      throw new JDBCException( "Unable to set CLOB string after creation", e );
    }
  }
View Full Code Here

Examples of org.hibernate.JDBCException

      NClob nclob = createNClob();
      nclob.setString( 1, string );
      return nclob;
    }
    catch ( SQLException e ) {
      throw new JDBCException( "Unable to set NCLOB string after creation", e );
    }
  }
View Full Code Here

Examples of org.hibernate.JDBCException

          }
        }
        catch ( SQLException e ) {
          if (!script.isQuiet()) {
            if ( haltOnError ) {
              throw new JDBCException( "Error during DDL export", e );
            }
            exceptions.add( e );
                      LOG.unsuccessful(script.getScript());
                      LOG.error(e.getMessage());
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.