use of com.liferay.blade.basic.exception.NoSuchFooException in project liferay-blade-samples by liferay.
the class FooPersistenceImpl method findByUuid_Last.
/**
* Returns the last foo in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching foo
* @throws NoSuchFooException if a matching foo could not be found
*/
@Override
public Foo findByUuid_Last(String uuid, OrderByComparator<Foo> orderByComparator) throws NoSuchFooException {
Foo foo = fetchByUuid_Last(uuid, orderByComparator);
if (foo != null) {
return foo;
}
StringBundler msg = new StringBundler(4);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("uuid=");
msg.append(uuid);
msg.append("}");
throw new NoSuchFooException(msg.toString());
}
Aggregations