Examples of EntityIndexConfigDelegator


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
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.