|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdbreport.source.AbstractDataSet
jdbreport.source.JdbcDataSet
public class JdbcDataSet
Field Summary |
---|
Fields inherited from class jdbreport.source.AbstractDataSet |
---|
logger |
Constructor Summary | |
---|---|
JdbcDataSet()
|
|
JdbcDataSet(String id)
|
Method Summary | |
---|---|
void |
close()
|
Collection<String> |
getColumnNames()
Returns names' collection of columns or properties |
Object |
getCurrentObject()
Returns a current object, can be null |
String |
getId()
|
String |
getMasterId()
Returns id of the leading DataSet |
and.dbcomp.DataSetParams |
getParams()
Returns parameters |
String |
getQuery()
|
and.dbcomp.DbSource |
getSource()
|
Object |
getValue(int index)
|
Object |
getValue(String name)
Returns value from the current record (object) by the name |
boolean |
hasNext()
|
boolean |
isEof()
|
boolean |
next()
Moves the cursor on the next record (object) in the DataSet |
void |
open()
|
boolean |
reopen()
Reopens the DataSet when the MasterDataSet changes parameters |
void |
setId(String id)
|
void |
setMasterId(String masterId)
|
void |
setQuery(String query)
|
void |
setSource(and.dbcomp.DbSource source)
|
void |
setVars(Map<Object,Object> vars)
|
Methods inherited from class jdbreport.source.AbstractDataSet |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdbcDataSet()
public JdbcDataSet(String id)
Method Detail |
---|
public void setVars(Map<Object,Object> vars)
public boolean next() throws ReportException
ReportDataSet
next
in interface ReportDataSet
next
in class AbstractDataSet
ReportException
public boolean isEof()
public Object getValue(int index) throws ReportException
ReportException
public String getId()
getId
in interface ReportDataSet
getId
in class AbstractDataSet
public void setId(String id)
public void setQuery(String query)
query
- The query to set.public String getQuery()
public and.dbcomp.DbSource getSource()
public void setSource(and.dbcomp.DbSource source)
public void open() throws ReportException
ReportException
public boolean reopen() throws ReportException
ReportDataSet
ReportException
public void close()
public String getMasterId()
ReportDataSet
getMasterId
in interface ReportDataSet
getMasterId
in class AbstractDataSet
public void setMasterId(String masterId)
public Object getValue(String name) throws ReportException
ReportDataSet
name
- -
the column's name or the property's name
ReportException
public Collection<String> getColumnNames() throws ReportException
ReportDataSet
ReportException
public and.dbcomp.DataSetParams getParams() throws ReportException
ReportDataSet
getParams
in interface ReportDataSet
getParams
in class AbstractDataSet
ReportException
public Object getCurrentObject()
ReportDataSet
public boolean hasNext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |