public class JRResultSetDataSource extends java.lang.Object implements JRDataSource
Constructor and Description |
---|
JRResultSetDataSource(java.sql.ResultSet rs) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
clobToString(java.sql.Clob clob) |
protected java.io.CharArrayReader |
getArrayReader(java.io.Reader reader,
long size) |
java.lang.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(java.io.InputStream is,
long size) |
protected byte[] |
readBytes(java.lang.Integer columnIndex) |
protected java.lang.Integer |
searchColumnByLabel(java.lang.String fieldName) |
protected java.lang.Integer |
searchColumnByName(java.lang.String fieldName) |
public boolean next() throws JRException
JRDataSource
next
in interface JRDataSource
JRException
- if any error occurs while trying to move to the next elementpublic java.lang.Object getFieldValue(JRField field) throws JRException
JRDataSource
getFieldValue
in interface JRDataSource
JRException
protected java.lang.Integer searchColumnByName(java.lang.String fieldName) throws java.sql.SQLException
java.sql.SQLException
protected java.lang.Integer searchColumnByLabel(java.lang.String fieldName) throws java.sql.SQLException
java.sql.SQLException
protected java.lang.String clobToString(java.sql.Clob clob) throws JRException
JRException
protected java.io.CharArrayReader getArrayReader(java.io.Reader reader, long size) throws java.io.IOException
java.io.IOException
protected byte[] readBytes(java.lang.Integer columnIndex) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
protected byte[] readBytes(java.io.InputStream is, long size) throws java.io.IOException
java.io.IOException
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com