|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.innovationinvestments.cheyenne.engine.Dialog
public abstract class Dialog
This is the base class for every Cheyenne dialog. Legacy mode: - JDBC: autoCommit - SQL: strings, no binding Default mode: - JDBC: transaction (autocommit upon dialog exit) - SQL: all parameters through binding
| Nested Class Summary | |
|---|---|
static class |
Dialog.ESCAPING
|
| Field Summary | |
|---|---|
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
Dialog()
|
|
| Method Summary | |
|---|---|
java.sql.Connection |
borrowJdbcConnection(java.lang.String id)
JdbcConnection |
void |
commit()
commit all connections and return them to the pool |
protected java.lang.String |
convertToString(java.lang.Object o)
|
protected void |
dialogSection()
|
void |
enteringLoop(Loop loop)
|
java.util.List<DataSet> |
fillAndRememberFlashContext()
|
DataSet |
findDataSetById(java.lang.String id)
Find the data set by ID |
void |
generateDialog()
|
void |
generateDialog(boolean clearData)
generate a dialog |
void |
generateDialogInit()
prepare running the generate dialog This is a separate method because logically this code belongs in the generateDialog method, however due to multithreading issues it must be run prior to spawning the two thread (generateDialog & XSLT). |
void |
generateDialogThroughXSLT(java.lang.String id)
generate a dialog (using a new thread) |
java.lang.String |
getApp()
|
java.lang.String |
getContentType()
|
Context |
getContext()
|
Loop |
getCurrentLoop()
|
java.lang.String |
getDefaultJdbcConnectionName()
|
java.lang.String |
getDiagMode()
|
java.lang.String |
getEncoding()
|
Dialog.ESCAPING |
getEscaping()
|
java.lang.String |
getId()
Id |
java.lang.String |
getIdFull()
|
java.lang.String |
getLanguage()
|
int |
getLanguageIdx(java.lang.String[] languages)
|
boolean |
getLegacyMode()
|
Loop |
getLoop(int level)
Get the loop |
java.util.List<Loop> |
getLoops()
Return all loops, index = 0 is current loop |
java.lang.String |
getNextUrl()
|
java.io.PrintWriter |
getPrintWriter()
|
java.lang.String |
getRole()
|
java.lang.String |
getTarget()
|
java.lang.String |
getUser()
|
protected void |
initialize()
|
void |
leavingLoop(Loop loop)
|
void |
loadDialog()
|
void |
loadDialog(boolean clearData)
|
protected void |
loadSection()
|
Assign |
newAssign()
Return a instance of this tag (optionally from a pool) |
DatasetAction |
newDatasetAction()
|
If |
newIf()
Return a instance of this tag (optionally from a pool) |
Loop |
newLoop()
Return a instance of this tag (optionally from a pool) |
Redirect |
newRedirect()
Return a instance of this tag (optionally from a pool) |
Sql |
newSql()
Return a instance of this tag (optionally from a pool) |
Textfile |
newTextfile()
Return a instance of this tag (optionally from a pool) |
java.util.Map<java.lang.String,java.lang.String> |
outParameters()
outParameters is used for requesting the output parameters and the content for example the soap message receiver |
void |
pickupFlashContext()
Pick up an existing flash dataset from the session and move it to the old-flashcontext |
protected void |
print(java.lang.String x)
Output to writer |
void |
registerDataSet(DataSet dataSet)
Newest dataset is put at #0 |
void |
rememberFlashContext(java.util.List<DataSet> flashDataSets)
Also used by the CheyenneServlet |
java.lang.String |
resolve(java.lang.String input)
|
java.lang.String |
resolve(java.lang.String input,
Dialog.ESCAPING escaping)
This will resolve all variables (or even nested variables) in the input string. |
java.lang.String |
resolveColumnName(java.lang.String input)
|
java.lang.Object |
resolveInAssign(java.lang.String name)
|
java.lang.Object |
resolveInDataset(java.lang.String name)
|
java.lang.String |
resolveInParent(java.lang.String variableName)
|
java.lang.String |
resolveSingleVariable(java.lang.String variableName)
This will resolve a single variable (% are already stripped) First the data set is searched Secondly the input parameters Thirdly the configuration parameters |
java.lang.String |
resolveWithoutEscapingTheResult(java.lang.String input)
This will resolve all variables (or even nested variables) in the input string |
void |
returnConnection(java.lang.String id,
java.sql.Connection connection)
|
void |
rollback()
rollback all connections and return them to the pool |
void |
setApp(java.lang.String value)
App |
void |
setAssign(java.lang.String id,
java.lang.Object value)
|
void |
setContentType(java.lang.String value)
ContentType |
void |
setContext(Context value)
Context |
void |
setDefaultJdbcConnectionName(java.lang.String value)
DefaultJdbcConnectionName |
void |
setDiagMode(java.lang.String value)
|
void |
setEncoding(java.lang.String value)
Encoding @see http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html |
void |
setEscaping(Dialog.ESCAPING value)
Escaping |
void |
setLanguage(java.lang.String value)
Language |
void |
setLegacyMode(boolean value)
LegacyMode |
void |
setNextUrl(java.lang.String value)
NextUrl |
void |
setPrintWriter(java.io.PrintWriter value)
PrintWriter |
void |
setRole(java.lang.String value)
Role |
void |
setTarget(java.lang.String value)
Target |
protected void |
setupFromContext()
|
void |
setUser(java.lang.String value)
User |
void |
submitDialog()
|
void |
submitDialog(boolean clearData)
submit a dialog Use this method to optionally clear the data (for unittests) |
protected void |
submitSection()
|
void |
unregisterAllDataSets()
|
void |
unregisterDataSet(DataSet dataSet)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SOURCECODE_VERSION
| Constructor Detail |
|---|
public Dialog()
| Method Detail |
|---|
protected void setupFromContext()
public void setContext(Context value)
public Context getContext()
public void setEncoding(java.lang.String value)
public java.lang.String getEncoding()
public void setContentType(java.lang.String value)
public java.lang.String getContentType()
public void setDefaultJdbcConnectionName(java.lang.String value)
public java.lang.String getDefaultJdbcConnectionName()
public void setNextUrl(java.lang.String value)
public java.lang.String getNextUrl()
public java.lang.String getId()
public java.lang.String getIdFull()
public void setPrintWriter(java.io.PrintWriter value)
public java.io.PrintWriter getPrintWriter()
public void setLegacyMode(boolean value)
public boolean getLegacyMode()
public void setEscaping(Dialog.ESCAPING value)
public Dialog.ESCAPING getEscaping()
public void setTarget(java.lang.String value)
public java.lang.String getTarget()
public void setApp(java.lang.String value)
public java.lang.String getApp()
public void setRole(java.lang.String value)
public java.lang.String getRole()
public void setUser(java.lang.String value)
public java.lang.String getUser()
public void setLanguage(java.lang.String value)
public java.lang.String getLanguage()
public void setDiagMode(java.lang.String value)
public java.lang.String getDiagMode()
public java.sql.Connection borrowJdbcConnection(java.lang.String id)
public void returnConnection(java.lang.String id,
java.sql.Connection connection)
public void commit()
public void rollback()
protected void initialize()
protected void loadSection()
protected void dialogSection()
protected void submitSection()
public void loadDialog(boolean clearData)
clearData - public void loadDialog()
public void generateDialogInit()
public void generateDialog(boolean clearData)
public void generateDialog()
public void generateDialogThroughXSLT(java.lang.String id)
public void submitDialog(boolean clearData)
public void submitDialog()
public void pickupFlashContext()
public java.util.List<DataSet> fillAndRememberFlashContext()
public void rememberFlashContext(java.util.List<DataSet> flashDataSets)
public If newIf()
public Loop newLoop()
public Sql newSql()
public Textfile newTextfile()
public Redirect newRedirect()
public Assign newAssign()
public DatasetAction newDatasetAction()
public void registerDataSet(DataSet dataSet)
public void unregisterDataSet(DataSet dataSet)
public DataSet findDataSetById(java.lang.String id)
id -
public void unregisterAllDataSets()
public java.lang.Object resolveInDataset(java.lang.String name)
name -
public void setAssign(java.lang.String id,
java.lang.Object value)
public java.lang.Object resolveInAssign(java.lang.String name)
name -
public java.lang.String resolve(java.lang.String input,
Dialog.ESCAPING escaping)
public java.lang.String resolve(java.lang.String input)
public java.lang.String resolveColumnName(java.lang.String input)
throws CheyenneEngineException
CheyenneEngineExceptionpublic java.lang.String resolveWithoutEscapingTheResult(java.lang.String input)
public java.lang.String resolveSingleVariable(java.lang.String variableName)
public java.lang.String resolveInParent(java.lang.String variableName)
variableName -
protected java.lang.String convertToString(java.lang.Object o)
o -
public void enteringLoop(Loop loop)
public void leavingLoop(Loop loop)
public Loop getCurrentLoop()
public Loop getLoop(int level)
level - 0 = current loop, 1 = one level below current, etc
public java.util.List<Loop> getLoops()
protected void print(java.lang.String x)
public int getLanguageIdx(java.lang.String[] languages)
public java.util.Map<java.lang.String,java.lang.String> outParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||