com.xmlserv.app.shared
Class DBUser

java.lang.Object
  |
  +--com.xmlserv.app.shared.DBUser

public class DBUser
extends java.lang.Object

Simple DB abstraction class encapsulating a user. This cannot be instantiated directly, but only via the correpsonding DBFactory implementation.


Constructor Summary
protected DBUser()
           
protected DBUser(java.sql.Connection con, int id)
           
protected DBUser(java.sql.Connection con, java.lang.String username)
           
 
Method Summary
 java.lang.String getEmail()
           
 int getId()
           
 java.lang.String getNachname()
           
 java.lang.String getPassword()
           
 boolean getPublicemail()
           
 java.lang.String getTitel()
           
 java.lang.String getUid()
           
 java.lang.String getVorname()
           
static void main(java.lang.String[] args)
          Load and dump the user given as an argument.
 void save(java.sql.Connection con)
           
 void setEmail(java.lang.String email)
           
 void setNachname(java.lang.String nachname)
           
 void setPassword(java.lang.String password)
           
 void setPublicemail(boolean publicemail)
           
 void setStoreClearPW(boolean storeClearPW)
           
 void setTitel(java.lang.String titel)
           
 void setUid(java.lang.String uid)
           
 void setVorname(java.lang.String vorname)
           
 java.lang.String toString()
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBUser

protected DBUser()

DBUser

protected DBUser(java.sql.Connection con,
                 int id)
          throws java.sql.SQLException

DBUser

protected DBUser(java.sql.Connection con,
                 java.lang.String username)
          throws java.sql.SQLException
Method Detail

save

public void save(java.sql.Connection con)
          throws java.sql.SQLException,
                 XMLServException

validate

public void validate()
              throws XMLServException

getId

public int getId()

getUid

public java.lang.String getUid()

setUid

public void setUid(java.lang.String uid)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getVorname

public java.lang.String getVorname()

setVorname

public void setVorname(java.lang.String vorname)

getNachname

public java.lang.String getNachname()

setNachname

public void setNachname(java.lang.String nachname)

getTitel

public java.lang.String getTitel()

setTitel

public void setTitel(java.lang.String titel)

getEmail

public java.lang.String getEmail()

setEmail

public void setEmail(java.lang.String email)

getPublicemail

public boolean getPublicemail()

setPublicemail

public void setPublicemail(boolean publicemail)

setStoreClearPW

public void setStoreClearPW(boolean storeClearPW)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)
Load and dump the user given as an argument.