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

📄 personfactory.java

📁 OR Mapping工具
💻 JAVA
字号:
package org.ephman.examples.family;import java.sql.*;import org.ephman.abra.database.*;import org.ephman.abra.utils.*;import org.ephman.examples.family.generated.*;public class PersonFactory extends AbstractPersonFactory {		private static PersonFactory theInstance;	public static synchronized PersonFactory getInstance () {		if (theInstance == null)			theInstance = new PersonFactory ();		return theInstance;	}	/** this method describes what must be retrived for completeness*/	protected void deepRetrieval (DatabaseSession dbSess, Identified item) throws SQLException {		Person p = (Person)item;		p.setFather (getByOid (dbSess, p.getFatherOid ()));		p.setMother (getByOid (dbSess, p.getMotherOid ()));	}	public Person getByAge (DatabaseSession dbSess, int age) throws SQLException {		return (Person)super.getObject (dbSess, super.age, age);	}}

⌨️ 快捷键说明

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