|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Window
org.adempiere.webui.component.Window
org.adempiere.webui.panel.ADForm
org.adempiere.webui.apps.form.WSQLProcess
public class WSQLProcess
A Custom Form to specify and process SQL statements. The range of statement types that can be performed can be restricted by allowing or disallowing DML statements.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zul.Window |
|---|
Window.ExtraCtrl |
| Field Summary |
|---|
| Fields inherited from class org.adempiere.webui.panel.ADForm |
|---|
logger, m_windowNo |
| Fields inherited from class org.adempiere.webui.component.Window |
|---|
MODE_EMBEDDED, MODE_MODAL, MODE_OVERLAPPED, MODE_POPUP |
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
WSQLProcess()
Default constructor. |
|
| Method Summary | |
|---|---|
static Button |
createProcessButton()
Create Process Button. |
void |
init(int adFormId,
String name)
Initialise the form |
void |
onEvent(Event event)
|
static String |
processStatement(String sqlStatement,
boolean allowDML)
Process SQL Statements. |
static String |
processStatements(String sqlStatements,
boolean allowDML)
Process a semicolon delimitted list of SQL Statements. |
| Methods inherited from class org.adempiere.webui.panel.ADForm |
|---|
getAdFormId, getTitle, getWindowNo, isAsap, openForm |
| Methods inherited from class org.zkoss.zul.Window |
|---|
clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMode, getOuterAttrs, getPosition, getRealStyle, getSclass, getTitleSclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isSizable, newExtraCtrl, onChildRemoved, onClose, onModal, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMode, setMode, setPage, setParent, setPosition, setSclass, setSizable, setTitle, setVisible |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getActionAttrs, getAllOnClickAttrs, getContext, getCtrlKeys, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
focus, getAllOnClickAttrs, getDraggable, getDroppable, getHeight, getLeft, getRealSclass, getRealStyleFlags, getStyle, getTooltiptext, getTop, getWidth, getZIndex, setClass, setDroppable, setFocus, setHeight, setLeft, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.zkoss.zk.ui.IdSpace |
|---|
getFellow, getFellowIfAny, getFellows |
| Constructor Detail |
|---|
public WSQLProcess()
| Method Detail |
|---|
public void init(int adFormId,
String name)
ADForm
init in class ADFormadFormId - the Adempiere form identifiername - the name of the Adempiere formpublic static final Button createProcessButton()
public static String processStatements(String sqlStatements,
boolean allowDML)
sqlStatements - one or more statements separated by a semicolon (';')allowDML - whether to allow DML statements
public static String processStatement(String sqlStatement,
boolean allowDML)
sqlStatement - a single SQL statementallowDML - whether to allow DML statements
public void onEvent(Event event)
throws Exception
onEvent in interface EventListeneronEvent in class ADFormException
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||