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

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

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

Helper.addAllUniqueToVector介绍

暂无

代码示例

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

/**
 *  Take an unsorted vector of descriptors and sort it so that the order is maintained.
 */
private Vector buildSortedVectorOfDescriptors(Vector descriptors) {
  Vector returnDescriptors = Helper.addAllUniqueToVector(new Vector(descriptors.size()), descriptors);
  Object[] descriptorsArray = new Object[returnDescriptors.size()];
  for (int index = 0; index < returnDescriptors.size(); index++) {
    descriptorsArray[index] = returnDescriptors.elementAt(index);
  }
  Arrays.sort(descriptorsArray, new DescriptorCompare());
  returnDescriptors = new Vector(returnDescriptors.size());
  for (int index = 0; index < descriptorsArray.length; index++) {
    returnDescriptors.addElement(descriptorsArray[index]);
  }
  return returnDescriptors;
}

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

descriptors = Helper.addAllUniqueToVector(new Vector(descriptors.size()), descriptors);
Object[] descriptorsArray = new Object[descriptors.size()];
for (int index = 0; index < descriptors.size(); index++) {

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

descriptors = Helper.addAllUniqueToVector(new Vector(descriptors.size()), descriptors);
Object[] descriptorsArray = new Object[descriptors.size()];
for (int index = 0; index < descriptors.size(); index++) {

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

descriptors = Helper.addAllUniqueToVector(new Vector(descriptors.size()), descriptors);
Object[] descriptorsArray = new Object[descriptors.size()];
for (int index = 0; index < descriptors.size(); index++) {

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

/**
 * INTERNAL:
 * Recursively adds fields to all the parents
 */
protected void addFieldsToParent(Vector fields) {
  if (isChildDescriptor()) {
    if (getParentDescriptor().isInvalid()) {
      return;
    }
    ClassDescriptor parentDescriptor = getParentDescriptor();
    if (parentDescriptor.getInheritancePolicy().shouldReadSubclasses()) {
      Helper.addAllUniqueToVector(parentDescriptor.getAllFields(), fields);
    }
    parentDescriptor.getInheritancePolicy().addFieldsToParent(fields);
  }
}

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

/**
 * INTERNAL:
 * Recursively adds fields to all the parents
 */
protected void addFieldsToParent(Vector fields) {
  if (isChildDescriptor()) {
    if (getParentDescriptor().isInvalid()) {
      return;
    }
    ClassDescriptor parentDescriptor = getParentDescriptor();
    if (parentDescriptor.getInheritancePolicy().shouldReadSubclasses()) {
      Helper.addAllUniqueToVector(parentDescriptor.getAllFields(), fields);
    }
    parentDescriptor.getInheritancePolicy().addFieldsToParent(fields);
  }
}

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

/**
 * INTERNAL:
 * Recursively adds fields to all the parents
 */
protected void addFieldsToParent(Vector fields) {
  if (isChildDescriptor()) {
    if (getParentDescriptor().isInvalid()) {
      return;
    }
    ClassDescriptor parentDescriptor = getParentDescriptor();
    if (parentDescriptor.getInheritancePolicy().shouldReadSubclasses()) {
      Helper.addAllUniqueToVector(parentDescriptor.getAllFields(), fields);
    }
    parentDescriptor.getInheritancePolicy().addFieldsToParent(fields);
  }
}

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

Helper.addAllUniqueToVector(getFields(), mapping.getFields());

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

Helper.addAllUniqueToVector(getFields(), mapping.getFields());

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

Helper.addAllUniqueToVector(getFields(), mapping.getFields());

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

Helper.addAllUniqueToVector(getFields(), mapping.getFields());

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

Helper.addAllUniqueToVector(getFields(), mapping.getFields());

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

Helper.addAllUniqueToVector(getFields(), mapping.getFields());

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

Helper.addAllUniqueToVector(parentsFields, getDescriptor().getFields());
getDescriptor().setFields(parentsFields);

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

Helper.addAllUniqueToVector(parentsFields, getDescriptor().getFields());
getDescriptor().setFields(parentsFields);

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

Helper.addAllUniqueToVector(parentsFields, getDescriptor().getFields());
getDescriptor().setFields(parentsFields);

相关文章

Helper类方法