Java源码示例:org.nutz.dao.impl.NutDao
示例1
private void init() throws SQLException {
SimpleDataSource simpleDataSource = new SimpleDataSource();
simpleDataSource.setJdbcUrl("jdbc:sqlite:"+datapath);
dao = new NutDao(simpleDataSource);
imageDatabase=new ImageDatabase(datapath);
imageDatabase.getBigImageInfoFromDatabase();
emojiDataBase= new EmojiDataBase(datapath);
labels=getAllLabel();
contacts = getAllConTact();
allmsgs = getAllMsgssage();
//popAllMessageToContact();
}
示例2
@Autowired
public UserDao(@Autowired DataSource dataSource) {
super(new NutDao(dataSource));
}
示例3
@Autowired
public AuthorityDao(@Autowired DataSource dataSource) {
super(new NutDao(dataSource));
}
示例4
@Autowired
public AccountDao(@Autowired DataSource dataSource) {
super(new NutDao(dataSource));
}
示例5
@Autowired
public MenuDao(@Autowired DataSource dataSource) {
super(new NutDao(dataSource));
}
示例6
@Autowired
public AreaDao(@Autowired DataSource dataSource) {
super(new NutDao(dataSource));
}
示例7
@Autowired
public AccessTokenDao(@Autowired DataSource dataSource) {
super(new NutDao(dataSource));
}
示例8
@Autowired
public OpenUserDao(@Autowired DataSource dataSource) {
super(new NutDao(dataSource));
}
示例9
@Autowired
public RoleDao(@Autowired DataSource dataSource) {
super(new NutDao(dataSource));
}
示例10
@Autowired
public OrgDao(@Autowired DataSource dataSource) {
super(new NutDao(dataSource));
}
示例11
@Autowired
public DictDao(@Autowired DataSource dataSource) {
super(new NutDao(dataSource));
}
示例12
@Autowired
public FileDao(@Autowired DataSource dataSource) {
super(new NutDao(dataSource));
}
示例13
@Autowired
public AuthorizationDao(@Autowired DataSource dataSource) {
super(new NutDao(dataSource));
}