public class PreviewVariable extends XMLRequest
Constructor and Description |
---|
PreviewVariable(UC4ObjectName name)
Creates a new Preview Request for dynamic Variables.
|
PreviewVariable(Variable var)
Creates a new Preview Request for SQL Variables.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
java.lang.String[] |
getColumnNames()
Returns a String array which contains the names of the columns.
|
java.lang.String[] |
getRow(int index)
Returns the data of the specified row.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
java.lang.String |
getSubType()
Returns the type of the variable.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
int |
size()
Returns the number of data rows in the preview.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public PreviewVariable(Variable var)
var
- Internal or external SQL Variablepublic PreviewVariable(UC4ObjectName name)
name
- Name of the variable objectprotected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
XMLRequest
createRequest
in class XMLRequest
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the sessionprotected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
handleContent
in class XMLRequest
public java.lang.String getSubType()
public int size()
public java.lang.String[] getRow(int index)
index
- Index, 0
to size() -1
public java.lang.String[] getColumnNames()
protected boolean isAllowedInClientZero()
XMLRequest
XMLRequest
is allowed in client 0.
The default implementation returns false
, subclasses may override.isAllowedInClientZero
in class XMLRequest
true
if this request is allowed in client 0, false
otherwise