use of org.liferay.jukebox.NoSuchSongException in project liferay-ide by liferay.
the class SongPersistenceImpl method findByG_A_Last.
/**
* Returns the last song in the ordered set where groupId = ? and albumId = ?.
*
* @param groupId the group ID
* @param albumId the album ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching song
* @throws org.liferay.jukebox.NoSuchSongException if a matching song could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Song findByG_A_Last(long groupId, long albumId, OrderByComparator orderByComparator) throws NoSuchSongException, SystemException {
Song song = fetchByG_A_Last(groupId, albumId, orderByComparator);
if (song != null) {
return song;
}
StringBundler msg = new StringBundler(6);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("groupId=");
msg.append(groupId);
msg.append(", albumId=");
msg.append(albumId);
msg.append(StringPool.CLOSE_CURLY_BRACE);
throw new NoSuchSongException(msg.toString());
}
Aggregations