Package com.uc4.api.objects
Class DatabaseEventValue
java.lang.Object
com.uc4.api.objects.DatabaseEventValue
Represents a value in the database event.
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseEventValue
(com.uc4.util.XMLDocument doc, Element dbEvent, String elementPrefix) Internal use only. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.: variableKeyowrd type changed from UC4ObjectName to String.boolean
boolean
boolean
void
setSourceQuery
(String sqlStatement, UC4HostName agentName, UC4ObjectName loginObject, String server, String database, String accessFile) Sets the Source of thisDatabaseEventValue
to an SQL Query.void
setSourceStatic
(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, String variableKeyword) Sets the Source of thisDatabaseEventValue
to the content of a variable.protected void
-
Constructor Details
-
DatabaseEventValue
Internal use only.- Parameters:
doc
- XML DocumentdbEvent
- DB EventelementPrefix
- prefix
-
-
Method Details
-
store
-
setSourceStatic
Sets the Source of thisDatabaseEventValue
to a static value.- Parameters:
value
- Static value
-
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
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
- Returns:
- Name of the Variable Object
-
getVariableKeyword
Deprecated.: variableKeyowrd type changed from UC4ObjectName to String.- Returns:
- Keyword in the Variable Object
-
getVarKeyword
- Returns:
- Keyword in the Variable Object
-
setSourceQuery
public void setSourceQuery(String sqlStatement, UC4HostName agentName, UC4ObjectName loginObject, String server, String database, 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
- Returns:
- Content of the SQL Query Statement
-
getAgentName
- Returns:
- Name of the SQL Agent
-
getLoginObject
- Returns:
- Name of the LOGIN Object
-
getServer
- Returns:
- Host name of the database server
-
getDatabase
- Returns:
- Name of the database
-
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
-