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

📄 userpropdb.java

📁 cwbbs 云网论坛源码
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -