|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.pgsql.common.BaseDao
org.openstreetmap.osmosis.core.pgsql.v0_6.impl.UserDao
public class UserDao
Performs all user-specific db operations.
| Constructor Summary | |
|---|---|
UserDao(DatabaseContext dbCtx,
ActionDao actionDao)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addUser(OsmUser user)
Adds the specified user to the database. |
OsmUser |
getUser(long userId)
Loads the specified way from the database. |
void |
updateUser(OsmUser user)
Updates the specified user record in the database. |
| Methods inherited from class org.openstreetmap.osmosis.core.pgsql.common.BaseDao |
|---|
getDatabaseContext, prepareStatement, release |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserDao(DatabaseContext dbCtx,
ActionDao actionDao)
dbCtx - The database context to use for accessing the database.actionDao - The dao to use for adding action records to the database.| Method Detail |
|---|
public OsmUser getUser(long userId)
userId - The unique identifier of the user.
public void addUser(OsmUser user)
user - The user to add.public void updateUser(OsmUser user)
user - The user to update.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||