usertogroupfactory.java
来自「OR Mapping工具」· Java 代码 · 共 27 行
JAVA
27 行
package org.ephman.examples.user;import org.ephman.examples.user.generated.*;import org.ephman.abra.database.*;import java.sql.SQLException;public class UserToGroupFactory extends AbstractUserToGroupFactory { private UserToGroupFactory () { } static UserToGroupFactory theInstance = null; public static UserToGroupFactory getInstance () { if (theInstance == null) synchronized (UserToGroupFactory.class) { if (theInstance == null) // still null theInstance = new UserToGroupFactory (); } return theInstance; } public void addRelationship (DatabaseSession dbSess, User user, Group group) throws SQLException { super.addRelationship (dbSess, makeInsertString (), user.getOid (), group.getOid ()); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?