public void validateDerivedPKClassId(String attributeName,String expectedType,String referenceClassName){
  if (m_pkClassIDs.containsKey(attributeName)) {
    String actualType=m_pkClassIDs.get(attributeName);
    if (actualType.equals(expectedType)) {
      m_pkClassIDs.remove(attributeName);
    }
 else {
      throw ValidationException.invalidDerivedCompositePKAttribute(referenceClassName,getPKClassName(),attributeName,expectedType,actualType);
    }
  }
}

public void validateDerivedPKClassId ( String attributeName , String expectedType , String referenceClassName ) { if ( m_pkClassIDs . containsKey ( attributeName ) ) { String actualType = m_pkClassIDs . get ( attributeName ) ; if ( actualType . equals ( expectedType ) ) { m_pkClassIDs . remove ( attributeName ) ; } else { throw ValidationException . invalidDerivedCompositePKAttribute ( referenceClassName , getPKClassName ( ) , attributeName , expectedType , actualType ) ; } } }
internal : this method is used to validate derived id fields only . re - using the invalid composite pk attribute validation exception would yield an interesting error message . therefore , this method should be used to validate derived id members . when validating derived ids things are slightly reversed in terms on context . the expectedtype passed in should be the boxed type ( were applicable ) .
