Package org.hivedb.configuration

Examples of org.hivedb.configuration.EntityIndexConfigDelegator


  }

  private void conditionallyInsertDelegatedResourceIndexes(EntityConfig config, Object entity) throws HiveLockableException {
    for (EntityIndexConfig entityIndexConfig : config.getEntityIndexConfigs())
      if (entityIndexConfig.getIndexType().equals(IndexType.Delegates)) {
        final EntityIndexConfigDelegator delegateEntityConfig = ((EntityIndexConfigDelegator) entityIndexConfig);
        for (Object value : entityIndexConfig.getIndexValues(entity))
          if (!hive.directory().doesResourceIdExist(delegateEntityConfig.getDelegateEntityConfig().getResourceName(), value))
            insert(
              delegateEntityConfig.getDelegateEntityConfig(),
              delegateEntityConfig.stubEntityInstance(value, config.getPrimaryIndexKey(entity)));
      }
  }
View Full Code Here

TOP

Related Classes of org.hivedb.configuration.EntityIndexConfigDelegator

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.