Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## hu.diplomamunka.persistence
Class UserHandler

    java.lang.Object
      hu.diplomamunka.persistence.Handler
          hu.diplomamunka.persistence.UserHandler

    public class UserHandler

extends Handler

Field Summary

Fields inherited from class hu.diplomamunka.persistence.Handler
`session`

Constructor Summary
`UserHandler()`

Method Summary
`void` | `deleteUser(User u)`
`java.util.List` | `getAllUsers()`
`User` | `getOneUser(java.lang.Integer userId)`
`User` | `insertUser(User u)`
`User` | `updateUser(User u)`

Methods inherited from class hu.diplomamunka.persistence.Handler
`closeSession, getSession, getTransaction`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### UserHandler

    public UserHandler()

Method Detail

### insertUser

    public User insertUser(User u)

  Parameters:
    `u` - User to be inserted into database
  Returns:
    u the newly inserted User

### updateUser

    public User updateUser(User u)

  Parameters:
    `u` - the User to update
  Returns:
    u the updated User

### deleteUser

    public void deleteUser(User u)

  Parameters:
    `u` - the User to delete

### getAllUsers

    public java.util.List getAllUsers()

  Returns:
    List containing all existing User entities

### getOneUser

    public User getOneUser(java.lang.Integer userId)

  Parameters:
    `userId` - the Id of the Requested User
  Returns:
    u the requested User

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD