public class RoleDAO extends Object
| Constructor and Description |
|---|
RoleDAO() |
| Modifier and Type | Method and Description |
|---|---|
long |
countAll() |
boolean |
delete(String role) |
long |
executeCount(String sql) |
long |
executeCount(String sql,
Statement.Initializer init) |
protected List<Role> |
executeQuery(String sql) |
protected List<Role> |
executeQuery(String sql,
Statement.Initializer init) |
protected int |
executeUpdate(String sql) |
protected int |
executeUpdate(String sql,
Statement.Initializer init) |
List<Role> |
fetchAll() |
Role |
fetchById(int id) |
Role |
fetchByRole(String role) |
protected Role |
fromResultSet(ResultSet set) |
boolean |
insert(Role role) |
boolean |
update(Role role) |
public List<Role> fetchAll() throws SQLException
SQLExceptionpublic Role fetchById(int id) throws SQLException
SQLExceptionpublic Role fetchByRole(String role) throws SQLException
SQLExceptionpublic long countAll()
throws SQLException
SQLExceptionpublic boolean insert(Role role) throws SQLException
SQLExceptionpublic boolean delete(String role) throws SQLException
SQLExceptionpublic boolean update(Role role) throws SQLException
SQLExceptionprotected Role fromResultSet(ResultSet set) throws SQLException
SQLExceptionprotected int executeUpdate(String sql, Statement.Initializer init) throws SQLException
SQLExceptionprotected List<Role> executeQuery(String sql, Statement.Initializer init) throws SQLException
SQLExceptionprotected int executeUpdate(String sql) throws SQLException
SQLExceptionprotected List<Role> executeQuery(String sql) throws SQLException
SQLExceptionpublic long executeCount(String sql) throws SQLException
SQLExceptionpublic long executeCount(String sql, Statement.Initializer init) throws SQLException
SQLExceptionCopyright © 2026. All rights reserved.