|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.sql.DisplayResultFormat
Display Strategy. The switch class used to invoke the defined output. A set of classes implementing a strategy pattern for several ways of displaying rows from the database.
Field Summary | |
private DisplayResult |
disp
|
private boolean |
out
|
private java.io.PrintStream |
prt
|
Constructor Summary | |
DisplayResultFormat()
|
Method Summary | |
void |
display(java.sql.ResultSet rs)
Display the result set according to the current output mode |
void |
display(ResultSetBean rsb)
MOD-BB 08-01-04 Ajout de cette methode. |
void |
display(ResultSetBean rsb,
int nbToDisplay)
MOD-BB 08-01-04 Ajout de cette methode. |
void |
display(java.sql.ResultSet rs,
int nbToDisplay)
Display the nbToDisplay next lines of the result set according to the current output mode |
void |
display(java.lang.String msg)
Display the message according to the current output mode |
void |
setOutput(boolean out)
Defines if the output should occur or not |
void |
setOutput(java.io.PrintStream prt)
Defines the output stream |
void |
setReport()
Sets report as the current output mode |
void |
setTable()
Sets table as the current output mode |
void |
setTSV()
Sets Tab Separated Value output as the current mode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private DisplayResult disp
private java.io.PrintStream prt
private boolean out
Constructor Detail |
public DisplayResultFormat()
Method Detail |
public void setTSV()
public void setTable()
public void setReport()
public void display(java.sql.ResultSet rs)
rs
- Result set to displaypublic void display(ResultSetBean rsb)
rsb
- ResultSetBean a afficher.public void display(java.lang.String msg)
msg
- message as a String to displaypublic void display(java.sql.ResultSet rs, int nbToDisplay)
rs
- Result set to displaynbToDisplay
- number of lines to displaypublic void display(ResultSetBean rsb, int nbToDisplay)
rsb
- ResultSetBean to displaynbToDisplay
- number of lines to displaypublic void setOutput(java.io.PrintStream prt)
prt
- output print streampublic void setOutput(boolean out)
out
- true if the output should be done, false otherwise
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |