|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.representation.Variant
org.restlet.representation.RepresentationInfo
org.restlet.representation.Representation
org.restlet.representation.CharacterRepresentation
org.restlet.representation.WriterRepresentation
org.restlet.ext.jdbc.RowSetRepresentation
public class RowSetRepresentation
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).
WebRowSet
Field Summary |
---|
Fields inherited from class org.restlet.representation.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
RowSetRepresentation(JdbcResult jdbcResult)
Constructor. |
|
RowSetRepresentation(JdbcResult jdbcResult,
int start,
int limit)
Constructor with paging. |
|
RowSetRepresentation(ResultSet resultSet)
Constructor. |
|
RowSetRepresentation(ResultSet resultSet,
int start,
int limit)
Constructor with paging. |
|
RowSetRepresentation(WebRowSet webRowSet)
Constructor. |
Method Summary | |
---|---|
JdbcResult |
getJdbcResult()
Returns the inner JdbcResult instance or null. |
WebRowSet |
getWebRowSet()
Returns the inner WebRowSet instance. |
void |
write(Writer writer)
|
Methods inherited from class org.restlet.representation.WriterRepresentation |
---|
getReader |
Methods inherited from class org.restlet.representation.CharacterRepresentation |
---|
getChannel, getStream, write, write |
Methods inherited from class org.restlet.representation.Representation |
---|
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, release, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient |
Methods inherited from class org.restlet.representation.RepresentationInfo |
---|
getModificationDate, getTag, setModificationDate, setTag |
Methods inherited from class org.restlet.representation.Variant |
---|
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RowSetRepresentation(JdbcResult jdbcResult) throws SQLException
jdbcResult
- The inner JdbcResult.
SQLException
public RowSetRepresentation(JdbcResult jdbcResult, int start, int limit) throws SQLException
jdbcResult
- The inner JdbcResult.start
- The start index of the page or 0 for the first result.limit
- The page size or -1 if no limit is set.
SQLException
public RowSetRepresentation(ResultSet resultSet) throws SQLException
resultSet
- The result set to use to populate the Web row set.
SQLException
public RowSetRepresentation(ResultSet resultSet, int start, int limit) throws SQLException
resultSet
- The result set to use to populate the Web row set.start
- The start index of the page or 1 for the first result.limit
- The page size or -1 if no limit is set.
SQLException
public RowSetRepresentation(WebRowSet webRowSet)
webRowSet
- The inner WebRowSet.Method Detail |
---|
public JdbcResult getJdbcResult()
public WebRowSet getWebRowSet()
public void write(Writer writer) throws IOException
write
in class Representation
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |