|
||||||||||
| 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 ReportDataSetnext in class AbstractDataSetReportExceptionpublic boolean isEof()
public Object getValue(int index)
throws ReportException
ReportExceptionpublic String getId()
getId in interface ReportDataSetgetId in class AbstractDataSetpublic 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
ReportExceptionpublic void close()
public String getMasterId()
ReportDataSet
getMasterId in interface ReportDataSetgetMasterId in class AbstractDataSetpublic 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 ReportDataSetgetParams in class AbstractDataSetReportExceptionpublic Object getCurrentObject()
ReportDataSet
public boolean hasNext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||