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 (contact@noelios.com)
- See Also:
- WebRowSet
Interface
Methods inherited from class org.restlet.resource.Variant |
getCharacterSet, getEncodings, getExpirationDate, getIdentifier, getLanguages, getMediaType, getModificationDate, getSize, getTag, setCharacterSet, setExpirationDate, setIdentifier, setIdentifier, setMediaType, setModificationDate, setSize, setTag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowSetRepresentation
public RowSetRepresentation(JdbcResult jdbcResult)
throws SQLException
- Constructor.
- Parameters:
jdbcResult
- The inner JdbcResult.
- Throws:
SQLException
RowSetRepresentation
public RowSetRepresentation(ResultSet resultSet)
throws SQLException
- Constructor.
- Parameters:
resultSet
- The result set to use to populate the Web row set.
- Throws:
SQLException
RowSetRepresentation
public RowSetRepresentation(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 WebRowSet getWebRowSet()
- Returns the inner WebRowSet instance.
- Returns:
- The inner WebRowSet instance.
write
public void write(OutputStream outputStream)
throws IOException
- Specified by:
write
in class OutputRepresentation
- Throws:
IOException
Copyright © 2005-2007 Noelios Consulting.