| Summary: | Switch to use Iterable instead of Iterator throughout our provisional API | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> |
| Component: | General | Assignee: | Karen Butzke <karenfbutzke> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | neil.hauge |
| Version: | 3.0 | ||
| Target Milestone: | 3.1 M1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | 233567 | ||
| Bug Blocks: | |||
|
Description
Karen Butzke
Going to wait on this until Brian is finished with the huge refactoring in bug 233567 I have changed our core model API that uses Iterator and ListIterator to use Iterable and ListIterable. The methods were also renamed to include a "get" prefix. Here are a few examples of the changes that were made. This pattern has been followed throughout the model. In package org.eclipse.jpt.jpa.core.context PersistentType.allAttributes():Iterator -> getAllAttributes():Iterable In package org.eclipse.jpt.jpa.core.context.persistence Persistence.persistenceUnits():Iterator -> getPersistenceUnits():Iterable Persistence.persistenceUnitsSize() -> getPersistenceUnitsSize() PersistenceUnit.classRefs():Iterator -> getClassRefs():Iterable PersistenceUnit.classRefsSize() -> getClassRefsSize() PersistenceUnit.mappingFileRefs():Iterator -> getMappingFileRefs():Iterable PersistenceUnit.mappingFileRefsSize() -> getMappingFileRefsSize() Some more examples where this change was made JavaResourceAnnotatedElement.annotations(String, String) - changed to getAnnotations(String) : Iterable JavaResourceAnnotatedElement.annotations(String) - changed to getAnnotations() : Iterable PersistentType.attributes() : ListIterator changed to getAttributes() : ListIterable PersistenceUnit.mappingFileRefsContaining(...) changed to getMappingFileRefsContaining(String) : Iterable |