use of org.liferay.jukebox.NoSuchSongException in project liferay-ide by liferay.
the class SongPersistenceImpl method findByUserId_Last.
/**
* Returns the last song in the ordered set where userId = ?.
*
* @param userId the user 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 findByUserId_Last(long userId, OrderByComparator orderByComparator) throws NoSuchSongException, SystemException {
Song song = fetchByUserId_Last(userId, orderByComparator);
if (song != null) {
return song;
}
StringBundler msg = new StringBundler(4);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("userId=");
msg.append(userId);
msg.append(StringPool.CLOSE_CURLY_BRACE);
throw new NoSuchSongException(msg.toString());
}
use of org.liferay.jukebox.NoSuchSongException in project liferay-ide by liferay.
the class SongPersistenceImpl method findByUuid_C_Last.
/**
* Returns the last song in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company 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 findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchSongException, SystemException {
Song song = fetchByUuid_C_Last(uuid, companyId, orderByComparator);
if (song != null) {
return song;
}
StringBundler msg = new StringBundler(6);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("uuid=");
msg.append(uuid);
msg.append(", companyId=");
msg.append(companyId);
msg.append(StringPool.CLOSE_CURLY_BRACE);
throw new NoSuchSongException(msg.toString());
}
use of org.liferay.jukebox.NoSuchSongException in project liferay-ide by liferay.
the class SongPersistenceImpl method findByUuid_First.
/**
* Returns the first song 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 first 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 findByUuid_First(String uuid, OrderByComparator orderByComparator) throws NoSuchSongException, SystemException {
Song song = fetchByUuid_First(uuid, orderByComparator);
if (song != null) {
return song;
}
StringBundler msg = new StringBundler(4);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("uuid=");
msg.append(uuid);
msg.append(StringPool.CLOSE_CURLY_BRACE);
throw new NoSuchSongException(msg.toString());
}
use of org.liferay.jukebox.NoSuchSongException in project liferay-ide by liferay.
the class SongPersistenceImpl method findByCompanyId_Last.
/**
* Returns the last song in the ordered set where companyId = ?.
*
* @param companyId the company 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 findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws NoSuchSongException, SystemException {
Song song = fetchByCompanyId_Last(companyId, orderByComparator);
if (song != null) {
return song;
}
StringBundler msg = new StringBundler(4);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("companyId=");
msg.append(companyId);
msg.append(StringPool.CLOSE_CURLY_BRACE);
throw new NoSuchSongException(msg.toString());
}
use of org.liferay.jukebox.NoSuchSongException in project liferay-ide by liferay.
the class SongPersistenceImpl method findByAlbumId_Last.
/**
* Returns the last song in the ordered set where albumId = ?.
*
* @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 findByAlbumId_Last(long albumId, OrderByComparator orderByComparator) throws NoSuchSongException, SystemException {
Song song = fetchByAlbumId_Last(albumId, orderByComparator);
if (song != null) {
return song;
}
StringBundler msg = new StringBundler(4);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("albumId=");
msg.append(albumId);
msg.append(StringPool.CLOSE_CURLY_BRACE);
throw new NoSuchSongException(msg.toString());
}
Aggregations