Package org.hibernate.type.descriptor

Examples of org.hibernate.type.descriptor.ValueExtractor.extract()


  public <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor) {
    final ValueExtractor realExtractor = delegate.getExtractor( intermediateJavaTypeDescriptor );
    return new BasicExtractor<X>( javaTypeDescriptor, this ) {
      @Override
      protected X doExtract(ResultSet rs, String name, WrapperOptions options) throws SQLException {
        return doConversion( realExtractor.extract( rs, name, options ) );
      }

      @Override
      protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException {
        return doConversion( realExtractor.extract( statement, index, options ) );
View Full Code Here


        return doConversion( realExtractor.extract( rs, name, options ) );
      }

      @Override
      protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException {
        return doConversion( realExtractor.extract( statement, index, options ) );
      }

      @Override
      protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException {
        return doConversion( realExtractor.extract( statement, new String[] {name}, options ) );
View Full Code Here

        return doConversion( realExtractor.extract( statement, index, options ) );
      }

      @Override
      protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException {
        return doConversion( realExtractor.extract( statement, new String[] {name}, options ) );
      }

      @SuppressWarnings("unchecked")
      private X doConversion(Object extractedValue) {
        try {
View Full Code Here

  public <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor) {
    final ValueExtractor realExtractor = delegate.getExtractor( intermediateJavaTypeDescriptor );
    return new BasicExtractor<X>( javaTypeDescriptor, this ) {
      @Override
      protected X doExtract(ResultSet rs, String name, WrapperOptions options) throws SQLException {
        return doConversion( realExtractor.extract( rs, name, options ) );
      }

      @Override
      protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException {
        return doConversion( realExtractor.extract( statement, index, options ) );
View Full Code Here

        return doConversion( realExtractor.extract( rs, name, options ) );
      }

      @Override
      protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException {
        return doConversion( realExtractor.extract( statement, index, options ) );
      }

      @Override
      protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException {
        return doConversion( realExtractor.extract( statement, new String[] {name}, options ) );
View Full Code Here

        return doConversion( realExtractor.extract( statement, index, options ) );
      }

      @Override
      protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException {
        return doConversion( realExtractor.extract( statement, new String[] {name}, options ) );
      }

      @SuppressWarnings("unchecked")
      private X doConversion(Object extractedValue) {
        try {
View Full Code Here

      final ValueExtractor realExtractor = delegate.getExtractor( javaTypeDescriptor );
      return new BasicExtractor<X>( javaTypeDescriptor, this ) {
        @Override
        @SuppressWarnings("unchecked")
        protected X doExtract(ResultSet rs, String name, WrapperOptions options) throws SQLException {
          return (X) converter.convertToEntityAttribute( realExtractor.extract( rs, name, options ) );
        }

        @Override
        @SuppressWarnings("unchecked")
        protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
View Full Code Here

        @Override
        @SuppressWarnings("unchecked")
        protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
            throws SQLException {
          return (X) converter.convertToEntityAttribute( realExtractor.extract( statement, index, options ) );
        }

        @Override
        @SuppressWarnings("unchecked")
        protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException {
View Full Code Here

        }

        @Override
        @SuppressWarnings("unchecked")
        protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException {
          return (X) converter.convertToEntityAttribute( realExtractor.extract( statement, new String[] {name}, options ) );
        }
      };
    }
  }
View Full Code Here

      final ValueExtractor realExtractor = delegate.getExtractor( javaTypeDescriptor );
      return new BasicExtractor<X>( javaTypeDescriptor, this ) {
        @Override
        @SuppressWarnings("unchecked")
        protected X doExtract(ResultSet rs, String name, WrapperOptions options) throws SQLException {
          return (X) converter.convertToEntityAttribute( realExtractor.extract( rs, name, options ) );
        }

        @Override
        @SuppressWarnings("unchecked")
        protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
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.