public class CDEResult extends Result
Result
that wraps a ResultSet
and returns rows as Strings,
applying MappingFuncs
if a Mapping
is provided, and appending
constant fields if a List
of CDEValue
s is provided.Constructor and Description |
---|
CDEResult(ResultSet rs,
Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
InputStream |
getInputStream()
Get an input stream version of the result's value.
|
String |
getNextRowAsString() |
long |
getSize()
Get the size of this product.
|
void |
setConstValues(List<CDEValue> constValues) |
void |
setMapping(Mapping mapping) |
void |
setOrderedFields(List<QueryElement> orderedFields) |
clone, equals, getHeaders, getID, getMimeType, getProfileID, getResourceID, getURIID, getValidity, getValue, hashCode, isClassified, setClassified, setID, setMimeType, setProfileID, setResourceID, setRetriever, setValidity, setValue, toString, toXML
public CDEResult(ResultSet rs, Connection con)
public void setOrderedFields(List<QueryElement> orderedFields)
public void setMapping(Mapping mapping)
public InputStream getInputStream() throws IOException
Result
getInputStream
in class Result
InputStream
value.IOException
- if an error occurs.public long getSize()
Result
public void close() throws SQLException
SQLException
public String getNextRowAsString() throws SQLException
SQLException
Copyright © 1999-2015 Apache OODT. All Rights Reserved.