Package org.hibernate.search.bridge

Examples of org.hibernate.search.bridge.TwoWayFieldBridge


    if ( builderIndexedEntity == null ) {
      throw new SearchException( "No Lucene configuration set up for: " + clazz.getName() );
    }


    final TwoWayFieldBridge fieldBridge = builderIndexedEntity.getIdBridge();
    final String fieldName = builderIndexedEntity.getIdKeywordName();
    ContextualException2WayBridge contextualBridge = new ContextualException2WayBridge();
    contextualBridge
        .setClass( clazz )
        .setFieldName( fieldName )
View Full Code Here


      }
      //default: continue indexing this instance
    }

    DocumentBuilderIndexedEntity docBuilder = entityIndexBinding.getDocumentBuilder();
    TwoWayFieldBridge idBridge = docBuilder.getIdBridge();
    conversionContext.pushProperty( docBuilder.getIdKeywordName() );
    String idInString = null;
    try {
      idInString = conversionContext
          .setClass( clazz )
View Full Code Here

      // being not-indexed, we skip them.
      // FIXME for improved performance: avoid loading them in an early phase.
      return;
    }
    DocumentBuilderIndexedEntity docBuilder = entityIndexBinding.getDocumentBuilder();
    TwoWayFieldBridge idBridge = docBuilder.getIdBridge();
    ContextualException2WayBridge contextualBridge = new ContextualException2WayBridge()
        .setClass(clazz)
        .setFieldName(docBuilder.getIdKeywordName())
        .setFieldBridge(idBridge);
    String idInString = contextualBridge.objectToString( id );
View Full Code Here

      }
      //default: continue indexing this instance
    }

    DocumentBuilderIndexedEntity docBuilder = entityIndexBinding.getDocumentBuilder();
    TwoWayFieldBridge idBridge = docBuilder.getIdBridge();
    conversionContext.pushProperty( docBuilder.getIdKeywordName() );
    String idInString = null;
    try {
      idInString = conversionContext
          .setClass( clazz )
View Full Code Here

  public static Serializable getDocumentId(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz, Document document, ConversionContext conversionContext) {
    final DocumentBuilderIndexedEntity<?> builderIndexedEntity = getDocumentBuilder(
        searchFactoryImplementor,
        clazz
    );
    final TwoWayFieldBridge fieldBridge = builderIndexedEntity.getIdBridge();
    final String fieldName = builderIndexedEntity.getIdKeywordName();
    try {
      return (Serializable) conversionContext
          .setClass( clazz )
          .pushIdentifierProperty()
View Full Code Here

    }
    workspace.notifyWorkApplied( work );
  }

  protected static boolean isIdNumeric(DocumentBuilderIndexedEntity<?> documentBuilder) {
    TwoWayFieldBridge idBridge = documentBuilder.getIdBridge();
    return idBridge instanceof NumericFieldBridge;
  }
View Full Code Here

    }
    workspace.incrementModificationCounter( 1 );
  }

  protected static boolean isIdNumeric(DocumentBuilderIndexedEntity<?> documentBuilder) {
    TwoWayFieldBridge idBridge = documentBuilder.getIdBridge();
    return idBridge instanceof NumericFieldBridge;
  }
View Full Code Here

  public static Serializable getDocumentId(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz, Document document, ConversionContext conversionContext) {
    final DocumentBuilderIndexedEntity<?> builderIndexedEntity = getDocumentBuilder(
        searchFactoryImplementor,
        clazz
    );
    final TwoWayFieldBridge fieldBridge = builderIndexedEntity.getIdBridge();
    final String fieldName = builderIndexedEntity.getIdKeywordName();
    try {
      return (Serializable) conversionContext
          .setClass( clazz )
          .pushIdentifierProperty()
View Full Code Here

      throw new SearchException( message, e );
    }
  }

  protected static boolean isIdNumeric(DocumentBuilderIndexedEntity<?> documentBuilder) {
    TwoWayFieldBridge idBridge = documentBuilder.getIdBridge();
    return idBridge instanceof NumericFieldBridge;
  }
View Full Code Here

    }
  }

  public static Serializable getDocumentId(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz, Document document) {
    final DocumentBuilderIndexedEntity<?> builderIndexedEntity = getDocumentBuilder( searchFactoryImplementor, clazz );
    final TwoWayFieldBridge fieldBridge = builderIndexedEntity.getIdBridge();
    final String fieldName = builderIndexedEntity.getIdKeywordName();
    ContextualException2WayBridge contextualBridge = new ContextualException2WayBridge();
    contextualBridge
        .setClass( clazz )
        .setFieldName( fieldName )
View Full Code Here

TOP

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

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.