|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.xmlserv.app.links.Link
DB abstraction for Link data.
Constructor Summary | |
Link(java.sql.Connection con,
int id)
Open an existing Link. |
|
Link(int rolegroup)
Create new Link for the given rolegroup |
Method Summary | |
void |
delete(java.sql.Connection con)
|
java.lang.String |
getComment()
|
int |
getContentgroup()
|
java.lang.String |
getDescription()
|
int |
getId()
|
int |
getRolegroup()
|
java.lang.String |
getText()
|
java.lang.String |
getUrl()
|
boolean |
isExternal()
|
static org.jdom.Element |
list(java.sql.Connection con,
int rolegroup,
int contentgroup)
List all links defined for the given rolegroup and contentgroup. |
static org.jdom.Element |
list(java.sql.Connection con,
int rolegroup,
int contentgroup,
boolean htmlFormat)
|
static org.jdom.Element |
listForArticle(java.sql.Connection con,
int rolegroup,
int article,
boolean htmlFormat)
|
static org.jdom.Element |
listForArticles(java.sql.Connection con,
int rolegroup,
int article)
List all links defined for the given rolegroup and article. |
void |
save(java.sql.Connection con)
Save to DB. |
void |
setComment(java.lang.String comment)
|
void |
setContentgroup(int contentgroup)
|
void |
setDescription(java.lang.String description)
|
void |
setExternal(boolean external)
|
void |
setText(java.lang.String text)
|
void |
setUrl(java.lang.String url)
|
org.jdom.Element |
toElement()
Convert to an Element. |
org.jdom.Element |
toElement(boolean htmlFormat)
Convert to an Element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Link(int rolegroup)
public Link(java.sql.Connection con, int id) throws XMLServException
Method Detail |
public void save(java.sql.Connection con) throws XMLServException
public void delete(java.sql.Connection con) throws XMLServException
public org.jdom.Element toElement()
public org.jdom.Element toElement(boolean htmlFormat)
public static org.jdom.Element list(java.sql.Connection con, int rolegroup, int contentgroup) throws XMLServException
public static org.jdom.Element list(java.sql.Connection con, int rolegroup, int contentgroup, boolean htmlFormat) throws XMLServException
public static org.jdom.Element listForArticles(java.sql.Connection con, int rolegroup, int article) throws XMLServException
public static org.jdom.Element listForArticle(java.sql.Connection con, int rolegroup, int article, boolean htmlFormat) throws XMLServException
public int getId()
public java.lang.String getComment()
public void setComment(java.lang.String comment)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public boolean isExternal()
public void setExternal(boolean external)
public int getRolegroup()
public int getContentgroup()
public void setContentgroup(int contentgroup)
public java.lang.String getText()
public void setText(java.lang.String text)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |