⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objectnotfoundexception.java

📁 用Java实现的23个常用设计模式源代码
💻 JAVA
字号:
//$Id: ObjectNotFoundException.java,v 1.4.2.1 2003/11/27 09:30:48 oneovthafew Exp $package net.sf.hibernate;import java.io.Serializable;/** * Thrown when <tt>Session.load()</tt> fails to select a row with * the given primary key (identifier value). This exception might not * be thrown when <tt>load()</tt> is called, even if there was no * row on the database, because <tt>load()</tt> returns a proxy if * possible. Applications should use <tt>Session.get()</tt> to test if  * a row exists in the database. *  * @author Gavin King */public class ObjectNotFoundException extends UnresolvableObjectException {		public ObjectNotFoundException(Serializable identifier, Class clazz) {		super(identifier, clazz);	}	public static void throwIfNull(Object o, Serializable id, Class clazz) 	throws ObjectNotFoundException {		if (o==null) throw new ObjectNotFoundException(id, clazz);	}	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -