Search in sources :

Example 16 with NoSuchArtistException

use of org.liferay.jukebox.NoSuchArtistException in project liferay-ide by liferay.

the class ArtistPersistenceImpl method findByGroupId_First.

/**
 * Returns the first artist in the ordered set where groupId = ?.
 *
 * @param groupId the group 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 findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchArtistException, SystemException {
    Artist artist = fetchByGroupId_First(groupId, orderByComparator);
    if (artist != null) {
        return artist;
    }
    StringBundler msg = new StringBundler(4);
    msg.append(_NO_SUCH_ENTITY_WITH_KEY);
    msg.append("groupId=");
    msg.append(groupId);
    msg.append(StringPool.CLOSE_CURLY_BRACE);
    throw new NoSuchArtistException(msg.toString());
}
Also used : Artist(org.liferay.jukebox.model.Artist) StringBundler(com.liferay.portal.kernel.util.StringBundler) NoSuchArtistException(org.liferay.jukebox.NoSuchArtistException)

Example 17 with NoSuchArtistException

use of org.liferay.jukebox.NoSuchArtistException in project liferay-ide by liferay.

the class ArtistPersistenceImpl method findByG_LikeN_S_Last.

/**
 * Returns the last artist in the ordered set where groupId = &#63; and name LIKE &#63; and status = &#63;.
 *
 * @param groupId the group ID
 * @param name the name
 * @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_LikeN_S_Last(long groupId, String name, int status, OrderByComparator orderByComparator) throws NoSuchArtistException, SystemException {
    Artist artist = fetchByG_LikeN_S_Last(groupId, name, status, orderByComparator);
    if (artist != null) {
        return artist;
    }
    StringBundler msg = new StringBundler(8);
    msg.append(_NO_SUCH_ENTITY_WITH_KEY);
    msg.append("groupId=");
    msg.append(groupId);
    msg.append(", name=");
    msg.append(name);
    msg.append(", status=");
    msg.append(status);
    msg.append(StringPool.CLOSE_CURLY_BRACE);
    throw new NoSuchArtistException(msg.toString());
}
Also used : Artist(org.liferay.jukebox.model.Artist) StringBundler(com.liferay.portal.kernel.util.StringBundler) NoSuchArtistException(org.liferay.jukebox.NoSuchArtistException)

Example 18 with NoSuchArtistException

use of org.liferay.jukebox.NoSuchArtistException in project liferay-ide by liferay.

the class ArtistPersistenceImpl method findByG_S_First.

/**
 * Returns the first artist in the ordered set where groupId = &#63; and status = &#63;.
 *
 * @param groupId the group ID
 * @param status the status
 * @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 findByG_S_First(long groupId, int status, OrderByComparator orderByComparator) throws NoSuchArtistException, SystemException {
    Artist artist = fetchByG_S_First(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());
}
Also used : Artist(org.liferay.jukebox.model.Artist) StringBundler(com.liferay.portal.kernel.util.StringBundler) NoSuchArtistException(org.liferay.jukebox.NoSuchArtistException)

Example 19 with NoSuchArtistException

use of org.liferay.jukebox.NoSuchArtistException in project liferay-ide by liferay.

the class ArtistPersistenceImpl method findByG_LikeN_S_First.

/**
 * Returns the first artist in the ordered set where groupId = &#63; and name LIKE &#63; and status = &#63;.
 *
 * @param groupId the group ID
 * @param name the name
 * @param status the status
 * @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 findByG_LikeN_S_First(long groupId, String name, int status, OrderByComparator orderByComparator) throws NoSuchArtistException, SystemException {
    Artist artist = fetchByG_LikeN_S_First(groupId, name, status, orderByComparator);
    if (artist != null) {
        return artist;
    }
    StringBundler msg = new StringBundler(8);
    msg.append(_NO_SUCH_ENTITY_WITH_KEY);
    msg.append("groupId=");
    msg.append(groupId);
    msg.append(", name=");
    msg.append(name);
    msg.append(", status=");
    msg.append(status);
    msg.append(StringPool.CLOSE_CURLY_BRACE);
    throw new NoSuchArtistException(msg.toString());
}
Also used : Artist(org.liferay.jukebox.model.Artist) StringBundler(com.liferay.portal.kernel.util.StringBundler) NoSuchArtistException(org.liferay.jukebox.NoSuchArtistException)

Example 20 with NoSuchArtistException

use of org.liferay.jukebox.NoSuchArtistException in project liferay-ide by liferay.

the class ArtistPersistenceImpl method findByU_G_Last.

/**
 * Returns the last artist in the ordered set where userId = &#63; and groupId = &#63;.
 *
 * @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 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 findByU_G_Last(long userId, long groupId, OrderByComparator orderByComparator) throws NoSuchArtistException, SystemException {
    Artist artist = fetchByU_G_Last(userId, groupId, orderByComparator);
    if (artist != null) {
        return artist;
    }
    StringBundler msg = new StringBundler(6);
    msg.append(_NO_SUCH_ENTITY_WITH_KEY);
    msg.append("userId=");
    msg.append(userId);
    msg.append(", groupId=");
    msg.append(groupId);
    msg.append(StringPool.CLOSE_CURLY_BRACE);
    throw new NoSuchArtistException(msg.toString());
}
Also used : Artist(org.liferay.jukebox.model.Artist) StringBundler(com.liferay.portal.kernel.util.StringBundler) NoSuchArtistException(org.liferay.jukebox.NoSuchArtistException)

Aggregations

NoSuchArtistException (org.liferay.jukebox.NoSuchArtistException)30 Artist (org.liferay.jukebox.model.Artist)30 StringBundler (com.liferay.portal.kernel.util.StringBundler)17 Session (com.liferay.portal.kernel.dao.orm.Session)13 SystemException (com.liferay.portal.kernel.exception.SystemException)13 ArtistImpl (org.liferay.jukebox.model.impl.ArtistImpl)13