/** * INTERNAL: */ public void addClassIndicator(Class entityClass, String value) { if (m_accessor.isInheritanceSubclass()) { m_accessor.getInheritanceParentDescriptor().addClassIndicator(entityClass, value); } else { m_descriptor.getInheritancePolicy().addClassNameIndicator(entityClass.getName(), value); } }
/** * INTERNAL: * Set the class indicator associations from reading the deployment XML. */ public void setClassIndicatorAssociations(Vector classIndicatorAssociations) { setClassNameIndicatorMapping(new HashMap(classIndicatorAssociations.size() + 1)); setClassIndicatorMapping(new HashMap((classIndicatorAssociations.size() * 2) + 1)); for (Enumeration associationsEnum = classIndicatorAssociations.elements(); associationsEnum.hasMoreElements();) { Association association = (Association)associationsEnum.nextElement(); Object classValue = association.getKey(); if (classValue instanceof Class) { // 904 projects will be a class type. addClassIndicator((Class)association.getKey(), association.getValue()); } else { addClassNameIndicator((String)association.getKey(), association.getValue()); } } }