本文整理汇总了Java中com.liferay.portal.kernel.transaction.Isolation类的典型用法代码示例。如果您正苦于以下问题:Java Isolation类的具体用法?Java Isolation怎么用?Java Isolation使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Isolation类属于com.liferay.portal.kernel.transaction包,在下文中一共展示了Isolation类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: releasePermissionedModelResourceBlock
import com.liferay.portal.kernel.transaction.Isolation; //导入依赖的package包/类
@Transactional(
isolation = Isolation.READ_COMMITTED,
propagation = Propagation.REQUIRES_NEW)
public void releasePermissionedModelResourceBlock(
PermissionedModel permissionedModel)
throws SystemException {
releaseResourceBlock(permissionedModel.getResourceBlockId());
}
示例2: releaseResourceBlock
import com.liferay.portal.kernel.transaction.Isolation; //导入依赖的package包/类
/**
* Decrements the reference count of the resource block and updates it in
* the database or deletes the resource block if the reference count reaches
* zero.
*
* @param resourceBlock the resource block
* @throws SystemException if a system exception occurred
*/
@Transactional(
isolation = Isolation.READ_COMMITTED,
propagation = Propagation.REQUIRES_NEW)
public void releaseResourceBlock(ResourceBlock resourceBlock)
throws SystemException {
releaseResourceBlock(resourceBlock.getResourceBlockId());
}