Package com.uc4.api.objects
Class DatabaseEventValue
- java.lang.Object
-
- com.uc4.api.objects.DatabaseEventValue
-
public class DatabaseEventValue extends java.lang.Object
Represents 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.String
getAccessFile()
UC4HostName
getAgentName()
java.lang.String
getDatabase()
UC4ObjectName
getLoginObject()
java.lang.String
getServer()
java.lang.String
getSqlStatement()
java.lang.String
getStaticValue()
UC4ObjectName
getVariableKeyword()
Deprecated.: variableKeyowrd type changed from UC4ObjectName to String.UC4ObjectName
getVariableName()
java.lang.String
getVarKeyword()
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 thisDatabaseEventValue
to an SQL Query.void
setSourceStatic(java.lang.String value)
Sets the Source of thisDatabaseEventValue
to a static value.void
setSourceVariable(UC4ObjectName variableName, UC4ObjectName variableKeyword)
Deprecated.: variableKeyowrd type changed from UC4ObjectName to String.void
setSourceVariable(UC4ObjectName variableName, java.lang.String variableKeyword)
Sets the Source of thisDatabaseEventValue
to the content of a variable.protected void
store(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 thisDatabaseEventValue
to 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 thisDatabaseEventValue
to 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 thisDatabaseEventValue
to 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 thisDatabaseEventValue
to 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
-
-