Package com.uc4.api.objects
Class DatabaseEventValue
- java.lang.Object
-
- com.uc4.api.objects.DatabaseEventValue
-
public class DatabaseEventValue extends java.lang.ObjectRepresents a value in the database event.
-
-
Constructor Summary
Constructors Constructor Description DatabaseEventValue(com.uc4.util.XMLDocument doc, org.w3c.dom.Element dbEvent, java.lang.String elementPrefix)Internal use only.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetAccessFile()UC4HostNamegetAgentName()java.lang.StringgetDatabase()UC4ObjectNamegetLoginObject()java.lang.StringgetServer()java.lang.StringgetSqlStatement()java.lang.StringgetStaticValue()UC4ObjectNamegetVariableKeyword()Deprecated.: variableKeyowrd type changed from UC4ObjectName to String.UC4ObjectNamegetVariableName()java.lang.StringgetVarKeyword()booleanisSourceQuery()booleanisSourceStatic()booleanisSourceVariable()voidsetSourceQuery(java.lang.String sqlStatement, UC4HostName agentName, UC4ObjectName loginObject, java.lang.String server, java.lang.String database, java.lang.String accessFile)Sets the Source of thisDatabaseEventValueto an SQL Query.voidsetSourceStatic(java.lang.String value)Sets the Source of thisDatabaseEventValueto a static value.voidsetSourceVariable(UC4ObjectName variableName, UC4ObjectName variableKeyword)Deprecated.: variableKeyowrd type changed from UC4ObjectName to String.voidsetSourceVariable(UC4ObjectName variableName, java.lang.String variableKeyword)Sets the Source of thisDatabaseEventValueto the content of a variable.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
-
-
Method Detail
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
setSourceStatic
public void setSourceStatic(java.lang.String value)
Sets the Source of thisDatabaseEventValueto a static value.- Parameters:
value- Static value
-
getStaticValue
public java.lang.String getStaticValue()
- Returns:
- Static value
-
setSourceVariable
@Deprecated public void setSourceVariable(UC4ObjectName variableName, UC4ObjectName variableKeyword)
Deprecated.: variableKeyowrd type changed from UC4ObjectName to String.Sets the Source of thisDatabaseEventValueto the content of a variable.- Parameters:
variableName- Name of the Variable ObjectvariableKeyword- Name of the Keyword inside the Variable
-
setSourceVariable
public void setSourceVariable(UC4ObjectName variableName, java.lang.String variableKeyword)
Sets the Source of thisDatabaseEventValueto the content of a variable.- Parameters:
variableName- Name of the Variable ObjectvariableKeyword- Name of the Keyword inside the Variable
-
getVariableName
public UC4ObjectName getVariableName()
- Returns:
- Name of the Variable Object
-
getVariableKeyword
@Deprecated public UC4ObjectName getVariableKeyword()
Deprecated.: variableKeyowrd type changed from UC4ObjectName to String.- Returns:
- Keyword in the Variable Object
-
getVarKeyword
public java.lang.String getVarKeyword()
- Returns:
- Keyword in the Variable Object
-
setSourceQuery
public 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 thisDatabaseEventValueto an SQL Query.- Parameters:
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 used
-
getSqlStatement
public java.lang.String getSqlStatement()
- Returns:
- Content of the SQL Query Statement
-
getAgentName
public UC4HostName getAgentName()
- Returns:
- Name of the SQL Agent
-
getLoginObject
public UC4ObjectName getLoginObject()
- Returns:
- Name of the LOGIN Object
-
getServer
public java.lang.String getServer()
- Returns:
- Host name of the database server
-
getDatabase
public java.lang.String getDatabase()
- Returns:
- Name of the database
-
getAccessFile
public java.lang.String getAccessFile()
- Returns:
- File name of the Database if Microsoft Access is used.
-
isSourceQuery
public boolean isSourceQuery()
- Returns:
- True if this source is set to an SQL Query, false otherwise
-
isSourceStatic
public boolean isSourceStatic()
- Returns:
- True if this source is set to a static value, false otherwise
-
isSourceVariable
public boolean isSourceVariable()
- Returns:
- True if this source is set to a variable value, false otherwise
-
-