|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jwarp.xml.DataElement
Extends the Element class from JDOM to add content from ResultSet and HttpRequest classes.
| Constructor Summary | |
DataElement(java.lang.String name)
Creates an empty DataElement with the given name |
|
| Method Summary | |
DataElement |
addContent(javax.servlet.http.HttpServletRequest request,
java.lang.String listExtension)
Adds the content (parameters) from the given HttpServletRequest to the Element. |
DataElement |
addContent(java.sql.ResultSet rs,
java.lang.String recordName)
Adds the content from the given ResultSet to the Element. |
DataElement |
addContent(java.sql.ResultSet rs,
java.lang.String recordName,
int maxRecords)
Adds the content from the given ResultSet to the Element. |
DataElement |
addContent(java.sql.ResultSet rs,
java.lang.String recordName,
java.lang.String idField)
Adds the content from the given ResultSet to the Element. |
DataElement |
addContent(java.sql.ResultSet rs,
java.lang.String recordName,
java.lang.String idField,
int maxRecords)
Adds the content from the given ResultSet to the Element. |
| Constructor Detail |
public DataElement(java.lang.String name)
| Method Detail |
public DataElement addContent(java.sql.ResultSet rs,
java.lang.String recordName)
throws java.sql.SQLException
rs - The ResultSet to addrecordName - The name of the record tag to delimit the records
public DataElement addContent(java.sql.ResultSet rs,
java.lang.String recordName,
int maxRecords)
throws java.sql.SQLException
rs - The ResultSet to addrecordName - The name of the record tag to delimit the recordsmaxRecords - Maxium number of records to add.
public DataElement addContent(java.sql.ResultSet rs,
java.lang.String recordName,
java.lang.String idField)
throws java.sql.SQLException
rs - The ResultSet to addrecordName - The name of the record tag to delimit the recordsidField - Name of the field to use as ID. The ID will be added as attribute to the record tag.
public DataElement addContent(java.sql.ResultSet rs,
java.lang.String recordName,
java.lang.String idField,
int maxRecords)
throws java.sql.SQLException
rs - The ResultSet to addrecordName - The name of the record tag to delimit the recordsidField - Name of the field to use as ID. The ID will be added as attribute to the record tag.maxRecords - Maxium number of records to add.
public DataElement addContent(javax.servlet.http.HttpServletRequest request,
java.lang.String listExtension)
request - The parameters of this HttpServletRequest will be added as content.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||