org.eclipse.persistence.internal.helper.Helper.rehashMap()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(101)

本文整理了Java中org.eclipse.persistence.internal.helper.Helper.rehashMap()方法的一些代码示例,展示了Helper.rehashMap()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.rehashMap()方法的具体详情如下:
包路径:org.eclipse.persistence.internal.helper.Helper
类名称:Helper
方法名:rehashMap

Helper.rehashMap介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Rehash any maps based on fields.
 * This is used to clone descriptors for aggregates, which hammer field names.
 */
@Override
public void rehashFieldDependancies(AbstractSession session) {
  setSourceToTargetQueryKeyFields(Helper.rehashMap(getSourceToTargetQueryKeyNames()));
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Rehash any maps based on fields.
 * This is used to clone descriptors for aggregates, which hammer field names.
 */
@Override
public void rehashFieldDependancies(AbstractSession session) {
  setSourceToTargetQueryKeyFields(Helper.rehashMap(getSourceToTargetQueryKeyNames()));
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Rehash any hashtables based on fields.
 * This is used to clone descriptors for aggregates, which hammer field names,
 * it is probably better not to hammer the field name and this should be refactored.
 */
public void rehashFieldDependancies(AbstractSession session) {
  setSourceToTargetQueryKeyFields(Helper.rehashMap(getSourceToTargetQueryKeyNames()));
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Rehash any map based on fields.
 * This is used to clone descriptors for aggregates, which hammer field names,
 * it is probably better not to hammer the field name and this should be refactored.
 */
public void rehashFieldDependancies(AbstractSession session) {
  setSourceToTargetKeyFields(Helper.rehashMap(getSourceToTargetKeyFields()));
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Rehash any maps based on fields.
 * This is used to clone descriptors for aggregates, which hammer field names,
 * it is probably better not to hammer the field name and this should be refactored.
 */
public void rehashFieldDependancies(AbstractSession session) {
  setMappingsByField(Helper.rehashMap(getMappingsByField()));
  setReadOnlyMappingsByField(Helper.rehashMap(getReadOnlyMappingsByField()));
  setFieldsMap(Helper.rehashMap(getFieldsMap()));
  setPrimaryKeyMappings(new ArrayList(2));
  setNonPrimaryKeyMappings(new ArrayList(2));
  initializePrimaryKey(session);
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Rehash any maps based on fields.
 * This is used to clone descriptors for aggregates, which hammer field names,
 * it is probably better not to hammer the field name and this should be refactored.
 */
public void rehashFieldDependancies(AbstractSession session) {
  setMappingsByField(Helper.rehashMap(getMappingsByField()));
  setReadOnlyMappingsByField(Helper.rehashMap(getReadOnlyMappingsByField()));
  setFieldsMap(Helper.rehashMap(getFieldsMap()));
  setPrimaryKeyMappings(new ArrayList(2));
  setNonPrimaryKeyMappings(new ArrayList(2));
  initializePrimaryKey(session);
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * Rehash any maps based on fields.
 * This is used to clone descriptors for aggregates, which hammer field names,
 * it is probably better not to hammer the field name and this should be refactored.
 */
public void rehashFieldDependancies(AbstractSession session) {
  setMappingsByField(Helper.rehashMap(getMappingsByField()));
  setReadOnlyMappingsByField(Helper.rehashMap(getReadOnlyMappingsByField()));
  setFieldsMap(Helper.rehashMap(getFieldsMap()));
  setPrimaryKeyMappings(new ArrayList(2));
  setNonPrimaryKeyMappings(new ArrayList(2));
  initializePrimaryKey(session);
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Rehash any map based on fields.
 * This is used to clone descriptors for aggregates, which hammer field names,
 * it is probably better not to hammer the field name and this should be refactored.
 */
@Override
public void rehashFieldDependancies(AbstractSession session) {
  setSourceToTargetKeyFields(Helper.rehashMap(getSourceToTargetKeyFields()));
  // Go through the fks again and make updates for any translated fields.
  for (DatabaseField field : getSourceToTargetKeyFields().keySet()) {
    if (field.isTranslated()) {
      updateInsertableAndUpdatableFields(field);
    }
  }
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Rehash any map based on fields.
 * This is used to clone descriptors for aggregates, which hammer field names,
 * it is probably better not to hammer the field name and this should be refactored.
 */
@Override
public void rehashFieldDependancies(AbstractSession session) {
  setSourceToTargetKeyFields(Helper.rehashMap(getSourceToTargetKeyFields()));
  
  // Go through the fks again and make updates for any translated fields.
  for (DatabaseField field : getSourceToTargetKeyFields().keySet()) {
    if (field.isTranslated()) {
      updateInsertableAndUpdatableFields(field);
    }
  }
}

相关文章

Helper类方法