Package org.hibernate.search.bridge.builtin

Examples of org.hibernate.search.bridge.builtin.StringBridge


    private final Map<String, Map<String, FieldBridge>> bridgesByType = new HashMap<String, Map<String, FieldBridge>>();

    private TestFieldBridgeProvider() {
      Map<String, FieldBridge> indexedEntityBridges = new HashMap<String, FieldBridge>();

      indexedEntityBridges.put( "id", new TwoWayString2FieldBridgeAdaptor( new StringBridge() ) );
      indexedEntityBridges.put( "name", new NullEncodingTwoWayFieldBridge( new TwoWayString2FieldBridgeAdaptor( new StringBridge() ), "_null_" ) );
      indexedEntityBridges.put( "position", NumericFieldBridge.LONG_FIELD_BRIDGE );
      indexedEntityBridges.put( "title", new TwoWayString2FieldBridgeAdaptor( new StringBridge() ) );
      indexedEntityBridges.put( "author", new NullEncodingFieldBridge( new String2FieldBridgeAdaptor( DefaultStringBridge.INSTANCE ), "_null_" ) );
      indexedEntityBridges.put( "author.name", new TwoWayString2FieldBridgeAdaptor( new StringBridge() ) );

      bridgesByType.put( "IndexedEntity", indexedEntityBridges );
    }
View Full Code Here


    //a TwoWayString2FieldBridgeAdaptor is never a composite id
    safeFromTupleId = TwoWayString2FieldBridgeAdaptor.class.isAssignableFrom( idBridge.getClass() );
  }

  private TwoWayFieldBridge getProvidedIdBridge() {
    return new TwoWayString2FieldBridgeAdaptor( new StringBridge() );
  }
View Full Code Here

    SHORT = new TwoWayString2FieldBridgeAdaptor( new ShortBridge() );
    INTEGER = new TwoWayString2FieldBridgeAdaptor( new IntegerBridge() );
    LONG = new TwoWayString2FieldBridgeAdaptor( new LongBridge() );
    BIG_INTEGER = new TwoWayString2FieldBridgeAdaptor( new BigIntegerBridge() );
    BIG_DECIMAL = new TwoWayString2FieldBridgeAdaptor( new BigDecimalBridge() );
    STRING = new TwoWayString2FieldBridgeAdaptor( new StringBridge() );
    BOOLEAN = new TwoWayString2FieldBridgeAdaptor( new BooleanBridge() );
    CLAZZ = new TwoWayString2FieldBridgeAdaptor( new org.hibernate.search.bridge.builtin.ClassBridge(serviceManager) );
    Url = new TwoWayString2FieldBridgeAdaptor( new UrlBridge() );
    Uri = new TwoWayString2FieldBridgeAdaptor( new UriBridge() );
    UUID = new TwoWayString2FieldBridgeAdaptor( new UUIDBridge() );
View Full Code Here

TOP

Related Classes of org.hibernate.search.bridge.builtin.StringBridge

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.