use of org.liferay.jukebox.NoSuchArtistException in project liferay-ide by liferay.
the class ArtistPersistenceImpl method findByUuid_C_First.
/**
* Returns the first artist 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 first matching artist
* @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Artist findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchArtistException, SystemException {
Artist artist = fetchByUuid_C_First(uuid, companyId, orderByComparator);
if (artist != null) {
return artist;
}
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 NoSuchArtistException(msg.toString());
}
use of org.liferay.jukebox.NoSuchArtistException in project liferay-ide by liferay.
the class ArtistPersistenceImpl method findByU_G_PrevAndNext.
/**
* Returns the artists before and after the current artist in the ordered set where userId = ? and groupId = ?.
*
* @param artistId the primary key of the current artist
* @param userId the user ID
* @param groupId the group ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next artist
* @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Artist[] findByU_G_PrevAndNext(long artistId, long userId, long groupId, OrderByComparator orderByComparator) throws NoSuchArtistException, SystemException {
Artist artist = findByPrimaryKey(artistId);
Session session = null;
try {
session = openSession();
Artist[] array = new ArtistImpl[3];
array[0] = getByU_G_PrevAndNext(session, artist, userId, groupId, orderByComparator, true);
array[1] = artist;
array[2] = getByU_G_PrevAndNext(session, artist, userId, groupId, orderByComparator, false);
return array;
} catch (Exception e) {
throw processException(e);
} finally {
closeSession(session);
}
}
use of org.liferay.jukebox.NoSuchArtistException in project liferay-ide by liferay.
the class ArtistPersistenceImpl method findByG_S_Last.
/**
* Returns the last artist in the ordered set where groupId = ? and status = ?.
*
* @param groupId the group ID
* @param status the status
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching artist
* @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Artist findByG_S_Last(long groupId, int status, OrderByComparator orderByComparator) throws NoSuchArtistException, SystemException {
Artist artist = fetchByG_S_Last(groupId, status, orderByComparator);
if (artist != null) {
return artist;
}
StringBundler msg = new StringBundler(6);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("groupId=");
msg.append(groupId);
msg.append(", status=");
msg.append(status);
msg.append(StringPool.CLOSE_CURLY_BRACE);
throw new NoSuchArtistException(msg.toString());
}
use of org.liferay.jukebox.NoSuchArtistException in project liferay-ide by liferay.
the class ArtistPersistenceImpl method findByUserId_First.
/**
* Returns the first artist 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 first matching artist
* @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Artist findByUserId_First(long userId, OrderByComparator orderByComparator) throws NoSuchArtistException, SystemException {
Artist artist = fetchByUserId_First(userId, orderByComparator);
if (artist != null) {
return artist;
}
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 NoSuchArtistException(msg.toString());
}
use of org.liferay.jukebox.NoSuchArtistException in project liferay-ide by liferay.
the class ArtistPersistenceImpl method findByCompanyId_First.
/**
* Returns the first artist 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 first matching artist
* @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Artist findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchArtistException, SystemException {
Artist artist = fetchByCompanyId_First(companyId, orderByComparator);
if (artist != null) {
return artist;
}
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 NoSuchArtistException(msg.toString());
}
Aggregations