Package org.hibernate.search.indexes.interceptor

Examples of org.hibernate.search.indexes.interceptor.EntityIndexingInterceptor.onUpdate()


    switch ( work.getType() ) {
      case ADD:
        operation = interceptor.onAdd( work.getEntity() );
        break;
      case UPDATE:
        operation = interceptor.onUpdate( work.getEntity() );
        break;
      case DELETE:
        operation = interceptor.onDelete( work.getEntity() );
        break;
      case COLLECTION:
View Full Code Here


          PerEntityWork entityWork = entityById.get( extractedId );
          if ( entityWork == null ) {
            EntityIndexingInterceptor entityInterceptor = getEntityInterceptor();
            IndexingOverride operation;
            if ( entityInterceptor != null ) {
              operation = entityInterceptor.onUpdate( value );
            }
            else {
              operation = IndexingOverride.APPLY_DEFAULT;
            }
            //TODO there is a small duplication with some of TransactionalWorker.interceptWork
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.