|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.JRResultSetDataSource
public class JRResultSetDataSource
An implementation of a data source that uses a supplied ResultSet.
| Constructor Summary | |
|---|---|
JRResultSetDataSource(JasperReportsContext jasperReportsContext,
ResultSet resultSet)
|
|
JRResultSetDataSource(ResultSet resultSet)
|
|
| Method Summary | |
|---|---|
protected String |
clobToString(Clob clob)
|
protected Calendar |
createFieldCalendar(JRField field)
|
protected CharArrayReader |
getArrayReader(Reader reader,
long size)
|
protected Calendar |
getFieldCalendar(JRField field)
|
Object |
getFieldValue(JRField field)
Gets the field value for the current position. |
boolean |
next()
Tries to position the cursor on the next element in the data source. |
protected byte[] |
readBytes(InputStream is,
long size)
|
protected byte[] |
readBytes(Integer columnIndex)
|
protected Object |
readDate(Integer columnIndex,
JRField field)
|
protected Object |
readTime(Integer columnIndex,
JRField field)
|
protected Object |
readTimestamp(Integer columnIndex,
JRField field)
|
protected Integer |
searchColumnByLabel(String fieldName)
|
protected Integer |
searchColumnByName(String fieldName)
|
void |
setTimeZone(TimeZone timeZone,
boolean override)
Sets the default time zone to be used for retrieving date/time values from the result set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JRResultSetDataSource(JasperReportsContext jasperReportsContext,
ResultSet resultSet)
public JRResultSetDataSource(ResultSet resultSet)
JRResultSetDataSource(JasperReportsContext, ResultSet)| Method Detail |
|---|
public boolean next()
throws JRException
JRDataSource
next in interface JRDataSourceJRException - if any error occurs while trying to move to the next element
public Object getFieldValue(JRField field)
throws JRException
JRDataSource
getFieldValue in interface JRDataSourceJRException
protected Object readDate(Integer columnIndex,
JRField field)
throws SQLException
SQLException
protected Object readTimestamp(Integer columnIndex,
JRField field)
throws SQLException
SQLException
protected Object readTime(Integer columnIndex,
JRField field)
throws SQLException
SQLException
protected Integer searchColumnByName(String fieldName)
throws SQLException
SQLException
protected Integer searchColumnByLabel(String fieldName)
throws SQLException
SQLException
protected String clobToString(Clob clob)
throws JRException
JRException
protected CharArrayReader getArrayReader(Reader reader,
long size)
throws IOException
IOException
protected byte[] readBytes(Integer columnIndex)
throws SQLException,
IOException
SQLException
IOException
protected byte[] readBytes(InputStream is,
long size)
throws IOException
IOException
public void setTimeZone(TimeZone timeZone,
boolean override)
timeZone - the default time zoneoverride - whether the default time zone overrides time zones specified
as field-level propertiesJRJdbcQueryExecuterFactory.PROPERTY_TIME_ZONEprotected Calendar getFieldCalendar(JRField field)
protected Calendar createFieldCalendar(JRField field)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||