|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.xmlserv.app.phonebook.PhoneBook.Entry
Inner class for hanlding phonebook entries. To keep the implementation simple, this is oneway-only: Either an entry is loaded from the DB or a new instance is created and saved to the DB.
Constructor Summary | |
PhoneBook.Entry(java.sql.Connection con,
int id)
Load by ID. |
|
PhoneBook.Entry(java.sql.Connection con,
int userid,
int id)
Load entry identified by ID. |
|
PhoneBook.Entry(java.sql.Connection con,
int userid,
java.lang.String anrede,
java.lang.String nachname,
java.lang.String vorname,
java.lang.String firma,
java.lang.String email,
java.lang.String telephon,
java.lang.String fax,
java.lang.String isdn,
java.lang.String strasse,
java.lang.String plz,
java.lang.String ort,
java.lang.String land)
Create new Entry, saving to DB. |
|
PhoneBook.Entry(int userid)
Create empty entry. |
|
PhoneBook.Entry(int userid,
java.lang.String anrede,
java.lang.String nachname,
java.lang.String vorname,
java.lang.String firma,
java.lang.String email,
java.lang.String telephon,
java.lang.String fax,
java.lang.String isdn,
java.lang.String strasse,
java.lang.String plz,
java.lang.String ort,
java.lang.String land)
Create new entry without saving date to DB. |
Method Summary | |
void |
delete(java.sql.Connection con)
|
java.lang.String |
getAnrede()
|
int |
getCategory()
|
java.lang.String |
getEmail()
|
java.lang.String |
getFax()
|
java.lang.String |
getFirma()
|
int |
getId()
|
java.lang.String |
getIsdn()
|
java.lang.String |
getLand()
|
java.lang.String |
getNachname()
|
java.lang.String |
getName()
|
java.lang.String |
getOrt()
|
java.lang.String |
getPlz()
|
java.lang.String |
getStrasse()
|
java.lang.String |
getTelephon()
|
int |
getUserid()
|
boolean |
isIspublic()
|
void |
load(java.sql.Connection con)
Load data from DB. id must be set before calling this method. |
void |
save(java.sql.Connection con)
Save data to DB. |
void |
setAnrede(java.lang.String anrede)
|
void |
setCategory(int category)
|
void |
setEmail(java.lang.String email)
|
void |
setFax(java.lang.String fax)
|
void |
setFirma(java.lang.String firma)
|
void |
setIsdn(java.lang.String isdn)
|
void |
setIspublic(boolean ispublic)
|
void |
setLand(java.lang.String land)
|
void |
setNachname(java.lang.String nachname)
|
void |
setOrt(java.lang.String ort)
|
void |
setPlz(java.lang.String plz)
|
void |
setStrasse(java.lang.String strasse)
|
void |
setTelephon(java.lang.String telephon)
|
void |
setVorname(java.lang.String vorname)
|
org.jdom.Element |
toElement(java.sql.Connection con)
|
void |
use(java.sql.Connection con)
Update lastuse and usecount fields. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PhoneBook.Entry(int userid)
public PhoneBook.Entry(java.sql.Connection con, int id) throws XMLServException
public PhoneBook.Entry(java.sql.Connection con, int userid, int id) throws XMLServException
public PhoneBook.Entry(int userid, java.lang.String anrede, java.lang.String nachname, java.lang.String vorname, java.lang.String firma, java.lang.String email, java.lang.String telephon, java.lang.String fax, java.lang.String isdn, java.lang.String strasse, java.lang.String plz, java.lang.String ort, java.lang.String land) throws XMLServException
public PhoneBook.Entry(java.sql.Connection con, int userid, java.lang.String anrede, java.lang.String nachname, java.lang.String vorname, java.lang.String firma, java.lang.String email, java.lang.String telephon, java.lang.String fax, java.lang.String isdn, java.lang.String strasse, java.lang.String plz, java.lang.String ort, java.lang.String land) throws XMLServException
Method Detail |
public void use(java.sql.Connection con) throws XMLServException
public org.jdom.Element toElement(java.sql.Connection con) throws XMLServException
public void load(java.sql.Connection con) throws XMLServException
public void save(java.sql.Connection con) throws XMLServException
public void delete(java.sql.Connection con) throws XMLServException
public int getId()
public int getUserid()
public int getCategory()
public void setCategory(int category)
public java.lang.String getAnrede()
public void setAnrede(java.lang.String anrede)
public java.lang.String getName()
public java.lang.String getNachname()
public void setNachname(java.lang.String nachname)
public void setVorname(java.lang.String vorname)
public java.lang.String getFirma()
public void setFirma(java.lang.String firma)
public java.lang.String getEmail()
public void setEmail(java.lang.String email)
public java.lang.String getTelephon()
public void setTelephon(java.lang.String telephon)
public java.lang.String getFax()
public void setFax(java.lang.String fax)
public java.lang.String getIsdn()
public void setIsdn(java.lang.String isdn)
public java.lang.String getStrasse()
public void setStrasse(java.lang.String strasse)
public java.lang.String getPlz()
public void setPlz(java.lang.String plz)
public java.lang.String getOrt()
public void setOrt(java.lang.String ort)
public java.lang.String getLand()
public void setLand(java.lang.String land)
public boolean isIspublic()
public void setIspublic(boolean ispublic)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |