public class DatabaseEventValue
extends java.lang.Object
Constructor and Description |
---|
DatabaseEventValue(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element dbEvent,
java.lang.String elementPrefix)
Internal use only.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessFile() |
UC4HostName |
getAgentName() |
java.lang.String |
getDatabase() |
UC4ObjectName |
getLoginObject() |
java.lang.String |
getServer() |
java.lang.String |
getSqlStatement() |
java.lang.String |
getStaticValue() |
UC4ObjectName |
getVariableKeyword() |
UC4ObjectName |
getVariableName() |
boolean |
isSourceQuery() |
boolean |
isSourceStatic() |
boolean |
isSourceVariable() |
void |
setSourceQuery(java.lang.String sqlStatement,
UC4HostName agentName,
UC4ObjectName loginObject,
java.lang.String server,
java.lang.String database,
java.lang.String accessFile)
Sets the Source of this
DatabaseEventValue to an SQL Query. |
void |
setSourceStatic(java.lang.String value)
Sets the Source of this
DatabaseEventValue to a static value. |
void |
setSourceVariable(UC4ObjectName variableName,
UC4ObjectName variableKeyword)
Sets the Source of this
DatabaseEventValue to the content of a variable. |
public DatabaseEventValue(com.uc4.util.XMLDocument doc, org.w3c.dom.Element dbEvent, java.lang.String elementPrefix)
doc
- XML DocumentdbEvent
- DB EventelementPrefix
- prefixpublic void setSourceStatic(java.lang.String value)
DatabaseEventValue
to a static value.value
- Static valuepublic java.lang.String getStaticValue()
public void setSourceVariable(UC4ObjectName variableName, UC4ObjectName variableKeyword)
DatabaseEventValue
to the content of a variable.variableName
- Name of the Variable ObjectvariableKeyword
- Name of the Keyword inside the Variablepublic UC4ObjectName getVariableName()
public UC4ObjectName getVariableKeyword()
public void setSourceQuery(java.lang.String sqlStatement, UC4HostName agentName, UC4ObjectName loginObject, java.lang.String server, java.lang.String database, java.lang.String accessFile)
DatabaseEventValue
to an SQL Query.sqlStatement
- SQL Statement (typically a select)agentName
- Name of the SQL AgentloginObject
- Name of the Login Objectserver
- Hostname or IP Address of the Database Serverdatabase
- Database nameaccessFile
- Name of the Micorosoft Access File, an empty String should be passed if not usedpublic java.lang.String getSqlStatement()
public UC4HostName getAgentName()
public UC4ObjectName getLoginObject()
public java.lang.String getServer()
public java.lang.String getDatabase()
public java.lang.String getAccessFile()
public boolean isSourceQuery()
public boolean isSourceStatic()
public boolean isSourceVariable()