Examples of unwrap()


Examples of org.geotools.data.jdbc.datasource.UnWrapper.unwrap()

        super.connect();
        fixture = new GeometryFixture();
        this.connection = setup.getDataSource().getConnection();
       
        UnWrapper unwrapper = DataSourceFinder.getUnWrapper(this.connection);
        OracleConnection oraConn = (OracleConnection) unwrapper.unwrap(this.connection);
        converter = new GeometryConverter(oraConn);
    }

    // called from teardown
    protected void disconnect() throws Exception {
View Full Code Here

Examples of org.hibernate.search.bridge.NullEncodingTwoWayFieldBridge.unwrap()

public class ClassLoadingStrategySelector {

  public static FieldCollectorType guessAppropriateCollectorType(TwoWayFieldBridge idBridge) {
    if ( idBridge instanceof NullEncodingTwoWayFieldBridge ) {
      NullEncodingTwoWayFieldBridge encoding = (NullEncodingTwoWayFieldBridge) idBridge;
      return guessAppropriateCollectorType( encoding.unwrap() );
    }
    else if ( idBridge instanceof TwoWayString2FieldBridgeAdaptor ) {
      return FieldCollectorType.STRING;
    }
    else if ( idBridge instanceof IntegerNumericFieldBridge ) {
View Full Code Here

Examples of org.hibernate.search.bridge.TwoWayString2FieldBridgeAdaptor.unwrap()

      NullEncodingTwoWayFieldBridge encoding = (NullEncodingTwoWayFieldBridge) idBridge;
      return getTwoWayStringBridge( encoding.unwrap() );
    }
    else if ( idBridge instanceof TwoWayString2FieldBridgeAdaptor ) {
      TwoWayString2FieldBridgeAdaptor adaptor = (TwoWayString2FieldBridgeAdaptor) idBridge;
      return adaptor.unwrap();
    }
    else {
      return null;
    }
  }
View Full Code Here

Examples of org.hibernate.search.bridge.builtin.impl.NullEncodingTwoWayFieldBridge.unwrap()

public class ClassLoadingStrategySelector {

  public static FieldCacheLoadingType guessAppropriateCollectorType(TwoWayFieldBridge fieldBridge) {
    if ( fieldBridge instanceof NullEncodingTwoWayFieldBridge ) {
      NullEncodingTwoWayFieldBridge encoding = (NullEncodingTwoWayFieldBridge) fieldBridge;
      return guessAppropriateCollectorType( encoding.unwrap() );
    }
    else if ( fieldBridge instanceof TwoWayString2FieldBridgeAdaptor ) {
      return FieldCacheLoadingType.STRING;
    }
    else if ( fieldBridge instanceof IntegerNumericFieldBridge ) {
View Full Code Here

Examples of org.hibernate.search.bridge.builtin.impl.TwoWayString2FieldBridgeAdaptor.unwrap()

      NullEncodingTwoWayFieldBridge encoding = (NullEncodingTwoWayFieldBridge) fieldBridge;
      return getTwoWayStringBridge( encoding.unwrap() );
    }
    else if ( fieldBridge instanceof TwoWayString2FieldBridgeAdaptor ) {
      TwoWayString2FieldBridgeAdaptor adaptor = (TwoWayString2FieldBridgeAdaptor) fieldBridge;
      return adaptor.unwrap();
    }
    else {
      return null;
    }
  }
View Full Code Here

Examples of org.hibernate.service.jdbc.connections.spi.ConnectionProvider.unwrap()

   * @see org.hibernate.engine.spi.SessionFactoryImplementor#getConnectionProvider
   */
  public static DataSource getDataSource(SessionFactory sessionFactory) {
    if (sessionFactory instanceof SessionFactoryImplementor) {
      ConnectionProvider cp = ((SessionFactoryImplementor) sessionFactory).getConnectionProvider();
      return cp.unwrap(DataSource.class);
    }
    return null;
  }

  /**
 
View Full Code Here

Examples of org.hibernate.service.spi.Wrapped.unwrap()

   */
  public static DataSource getDataSource(SessionFactory sessionFactory) {
    if (getConnectionProviderMethod != null && sessionFactory instanceof SessionFactoryImplementor) {
      Wrapped cp = (Wrapped) ReflectionUtils.invokeMethod(getConnectionProviderMethod, sessionFactory);
      if (cp != null) {
        return cp.unwrap(DataSource.class);
      }
    }
    return null;
  }

View Full Code Here

Examples of org.hibernate.validator.internal.engine.MessageInterpolatorContext.unwrap()

  }

  @Test(expectedExceptions = ValidationException.class)
  public void testUnwrapToImplementationCausesValidationException() {
    Context context = new MessageInterpolatorContext( null, null, null, Collections.<String, Object>emptyMap() );
    context.unwrap( MessageInterpolatorContext.class );
  }

  @Test
  public void testUnwrapToInterfaceTypesSucceeds() {
    Context context = new MessageInterpolatorContext( null, null, null, Collections.<String, Object>emptyMap() );
View Full Code Here

Examples of org.ietf.jgss.GSSContext.unwrap()

            }

            token = new byte[dis.readInt()];
            dis.readFully(token);
            MessageProp msgProp = new MessageProp(false);
            final byte[] nameBytes = gssContext.unwrap(token, 0, token.length, msgProp);
            return new String(nameBytes, GSSTestConstants.CHAR_ENC);
        } catch (IOException e) {
            LOGGER.error("IOException occurred.", e);
            throw e;
        } finally {
View Full Code Here

Examples of org.infinispan.schematic.document.Editor.unwrap()

            ConfigurationChange configChanges = new ConfigurationChange();
            copy.apply(changes, configChanges);

            // Always update the configuration ...
            RunningState oldState = this.runningState.get();
            this.config.set(new RepositoryConfiguration(copy.unwrap(), copy.getString(FieldName.NAME),
                                                        oldConfiguration.environment()));
            if (oldState != null) {
                assert state.get() == State.RUNNING;
                // Repository is running, so create a new running state ...
                this.runningState.set(new RunningState(oldState, configChanges));
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.