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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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.