| java.lang.Object org.compass.sample.petclinic.util.EntityUtils
EntityUtils | abstract public class EntityUtils (Code) | | Utility methods for handling entities.
Separate from the Entity class mainly because of dependency
on the ORM-associated ObjectRetrievalFailureException.
author: Juergen Hoeller since: 29.10.2003 See Also: org.springframework.samples.petclinic.Entity |
Method Summary | |
public static Entity | getById(Collection entities, Class entityClass, int entityId) Look up the entity of the given class with the given id
in the given collection. |
getById | public static Entity getById(Collection entities, Class entityClass, int entityId) throws ObjectRetrievalFailureException(Code) | | Look up the entity of the given class with the given id
in the given collection.
Parameters: entities - the collection to search Parameters: entityClass - the entity class to look up Parameters: entityId - the entity id to look up the found entity throws: ObjectRetrievalFailureException - if the entity was not found |
|
|