@Component(value="sqlMigrationUserDAO") public class SQLMigrationUserDAO extends Object
| Constructor and Description |
|---|
SQLMigrationUserDAO() |
| Modifier and Type | Method and Description |
|---|---|
long |
countAll() |
boolean |
delete(String username) |
long |
executeCount(String sql) |
long |
executeCount(String sql,
Statement.Initializer init) |
protected List<MigrationUser> |
executeQuery(String sql) |
protected List<MigrationUser> |
executeQuery(String sql,
Statement.Initializer init) |
protected int |
executeUpdate(String sql) |
protected int |
executeUpdate(String sql,
Statement.Initializer init) |
List<MigrationUser> |
fetchAll() |
MigrationUser |
fetchByEmail(String email) |
MigrationUser |
fetchByFullname(String fullname) |
MigrationUser |
fetchById(int id) |
List<MigrationUser> |
fetchByRoleId(String roleId) |
MigrationUser |
fetchByUsername(String username) |
protected MigrationUser |
fromResultSet(ResultSet set) |
DataSourceConnector |
getDataSourceConnector() |
boolean |
insert(MigrationUser mUser) |
void |
setDataSourceConnector(DataSourceConnector dataSourceConnector) |
boolean |
update(MigrationUser mUser) |
public List<MigrationUser> fetchAll() throws SQLException
SQLExceptionpublic MigrationUser fetchById(int id) throws SQLException
SQLExceptionpublic MigrationUser fetchByUsername(String username) throws SQLException
SQLExceptionpublic MigrationUser fetchByFullname(String fullname) throws SQLException
SQLExceptionpublic MigrationUser fetchByEmail(String email) throws SQLException
SQLExceptionpublic List<MigrationUser> fetchByRoleId(String roleId) throws SQLException
SQLExceptionpublic long countAll()
throws SQLException
SQLExceptionpublic boolean insert(MigrationUser mUser) throws SQLException
SQLExceptionpublic boolean delete(String username) throws SQLException
SQLExceptionpublic boolean update(MigrationUser mUser) throws SQLException
SQLExceptionprotected MigrationUser fromResultSet(ResultSet set) throws SQLException
SQLExceptionprotected int executeUpdate(String sql, Statement.Initializer init) throws SQLException
SQLExceptionprotected List<MigrationUser> executeQuery(String sql, Statement.Initializer init) throws SQLException
SQLExceptionprotected int executeUpdate(String sql) throws SQLException
SQLExceptionprotected List<MigrationUser> executeQuery(String sql) throws SQLException
SQLExceptionpublic long executeCount(String sql) throws SQLException
SQLExceptionpublic long executeCount(String sql, Statement.Initializer init) throws SQLException
SQLExceptionpublic DataSourceConnector getDataSourceConnector()
public void setDataSourceConnector(DataSourceConnector dataSourceConnector)
Copyright © 2026. All rights reserved.