Package org.hibernate

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( getLockable(), id, session.getFactory() ),
          sql
      );
View Full Code Here


  public final Dialect resolveDialect(DatabaseMetaData metaData) {
    try {
      return resolveDialectInternal( metaData );
    }
    catch ( SQLException sqlException ) {
      JDBCException jdbcException = BasicSQLExceptionConverter.INSTANCE.convert( sqlException );
      if ( jdbcException instanceof JDBCConnectionException ) {
        throw jdbcException;
      }
      else {
        log.warn( BasicSQLExceptionConverter.MSG + " : " + sqlException.getMessage() );
View Full Code Here

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

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

      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

      byteStream.close();
      // todo : validate length written versus length given?
      return blob;
    }
    catch ( SQLException e ) {
      throw new JDBCException( "Unable to prepare BLOB binary stream for writing",e );
    }
    catch ( IOException e ) {
      throw new HibernateException( "Unable to write stream contents to BLOB", e );
    }
  }
View Full Code Here

      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

      writer.flush();
      writer.close();
      return clob;
    }
    catch ( SQLException e ) {
      throw new JDBCException( "Unable to prepare CLOB stream for writing", e );
    }
    catch ( IOException e ) {
      throw new HibernateException( "Unable to write CLOB stream content", e );
    }
  }
View Full Code Here

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

      writer.flush();
      writer.close();
      return clob;
    }
    catch ( SQLException e ) {
      throw new JDBCException( "Unable to prepare NCLOB stream for writing", e );
    }
    catch ( IOException e ) {
      throw new HibernateException( "Unable to write NCLOB stream content", e );
    }
  }
View Full Code Here

        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

TOP

Related Classes of org.hibernate.JDBCException

Copyright © 2018 www.massapicom. 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.