文章列表
private static SQLStore sqlstore = null;
private static DBAccess db = null;
private DBAccess() {
init();
}
//实例化该单例
public static DBAccess getInstance() {
if (db == null)
db = new DBAccess();
return db;
}
//进行初始化,载入sqlstore
private void init() {
if (sqlstore == nu ...
- 2008-06-01 21:39
- 浏览 698
- 评论(0)