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());
}
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 = ? and name LIKE ? and status = ?.
*
* @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());
}
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 = ? 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 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());
}
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 = ? and name LIKE ? and status = ?.
*
* @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());
}
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 = ? and groupId = ?.
*
* @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());
}
Aggregations