Examples of AssertionFailure


Examples of org.hibernate.annotations.common.AssertionFailure

        //fall through:
      case PREFER_INDEXWRITER :
        workOnWriter.add( work );
        break;
      default :
        throw new AssertionFailure( "Uncovered switch case for type " + type );
    }
  }
View Full Code Here

Examples of org.hibernate.annotations.common.AssertionFailure

      }
      else {
        useWriterOnly();
      }
      if ( ! (workOnWriter.isEmpty() || workOnReader.isEmpty() ) ) {
        throw new AssertionFailure(
          "During non-batch mode performWorks tries to use both IndexWriter and IndexReader." );
      }
    }
    // apply changes to index:
    log.trace( "Locking Workspace (or waiting to...)" );
View Full Code Here

Examples of org.hibernate.annotations.common.AssertionFailure

    try {
      tikaBridgeClass = ClassLoaderHelper.classForName( TIKA_BRIDGE_NAME, BridgeFactory.class.getClassLoader() );
      tikaBridge = ClassLoaderHelper.instanceFromClass( FieldBridge.class, tikaBridgeClass, "Tika bridge" );
    }
    catch ( ClassNotFoundException e ) {
      throw new AssertionFailure( "Unable to find Tika bridge class: " + TIKA_BRIDGE_NAME );
    }

    Class<?> tikaMetadataProcessorClass = annotation.metadataProcessor();
    if ( tikaMetadataProcessorClass != void.class ) {
      configureTikaBridgeParameters(
View Full Code Here

Examples of org.hibernate.search.exception.AssertionFailure

    }
    else if ( retrievalMethod == DatabaseRetrievalMethod.QUERY ) {
      initializer = CriteriaObjectsInitializer.INSTANCE;
    }
    else {
      throw new AssertionFailure( "Unknown " + DatabaseRetrievalMethod.class.getSimpleName() + "." + retrievalMethod );
    }
    if ( lookupMethod == ObjectLookupMethod.SKIP ) {
      return initializer;
    }
    else if ( lookupMethod == ObjectLookupMethod.PERSISTENCE_CONTEXT ) {
      return new PersistenceContextObjectsInitializer( initializer );
    }
    else if ( lookupMethod == ObjectLookupMethod.SECOND_LEVEL_CACHE ) {
      //we want to check the PC first, that's cheaper
      return new PersistenceContextObjectsInitializer( new SecondLevelCacheObjectsInitializer( initializer ) );
    }
    else {
      throw new AssertionFailure( "Unknown " + ObjectLookupMethod.class.getSimpleName() + "." + lookupMethod );
    }
    //unreachable statement
  }
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.