protected CompassSettings buildCompassSettings() {
   CompassSettings settings = super.buildCompassSettings();
   settings.setSetting(
       LuceneEnvironment.Transaction.Processor.ReadCommitted.TransLog.CONNECTION,
       "file://target/test-index-trans");
   return settings;
 }
 @Override
 public void configure(Compass compass, CompassSettings settings) throws CompassException {
   this.sessionFactory = sessionFactoryHolder.get();
   if (sessionFactory == null) {
     sessionFactory = (SessionFactory) settings.getRegistry(sessionFactoryKey);
   }
   if (sessionFactory != null) {
     settings.setRegistry(sessionFactoryKey, sessionFactory);
   }
   sessionFactoryHolder.set(null);
 }
 public void configure(String url, CompassSettings settings) throws CompassException {
   driverClass = settings.getSetting(LuceneEnvironment.JdbcStore.Connection.DRIVER_CLASS);
   username = settings.getSetting(LuceneEnvironment.JdbcStore.Connection.USERNAME);
   password = settings.getSetting(LuceneEnvironment.JdbcStore.Connection.PASSWORD);
   String autoCommitSetting =
       settings.getSetting(LuceneEnvironment.JdbcStore.Connection.AUTO_COMMIT, "false");
   if ("external".equalsIgnoreCase(autoCommitSetting)) {
     externalAutoCommit = true;
   } else {
     externalAutoCommit = false;
     autoCommit = "true".equalsIgnoreCase(autoCommitSetting);
   }
   this.dataSource = doCreateDataSource(url, settings);
 }
 public LockFactory createLockFactory(
     String path, String subContex, String subIndex, CompassSettings settings)
     throws SearchEngineException {
   String connection = settings.getSetting(CompassEnvironment.CONNECTION);
   NamedCache cache = CacheFactory.getCache(path);
   return new InvocableCoherenceLockFactory(
       cache, connection + "/" + subContex + "/" + subIndex + "/");
 }
  public CompassMapping process(
      CompassMapping compassMapping,
      PropertyNamingStrategy namingStrategy,
      ConverterLookup converterLookup,
      CompassSettings settings)
      throws MappingException {

    globalNullValue = settings.getSetting(CompassEnvironment.NullValue.NULL_VALUE);

    for (Iterator rIt = compassMapping.mappingsIt(); rIt.hasNext(); ) {
      Mapping mapping = (Mapping) rIt.next();
      processMapping(mapping);
    }
    return compassMapping;
  }