* Obtain an iterator of all existing capabilities.
* @return Returns an iterator for all existing Capabilities of type <code>Capability</code>
*/
public Iterator getCapabilities()
{
QueryByCriteria query = null;
try
{
query = QueryFactory.newQuery(getCapabilityClass(), new Criteria());
}
catch (Exception e)
{
String message =
"CapabilityServiceImpl: getCapabilities query used invalid class ";
log.error(message, e);
return null;
}
query.addOrderByAscending("name");
return getPersistenceBrokerTemplate().getCollectionByQuery(query).iterator();
}