|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.template.jdbc.ResultSetGenerator
public class ResultSetGenerator
A Drools template compiler which takes a ResultSet and compiles it into a template using DefaultTemplateContainer.
To use simply you need a JDBC ResultSet - with the field names mapping to the field names used in the template !
| Constructor Summary | |
|---|---|
ResultSetGenerator()
|
|
| Method Summary | |
|---|---|
protected void |
closeStream(InputStream stream)
|
String |
compile(ResultSet rs,
InputStream templateStream)
Generates DRL from a data provider for the spreadsheet data and templates. |
String |
compile(ResultSet rs,
String template)
Generates DRL from a data provider for the spreadsheet data and templates. |
String |
compile(ResultSet rs,
TemplateDataListener listener)
Generates DRL from a data provider for the spreadsheet data and templates. |
void |
newCell(List<DataListener> listeners,
int row,
int column,
String value,
int mergedColStart)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResultSetGenerator()
| Method Detail |
|---|
public String compile(ResultSet rs,
String template)
rs - the resultset for the table datatemplate - the string containing the template resource name
public String compile(ResultSet rs,
InputStream templateStream)
rs - the resultset for the table datatemplateStream - the InputStream for reading the templates
public String compile(ResultSet rs,
TemplateDataListener listener)
rs - the resultset for the table datalistener - a template data listener
public void newCell(List<DataListener> listeners,
int row,
int column,
String value,
int mergedColStart)
protected void closeStream(InputStream stream)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||