Package org.hibernate.type.descriptor

Examples of org.hibernate.type.descriptor.WrapperOptions


      throws SQLException {
    return nullSafeGet( rs, name, session );
  }

  public final T nullSafeGet(ResultSet rs, String name, final SessionImplementor session) throws SQLException {
    final WrapperOptions options = getOptions(session);
    return nullSafeGet( rs, name, options );
  }
View Full Code Here


  public final void nullSafeSet(
      PreparedStatement st,
      Object value,
      int index,
      final SessionImplementor session) throws SQLException {
    final WrapperOptions options = getOptions(session);
    nullSafeSet( st, value, index, options );
  }
View Full Code Here

    return true;
  }

  @Override
  public T extract(CallableStatement statement, int startIndex, final SessionImplementor session) throws SQLException {
    final WrapperOptions options = getOptions(session);
    return remapSqlTypeDescriptor( options ).getExtractor( javaTypeDescriptor ).extract(
        statement,
        startIndex,
        options
    );
View Full Code Here

    );
  }

  @Override
  public T extract(CallableStatement statement, String[] paramNames, final SessionImplementor session) throws SQLException {
    final WrapperOptions options = getOptions(session);
    return remapSqlTypeDescriptor( options ).getExtractor( javaTypeDescriptor ).extract( statement, paramNames, options );
  }
View Full Code Here

    return remapSqlTypeDescriptor( options ).getExtractor( javaTypeDescriptor ).extract( statement, paramNames, options );
  }
 
  // TODO : have SessionImplementor extend WrapperOptions
  private WrapperOptions getOptions(final SessionImplementor session) {
    return new WrapperOptions() {
      public boolean useStreamForLobBinding() {
        return Environment.useStreamsForBinary()
            || session.getFactory().getDialect().useInputStreamToInsertBlob();
      }
View Full Code Here

    return nullSafeGet( rs, name, session );
  }

  public final T nullSafeGet(ResultSet rs, String name, final SessionImplementor session) throws SQLException {
    // todo : have SessionImplementor extend WrapperOptions
    final WrapperOptions options = new WrapperOptions() {
      public boolean useStreamForLobBinding() {
        return Environment.useStreamsForBinary();
      }

      public LobCreator getLobCreator() {
View Full Code Here

      PreparedStatement st,
      Object value,
      int index,
      final SessionImplementor session) throws SQLException {
    // todo : have SessionImplementor extend WrapperOptions
    final WrapperOptions options = new WrapperOptions() {
      public boolean useStreamForLobBinding() {
        return Environment.useStreamsForBinary();
      }

      public LobCreator getLobCreator() {
View Full Code Here

    return nullSafeGet( rs, name, session );
  }

  public final T nullSafeGet(ResultSet rs, String name, final SessionImplementor session) throws SQLException {
    // todo : have SessionImplementor extend WrapperOptions
    final WrapperOptions options = new WrapperOptions() {
      public boolean useStreamForLobBinding() {
        return Environment.useStreamsForBinary();
      }

      public LobCreator getLobCreator() {
View Full Code Here

      PreparedStatement st,
      Object value,
      int index,
      final SessionImplementor session) throws SQLException {
    // todo : have SessionImplementor extend WrapperOptions
    final WrapperOptions options = new WrapperOptions() {
      public boolean useStreamForLobBinding() {
        return Environment.useStreamsForBinary();
      }

      public LobCreator getLobCreator() {
View Full Code Here

    return nullSafeGet( rs, name, session );
  }

  public final T nullSafeGet(ResultSet rs, String name, final SessionImplementor session) throws SQLException {
    // todo : have SessionImplementor extend WrapperOptions
    final WrapperOptions options = new WrapperOptions() {
      public boolean useStreamForLobBinding() {
        return Environment.useStreamsForBinary();
      }

      public LobCreator getLobCreator() {
View Full Code Here

TOP

Related Classes of org.hibernate.type.descriptor.WrapperOptions

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.