2018-09-15 22:59:08 +02:00
|
|
|
package de.vanitasvitae.fasel.db.dao.impl;
|
|
|
|
|
|
|
|
import java.sql.SQLException;
|
2019-12-12 14:53:17 +01:00
|
|
|
import java.util.List;
|
2018-09-15 22:59:08 +02:00
|
|
|
|
|
|
|
import com.j256.ormlite.dao.BaseDaoImpl;
|
|
|
|
import com.j256.ormlite.support.ConnectionSource;
|
|
|
|
import de.vanitasvitae.fasel.db.dao.AccountDao;
|
|
|
|
import de.vanitasvitae.fasel.db.entity.Account;
|
|
|
|
|
2019-12-12 14:53:17 +01:00
|
|
|
public class AccountDaoImpl extends BaseDaoImpl<Account, Long> implements AccountDao {
|
2018-09-15 22:59:08 +02:00
|
|
|
|
2018-09-16 02:24:57 +02:00
|
|
|
public AccountDaoImpl(ConnectionSource connectionSource)
|
2018-09-15 22:59:08 +02:00
|
|
|
throws SQLException {
|
|
|
|
super(connectionSource, Account.class);
|
|
|
|
}
|
|
|
|
|
2019-12-12 14:53:17 +01:00
|
|
|
public List<Account> getAccounts() throws SQLException {
|
|
|
|
return queryForAll();
|
|
|
|
}
|
2018-09-15 22:59:08 +02:00
|
|
|
}
|