Package org.hibernate.search.bridge

Examples of org.hibernate.search.bridge.NullEncodingTwoWayFieldBridge


    }
    propertiesMetadata.fieldNullTokens.add( indexNullAs );

    FieldBridge fieldBridge = BridgeFactory.guessType( fieldAnn, numericFieldAnn, member, reflectionManager );
    if ( indexNullAs != null && fieldBridge instanceof TwoWayFieldBridge ) {
      fieldBridge = new NullEncodingTwoWayFieldBridge( (TwoWayFieldBridge) fieldBridge, indexNullAs );
    }
    propertiesMetadata.fieldBridges.add( fieldBridge );

    // Field > property > entity analyzer
    Analyzer analyzer = getAnalyzer( fieldAnn.analyzer(), context );
View Full Code Here


    }
    propertiesMetadata.fieldNullTokens.add( indexNullAs );

    FieldBridge fieldBridge = BridgeFactory.guessType( fieldAnn, numericFieldAnn, member, reflectionManager );
    if ( indexNullAs != null && fieldBridge instanceof TwoWayFieldBridge ) {
      fieldBridge = new NullEncodingTwoWayFieldBridge( (TwoWayFieldBridge) fieldBridge, indexNullAs );
    }
    propertiesMetadata.fieldBridges.add( fieldBridge );

    // Field > property > entity analyzer
    Analyzer analyzer = getAnalyzer( fieldAnn.analyzer(), context );
View Full Code Here

*/
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

  /**
   * @return null if we can't extract a TwoWayStringBridge
   */
  public static TwoWayStringBridge getTwoWayStringBridge(TwoWayFieldBridge idBridge) {
    if ( idBridge instanceof NullEncodingTwoWayFieldBridge ) {
      NullEncodingTwoWayFieldBridge encoding = (NullEncodingTwoWayFieldBridge) idBridge;
      return getTwoWayStringBridge( encoding.unwrap() );
    }
    else if ( idBridge instanceof TwoWayString2FieldBridgeAdaptor ) {
      TwoWayString2FieldBridgeAdaptor adaptor = (TwoWayString2FieldBridgeAdaptor) idBridge;
      return adaptor.unwrap();
    }
View Full Code Here

    }
    propertiesMetadata.fieldNullTokens.add( indexNullAs );

    FieldBridge fieldBridge = BridgeFactory.guessType( fieldAnn, numericFieldAnn, member, reflectionManager );
    if ( indexNullAs != null && fieldBridge instanceof TwoWayFieldBridge ) {
      fieldBridge = new NullEncodingTwoWayFieldBridge( (TwoWayFieldBridge) fieldBridge, indexNullAs );
    }
    propertiesMetadata.fieldBridges.add( fieldBridge );

    // Field > property > entity analyzer
    Analyzer analyzer = getAnalyzer( fieldAnn.analyzer(), context );
View Full Code Here

    }
    propertiesMetadata.fieldNullTokens.add( indexNullAs );

    FieldBridge fieldBridge = BridgeFactory.guessType( fieldAnn, numericFieldAnn, member, reflectionManager );
    if ( indexNullAs != null && fieldBridge instanceof TwoWayFieldBridge ) {
      fieldBridge = new NullEncodingTwoWayFieldBridge( (TwoWayFieldBridge) fieldBridge, indexNullAs );
    }
    propertiesMetadata.fieldBridges.add( fieldBridge );

    // Field > property > entity analyzer
    Analyzer analyzer = getAnalyzer( fieldAnn.analyzer(), context );
View Full Code Here

    }
    propertiesMetadata.fieldNullTokens.add( indexNullAs );

    FieldBridge fieldBridge = BridgeFactory.guessType( fieldAnn, numericFieldAnn, member, reflectionManager );
    if ( indexNullAs != null && fieldBridge instanceof TwoWayFieldBridge ) {
      fieldBridge = new NullEncodingTwoWayFieldBridge( (TwoWayFieldBridge) fieldBridge, indexNullAs );
    }
    propertiesMetadata.fieldBridges.add( fieldBridge );

    // Field > property > entity analyzer
    Analyzer analyzer = getAnalyzer( fieldAnn.analyzer(), context );
View Full Code Here

    }
    propertiesMetadata.fieldNullTokens.add( indexNullAs );

    FieldBridge fieldBridge = BridgeFactory.guessType( fieldAnn, numericFieldAnn, member, reflectionManager );
    if ( indexNullAs != null && fieldBridge instanceof TwoWayFieldBridge ) {
      fieldBridge = new NullEncodingTwoWayFieldBridge( (TwoWayFieldBridge) fieldBridge, indexNullAs );
    }
    propertiesMetadata.fieldBridges.add( fieldBridge );

    // Field > property > entity analyzer
    Analyzer analyzer = getAnalyzer( fieldAnn.analyzer(), context );
View Full Code Here

*/
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

   *
   * @return the underlying string bridge or {@code null} if we can't extract it
   */
  public static TwoWayStringBridge getTwoWayStringBridge(TwoWayFieldBridge fieldBridge) {
    if ( fieldBridge instanceof NullEncodingTwoWayFieldBridge ) {
      NullEncodingTwoWayFieldBridge encoding = (NullEncodingTwoWayFieldBridge) fieldBridge;
      return getTwoWayStringBridge( encoding.unwrap() );
    }
    else if ( fieldBridge instanceof TwoWayString2FieldBridgeAdaptor ) {
      TwoWayString2FieldBridgeAdaptor adaptor = (TwoWayString2FieldBridgeAdaptor) fieldBridge;
      return adaptor.unwrap();
    }
View Full Code Here

TOP

Related Classes of org.hibernate.search.bridge.NullEncodingTwoWayFieldBridge

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.