userpropdb.java

来自「cwbbs 云网论坛源码」· Java 代码 · 共 37 行

JAVA
37
字号
package com.redmoon.forum.person;import com.cloudwebsoft.framework.base.*;import com.cloudwebsoft.framework.db.JdbcTemplate;import com.cloudwebsoft.framework.util.LogUtil;import cn.js.fan.util.ResKeyException;public class UserPropDb extends QObjectDb {    public UserPropDb() {    }    public boolean init(String userName) {        boolean re = false;        try {            re = create(new JdbcTemplate(), new Object[] {                userName, new Integer(0), new Integer(0), ""            });        }        catch (ResKeyException e) {            LogUtil.getLog(getClass()).error("init:" + e.getMessage());        }        return re;    }    public UserPropDb getUserPropDb(String userName) {        UserPropDb up = (UserPropDb)getQObjectDb(userName);                if (up==null) {            init(userName);            return (UserPropDb)getQObjectDb(userName);        }        else            return up;    }}

⌨️ 快捷键说明

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