public class UsersDaoJdbc extends java.lang.Object implements UsersDao
User
s. User
can be extended without
altering the table.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
UsersDaoJdbc() |
Modifier and Type | Method and Description |
---|---|
User |
getUser(int userid)
Fetch the
User with this User ID. |
void |
setDataSource(javax.sql.DataSource ds)
Set the reference to the JDBC datasource.
|
void |
storeUser(User user)
Write this
User to the database. |
public void setDataSource(javax.sql.DataSource ds)
ds
- The datasource as configured by Spring.public User getUser(int userid) throws DataAccessException
UsersDao
User
with this User ID.