com.noelios.restlet.ext.jdbc
Class RowSetRepresentation
java.lang.Object
org.restlet.resource.Variant
org.restlet.resource.Representation
org.restlet.resource.StreamRepresentation
org.restlet.resource.OutputRepresentation
com.noelios.restlet.ext.jdbc.RowSetRepresentation
public class RowSetRepresentation
- extends OutputRepresentation
XML Representation of a ResultSet instance wrapped either in a JdbcResult
instance or in a WebRowSet. Leverage the WebRowSet API to create the Response
entity.
Give access to the JdbcResult instance and to the WebRowSet for retrieval of
the connected ResultSet in the same JVM (for advanced use cases).
- Author:
- Thierry Boileau, Jerome Louvel
- See Also:
- WebRowSet Interface
Method Summary |
JdbcResult |
getJdbcResult()
Returns the inner JdbcResult instance or null. |
javax.sql.rowset.WebRowSet |
getWebRowSet()
Returns the inner WebRowSet instance. |
void |
write(java.io.OutputStream outputStream)
|
Methods inherited from class org.restlet.resource.Representation |
checkDigest, checkDigest, computeDigest, createEmpty, exhaust, getAvailableSize, getDigest, getDownloadName, getExpirationDate, getModificationDate, getRange, getSize, getTag, getText, isAvailable, isDownloadable, isTransient, setAvailable, setDigest, setDownloadable, setDownloadName, setExpirationDate, setModificationDate, setRange, setSize, setTag, setTransient |
Methods inherited from class org.restlet.resource.Variant |
getCharacterSet, getEncodings, getIdentifier, getLanguages, getMediaType, setCharacterSet, setEncodings, setIdentifier, setIdentifier, setLanguages, setMediaType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowSetRepresentation
public RowSetRepresentation(JdbcResult jdbcResult)
throws java.sql.SQLException
- Constructor.
- Parameters:
jdbcResult
- The inner JdbcResult.
- Throws:
java.sql.SQLException
RowSetRepresentation
public RowSetRepresentation(java.sql.ResultSet resultSet)
throws java.sql.SQLException
- Constructor.
- Parameters:
resultSet
- The result set to use to populate the Web row set.
- Throws:
java.sql.SQLException
RowSetRepresentation
public RowSetRepresentation(javax.sql.rowset.WebRowSet webRowSet)
- Constructor.
- Parameters:
webRowSet
- The inner WebRowSet.
getJdbcResult
public JdbcResult getJdbcResult()
- Returns the inner JdbcResult instance or null.
- Returns:
- The inner JdbcResult instance or null.
getWebRowSet
public javax.sql.rowset.WebRowSet getWebRowSet()
- Returns the inner WebRowSet instance.
- Returns:
- The inner WebRowSet instance.
write
public void write(java.io.OutputStream outputStream)
throws java.io.IOException
- Specified by:
write
in class Representation
- Throws:
java.io.IOException
Copyright © 2005-2008 Noelios Technologies.