📄 usertogroupfactory.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -