|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbforms.event.datalist.dao.AbstractDataSource org.dbforms.event.datalist.dao.DataSourceXML
public class DataSourceXML
Special implementation of DataSource. This class deals with xml data
Constructor Summary | |
---|---|
DataSourceXML()
|
Method Summary | |
---|---|
protected void |
close()
should close all open datasets |
void |
doUpdate(Connection con,
FieldValues fieldValues,
String keyValuesStr)
performs an update into the DataSource |
protected int |
findStartRow(String startRow)
maps the startRow to the internal index |
protected Object[] |
getRow(int currRow)
should retrieve the row at an special index as an Object[] |
protected boolean |
hasMore(int i)
return true if there are more records to fetch then the given record number |
protected void |
open()
Will be called to open all datasets |
protected Document |
read(String url)
gets the document from the remote system. |
void |
setSelect(FieldValue[] filterConstraint,
FieldValue[] orderConstraint,
String sqlFilter,
FieldValue[] sqlFilterParams)
Set the filterConstraint and orderConstraint used to build the SQL Select condition. |
protected int |
size()
Must return the size of the whole resultset with all data fetch |
protected void |
write(String url,
Element root)
saves the document to the remote system. |
Methods inherited from class org.dbforms.event.datalist.dao.AbstractDataSource |
---|
deleteBlobFilesFromDisk, doDelete, doInsert, doUpdate, getCurrent, getFirst, getLast, getNext, getPrev, getResultSetVector, getTable, saveBlobFilesToDisk, setConnection, setSelect, setTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataSourceXML()
Method Detail |
---|
public void setSelect(FieldValue[] filterConstraint, FieldValue[] orderConstraint, String sqlFilter, FieldValue[] sqlFilterParams)
setSelect
in class AbstractDataSource
filterConstraint
- FieldValue array used to build a cumulation of
rules for filtering fields.orderConstraint
- FieldValue array used to build a cumulation of
rules for ordering (sorting) and restricting fields.sqlFilter
- sql condition to add to where clausesqlFilterParams
- list of FieldValues to fill the sqlFilter withpublic void doUpdate(Connection con, FieldValues fieldValues, String keyValuesStr) throws SQLException
con
- DOCUMENT ME!fieldValues
- FieldValues to updatekeyValuesStr
- keyValueStr to the row to updateSQLException
- if any error occursprotected final Object[] getRow(int currRow) throws SQLException
getRow
in class AbstractDataSource
currRow
- index of row to fetch
SQLException
protected final void close()
close
in class AbstractDataSource
protected final int findStartRow(String startRow) throws SQLException
findStartRow
in class AbstractDataSource
startRow
- keyValueStr to the rowSQLException
protected final void open() throws SQLException
open
in class AbstractDataSource
SQLException
protected final int size() throws SQLException
size
in class AbstractDataSource
SQLException
protected boolean hasMore(int i) throws SQLException
hasMore
in class AbstractDataSource
i
- index of last fetched row.
SQLException
protected Document read(String url) throws Exception
url
- the uri to query
Exception
- Exception during processing IOprotected void write(String url, Element root) throws Exception
url
- DOCUMENT ME!root
- DOCUMENT ME!
Exception
- Exception during processing IO
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |