当前位置: 首页>>代码示例>>Java>>正文


Java NoSuchModelException类代码示例

本文整理汇总了Java中com.liferay.portal.NoSuchModelException的典型用法代码示例。如果您正苦于以下问题:Java NoSuchModelException类的具体用法?Java NoSuchModelException怎么用?Java NoSuchModelException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


NoSuchModelException类属于com.liferay.portal包,在下文中一共展示了NoSuchModelException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getTrashEntry

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
@Override
public TrashEntry getTrashEntry() throws PortalException {
	if (!isInTrash()) {
		return null;
	}

	TrashEntry trashEntry = TrashEntryLocalServiceUtil.fetchEntry(getModelClassName(),
			getTrashEntryClassPK());

	if (trashEntry != null) {
		return trashEntry;
	}

	TrashHandler trashHandler = getTrashHandler();

	if (!Validator.isNull(trashHandler.getContainerModelClassName())) {
		ContainerModel containerModel = null;

		try {
			containerModel = trashHandler.getParentContainerModel(this);
		}
		catch (NoSuchModelException nsme) {
			return null;
		}

		while (containerModel != null) {
			if (containerModel instanceof TrashedModel) {
				TrashedModel trashedModel = (TrashedModel)containerModel;

				return trashedModel.getTrashEntry();
			}

			trashHandler = TrashHandlerRegistryUtil.getTrashHandler(trashHandler.getContainerModelClassName());

			if (trashHandler == null) {
				return null;
			}

			containerModel = trashHandler.getContainerModel(containerModel.getParentContainerModelId());
		}
	}

	return null;
}
 
开发者ID:juliocamarero,项目名称:jukebox-portlet,代码行数:45,代码来源:ArtistClp.java

示例2: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the legal details with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the legal details
 * @return the legal details
 * @throws com.liferay.portal.NoSuchModelException if a legal details with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public LegalDetails findByPrimaryKey(Serializable primaryKey)
    throws NoSuchModelException, SystemException {
    return findByPrimaryKey(((Long) primaryKey).longValue());
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:14,代码来源:LegalDetailsPersistenceImpl.java

示例3: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the multi media with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the multi media
 * @return the multi media
 * @throws com.liferay.portal.NoSuchModelException if a multi media with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public MultiMedia findByPrimaryKey(Serializable primaryKey)
    throws NoSuchModelException, SystemException {
    return findByPrimaryKey(((Long) primaryKey).longValue());
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:14,代码来源:MultiMediaPersistenceImpl.java

示例4: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the category with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the category
 * @return the category
 * @throws com.liferay.portal.NoSuchModelException if a category with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public Category findByPrimaryKey(Serializable primaryKey)
    throws NoSuchModelException, SystemException {
    return findByPrimaryKey(((Long) primaryKey).longValue());
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:14,代码来源:CategoryPersistenceImpl.java

示例5: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the region with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the region
 * @return the region
 * @throws com.liferay.portal.NoSuchModelException if a region with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public Region findByPrimaryKey(Serializable primaryKey)
    throws NoSuchModelException, SystemException {
    return findByPrimaryKey(((Long) primaryKey).longValue());
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:14,代码来源:RegionPersistenceImpl.java

示例6: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the entitlement with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the entitlement
 * @return the entitlement
 * @throws com.liferay.portal.NoSuchModelException if a entitlement with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public Entitlement findByPrimaryKey(Serializable primaryKey)
    throws NoSuchModelException, SystemException {
    return findByPrimaryKey(((Long) primaryKey).longValue());
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:14,代码来源:EntitlementPersistenceImpl.java

示例7: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the logging with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the logging
 * @return the logging
 * @throws com.liferay.portal.NoSuchModelException if a logging with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public Logging findByPrimaryKey(Serializable primaryKey)
    throws NoSuchModelException, SystemException {
    return findByPrimaryKey(((Long) primaryKey).longValue());
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:14,代码来源:LoggingPersistenceImpl.java

示例8: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the application with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the application
 * @return the application
 * @throws com.liferay.portal.NoSuchModelException if a application with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public Application findByPrimaryKey(Serializable primaryKey)
    throws NoSuchModelException, SystemException {
    return findByPrimaryKey(((Long) primaryKey).longValue());
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:14,代码来源:ApplicationPersistenceImpl.java

示例9: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the language with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the language
 * @return the language
 * @throws com.liferay.portal.NoSuchModelException if a language with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public Language findByPrimaryKey(Serializable primaryKey)
    throws NoSuchModelException, SystemException {
    return findByPrimaryKey(((Long) primaryKey).longValue());
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:14,代码来源:LanguagePersistenceImpl.java

示例10: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the link with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the link
 * @return the link
 * @throws com.liferay.portal.NoSuchModelException if a link with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public Link findByPrimaryKey(Serializable primaryKey)
    throws NoSuchModelException, SystemException {
    return findByPrimaryKey(((Long) primaryKey).longValue());
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:14,代码来源:LinkPersistenceImpl.java

示例11: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the related applications with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the related applications
 * @return the related applications
 * @throws com.liferay.portal.NoSuchModelException if a related applications with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public RelatedApplications findByPrimaryKey(Serializable primaryKey)
    throws NoSuchModelException, SystemException {
    return findByPrimaryKey(((Long) primaryKey).longValue());
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:14,代码来源:RelatedApplicationsPersistenceImpl.java

示例12: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the application_ entitlement with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the application_ entitlement
 * @return the application_ entitlement
 * @throws com.liferay.portal.NoSuchModelException if a application_ entitlement with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public Application_Entitlement findByPrimaryKey(Serializable primaryKey)
    throws NoSuchModelException, SystemException {
    return findByPrimaryKey(((Long) primaryKey).longValue());
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:14,代码来源:Application_EntitlementPersistenceImpl.java

示例13: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the concern with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the concern
 * @return the concern
 * @throws com.liferay.portal.NoSuchModelException if a concern with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public Concern findByPrimaryKey(Serializable primaryKey)
    throws NoSuchModelException, SystemException {
    return findByPrimaryKey(((Long) primaryKey).longValue());
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:14,代码来源:ConcernPersistenceImpl.java

示例14: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the lms prefs with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the lms prefs
 * @return the lms prefs
 * @throws com.liferay.portal.NoSuchModelException if a lms prefs with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public LmsPrefs findByPrimaryKey(Serializable primaryKey)
	throws NoSuchModelException, SystemException {
	return findByPrimaryKey(((Long)primaryKey).longValue());
}
 
开发者ID:TelefonicaED,项目名称:liferaylms-portlet,代码行数:14,代码来源:LmsPrefsPersistenceImpl.java

示例15: findByPrimaryKey

import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
 * Returns the learning activity with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
 *
 * @param primaryKey the primary key of the learning activity
 * @return the learning activity
 * @throws com.liferay.portal.NoSuchModelException if a learning activity with the primary key could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public LearningActivity findByPrimaryKey(Serializable primaryKey)
	throws NoSuchModelException, SystemException {
	return findByPrimaryKey(((Long)primaryKey).longValue());
}
 
开发者ID:TelefonicaED,项目名称:liferaylms-portlet,代码行数:14,代码来源:LearningActivityPersistenceImpl.java


注:本文中的com.liferay.portal.NoSuchModelException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。