authorprocsfactory.java
来自「OR Mapping工具」· Java 代码 · 共 32 行
JAVA
32 行
package org.ephman.junit;import org.ephman.junit.generated.*;import org.ephman.abra.database.*;/** a different author factory to use stored procs.. */public class AuthorProcsFactory extends AbstractAuthorFactory { private static AuthorProcsFactory theInstance = null; public static AuthorProcsFactory getInstance () { if (theInstance == null) { synchronized (AuthorProcsFactory.class) { if (theInstance == null) theInstance = new AuthorProcsFactory (); } } return theInstance; } // override to test procs.. protected boolean useStoredProcs () { return true; } public Author getByLastName (DatabaseSession dbSess, String lastName) throws Exception { return (Author) getObject (dbSess, this.lastName, lastName); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?