de.nidanet.dev.google.persistent_users
Class User

java.lang.Object
  extended by de.nidanet.dev.google.persistent_users.User

public class User
extends Object

Represents a light-way, persistent user class.

Since:
2009-06-12
Version:
1.0
Author:
Nico Danneberg (mail@danneberg.de)

Field Summary
private  Long id
          The user's internal id.
private  String mail
          The user's mail.
private  String name
          The user's name.
private  Date regDate
          The date when this user was created.
 
Constructor Summary
User()
          The standard constructor creates a user without any name and mail.
User(String name, String mail)
          Constructs a user with the given name and mail.
 
Method Summary
 Long getId()
           
 String getMail()
           
 String getName()
           
 Date getRegDate()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private Long id
The user's internal id. It's the primary key at persistence level and therefore automatically set.


name

private String name
The user's name.


mail

private String mail
The user's mail.


regDate

private Date regDate
The date when this user was created.

Constructor Detail

User

public User()
The standard constructor creates a user without any name and mail.


User

public User(String name,
            String mail)
Constructs a user with the given name and mail.

Parameters:
name - user's name
mail - user's mail
Method Detail

getId

public Long getId()
Returns:
the user's id

getName

public String getName()
Returns:
the user's name

getMail

public String getMail()
Returns:
the user's mail

getRegDate

public Date getRegDate()
Returns:
the date when user was created

toString

public String toString()
Overrides:
toString in class Object