|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bowstreet.builders.webapp.methods.XmlDataRetriever
public class XmlDataRetriever
Data retriever implementation which accesses XML data.
Field Summary | |
---|---|
static java.lang.String |
DB_SVC_PATH
|
Fields inherited from interface com.bowstreet.builders.webapp.methods.SortableData |
---|
CASE_INSENSITIVE, DATES, DEFAULT_TYPE, NUMBERS |
Constructor Summary | |
---|---|
XmlDataRetriever()
Default constructor - leaves data uninitialized. |
|
XmlDataRetriever(IXml data)
Construct from given data. |
|
XmlDataRetriever(IXml data,
boolean clone)
Construct from given data, optionally cloning the data. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Override of Object method - XmlDataRetrievers are equal if their data is. |
IXml |
getData(int startRow)
Return rows starting at specified position. |
java.lang.String |
getDateFormatPattern()
Return the current date format pattern. |
int |
getFetchSize()
Indicate preferred chunk size for data retrieval. |
int |
getRowCount()
Return total number of rows in this data set. |
static IXml |
getRowSubset(IXml data,
int startRow,
int rowCount)
Utility method to get a group of rows from within an IXml table. |
static IXml |
getRowSubset(IXml data,
int startRow,
int rowCount,
java.lang.String filter)
Utility method to get a group of rows from within an IXml table. |
void |
setData(IXml data)
Set data to use. |
void |
setDateFormatPattern(java.lang.String dateFormatPattern)
Set the format pattern to use when parsing dates. |
void |
setFetchSize(int fetchSize)
Set fetch size (not part of retriever interface) |
void |
setFilter(java.lang.String filter,
int skipCount)
|
boolean |
sort(java.lang.String sortBy,
java.lang.String sortType,
boolean ascending)
Sort data according to the text of the given column. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DB_SVC_PATH
Constructor Detail |
---|
public XmlDataRetriever()
public XmlDataRetriever(IXml data)
public XmlDataRetriever(IXml data, boolean clone)
data
- clone
- Method Detail |
---|
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public IXml getData(int startRow)
getData
in interface DataRetriever
public java.lang.String getDateFormatPattern()
getDateFormatPattern
in interface com.bowstreet.builders.webapp.methods.DateFormatClient
public int getFetchSize()
getFetchSize
in interface DataRetriever
public int getRowCount()
getRowCount
in interface DataRetriever
public static IXml getRowSubset(IXml data, int startRow, int rowCount)
public static IXml getRowSubset(IXml data, int startRow, int rowCount, java.lang.String filter)
filter
- TODOpublic void setData(IXml data)
public void setDateFormatPattern(java.lang.String dateFormatPattern)
setDateFormatPattern
in interface com.bowstreet.builders.webapp.methods.DateFormatClient
dateFormatPattern
- pattern string as used by SimpleDateFormat.public void setFetchSize(int fetchSize)
public void setFilter(java.lang.String filter, int skipCount)
public boolean sort(java.lang.String sortBy, java.lang.String sortType, boolean ascending)
sort
in interface SortableData
sortBy
- name of the column whose data controls sort ordersortType
- how to interpret and compare the data - NUMBERS, DATES, CASE_INSENSITIVE or DEFAULT_TYPEascending
- true if data should be sorted in ascending order
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |