Package com.uc4.api.objects
Class AttributesSQL
java.lang.Object
com.uc4.api.objects.AttributesSQL
- All Implemented Interfaces:
IHostAttributes
Host attributes for SQL Jobs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of fields in the host attributes.Returns the file name of the Microsoft Access database.Returns the character which is used to separate column values in the Job report.Returns the name of the connection object.Returns the name of the database on the specified database server.Returns the name and port of the database server.intReturns the max.intReturns the max.Returns the substitute character that will be used to replace characters in the field value which are the same as the separator character.booleanbooleanReturnstrueif Carriage Return and Line Feed characters should be removed in the result set in the Job report.booleanReturns whether the Job report transfered to the database.booleanReturnstrueif the Job report will be stored only in case of Job interruption.booleanReturnstrueif the Job report is stored in the file system on the target system.booleanReturnstrueif the column names of result sets should be displayed in the Automation Engine Job report.booleanReturnstrueifNULLin result sets should be displays as an empty string in the UC4 Job Report.voidload(com.uc4.util.XMLDocument doc, Element hostAttr, ConnectionAttributes info) Loads the host attributes.name()Returns the host attributes name.voidsetAccessFileName(String accessFileName) Sets the file name of the Microsoft Access database.voidsetAgentLog(boolean agentLog) Sets the Agent Process Log for this SAP Job.voidsetColumnSeparator(Character columnSeparator) Sets the character which is used to separate column values in the Job report.voidsetConnection(UC4ObjectName connection) Sets the connection object.voidsetDatabaseName(String databaseName) Sets the name of the database.voidsetDatabaseServer(String databaseServer) Sets the name of the database server.voidsetMaxCharacters(int maxCharacters) Sets the max.voidsetMaxRows(int maxLines) Sets the max.voidsetRemoveCRLF(boolean removeCRLF) Enables or disables the display of Carriage Return and Line Feed characters in result sets in the Job report.voidsetReportDatabase(boolean reportDatabase) Sets whether the Job report should be transfered to the database.voidsetReportErrorOnly(boolean reportErrorOnly) Sets whether the Job report should be stored only in case of Job interruption.voidsetReportFile(boolean reportFile) Sets whether the Job report should be stored in the file system on the target system.voidsetSeparatorSubstitute(Character separatorSubstitute) Sets the substitute character that will be used to replace characters in the field value which are the same as the separator character.voidsetShowHeadLines(boolean showHeadLines) Enables or disables the display of column namens of result sets in the Automation Engine Job Report.voidsetShowNULLasEmptyString(boolean showNULLasEmptyString) Enables or disables the display ofNULL-values in result sets in the Automation Engine Job report.voidstore(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes info) Writes the host attributes back to theXMLDocument.
-
Constructor Details
-
AttributesSQL
public AttributesSQL()
-
-
Method Details
-
fieldCount
public int fieldCount()Description copied from interface:IHostAttributesReturns the number of fields in the host attributes.- Specified by:
fieldCountin interfaceIHostAttributes- Returns:
- number of fields
-
load
Description copied from interface:IHostAttributesLoads the host attributes.- Specified by:
loadin interfaceIHostAttributes- Parameters:
doc- XML Document containing the JobhostAttr- Element which contains host attributesinfo- Session details
-
getDatabaseServer
Returns the name and port of the database server.- Returns:
- String containing the database server name.
-
setDatabaseServer
Sets the name of the database server. Server and port are seperated by a colon. For example uc4srv01:50000. The length of the parameter must not exceed 100 characters. Provide an empty string if a Microsoft Access database will be used.- Parameters:
databaseServer- String containing the name and port of the database server
-
getDatabaseName
Returns the name of the database on the specified database server.- Returns:
- String containing the name of the database.
-
setDatabaseName
Sets the name of the database. The length of the parameter must not exceed 100 characters. Provide an empty string if a Microsoft Access database will be used.- Parameters:
databaseName- String containing the name of the database
-
getAccessFileName
Returns the file name of the Microsoft Access database.- Returns:
- String containing the file name of the Microsoft Access database
-
setAccessFileName
Sets the file name of the Microsoft Access database.- Parameters:
accessFileName- Full path to the MDB
-
isShowHeadLines
public boolean isShowHeadLines()Returnstrueif the column names of result sets should be displayed in the Automation Engine Job report.- Returns:
- True if column names will be displayed in the Job Report
-
setShowHeadLines
public void setShowHeadLines(boolean showHeadLines) Enables or disables the display of column namens of result sets in the Automation Engine Job Report.- Parameters:
showHeadLines- True if column names will be displayed in the Job Report, false otherwise
-
isShowNULLasEmptyString
public boolean isShowNULLasEmptyString()ReturnstrueifNULLin result sets should be displays as an empty string in the UC4 Job Report.- Returns:
- True if NULL is displayed as an empty string, false otherwise
-
setShowNULLasEmptyString
public void setShowNULLasEmptyString(boolean showNULLasEmptyString) Enables or disables the display ofNULL-values in result sets in the Automation Engine Job report.- Parameters:
showNULLasEmptyString- True if NULL should not be shown in the Job report, false otherwise
-
getMaxRows
public int getMaxRows()Returns the max. number of rows in a result set.- Returns:
- max. Number of rows
-
setMaxRows
public void setMaxRows(int maxLines) Sets the max. number of rows in a result set in the Automation Engine Job report.if a result set has more than
maxLinesrows only the firstmaxLinesrows are shown in the Job report. To disable the row-limit set the parametermaxLinesto 0. Valid number range: 0-9999- Parameters:
maxLines- Max number of rows
-
getMaxCharacters
public int getMaxCharacters()Returns the max. number of characters per column.- Returns:
- Max. Number of characters.
-
setMaxCharacters
public void setMaxCharacters(int maxCharacters) Sets the max. number of characeters for a text column in a result set.If a column in a result set has more than
maxCharacterscharacters only the firstmaxCharactersare shown in the Job report. * Valid number range: 0-9999- Parameters:
maxCharacters- max. Number of characters per column
-
isRemoveCRLF
public boolean isRemoveCRLF()Returnstrueif Carriage Return and Line Feed characters should be removed in the result set in the Job report.- Returns:
- true if CR and LR characters are removed in the Job report
-
setRemoveCRLF
public void setRemoveCRLF(boolean removeCRLF) Enables or disables the display of Carriage Return and Line Feed characters in result sets in the Job report.- Parameters:
removeCRLF- true if CR and LR characters should removed from result sets
-
getSeparatorSubstitute
Returns the substitute character that will be used to replace characters in the field value which are the same as the separator character.- Returns:
- Separator substitute character
-
setSeparatorSubstitute
Sets the substitute character that will be used to replace characters in the field value which are the same as the separator character.- Parameters:
separatorSubstitute- substitute character
-
getColumnSeparator
Returns the character which is used to separate column values in the Job report.- Returns:
- Separator character
-
setColumnSeparator
Sets the character which is used to separate column values in the Job report.- Parameters:
columnSeparator- Separator character
-
name
Description copied from interface:IHostAttributesReturns the host attributes name.- Specified by:
namein interfaceIHostAttributes- Returns:
- name
-
store
Description copied from interface:IHostAttributesWrites the host attributes back to theXMLDocument.- Specified by:
storein interfaceIHostAttributes- Parameters:
doc- DocumentobjectElement- ObjectElementinfo- Session details
-
isAgentLog
public boolean isAgentLog()- Returns:
- True if the Agent Process Log should be transfered
-
setAgentLog
public void setAgentLog(boolean agentLog) Sets the Agent Process Log for this SAP Job.- Parameters:
agentLog- true if the Log should be transfered
-
isReportDatabase
public boolean isReportDatabase()Returns whether the Job report transfered to the database.- Returns:
trueif the Job report is transfered to the databasefalseotherwise
-
setReportDatabase
public void setReportDatabase(boolean reportDatabase) Sets whether the Job report should be transfered to the database.- Parameters:
reportDatabase-trueif the job report should be transfered to the databasefalseotherwise
-
isReportErrorOnly
public boolean isReportErrorOnly()Returnstrueif the Job report will be stored only in case of Job interruption. This function is only available when "Database" and/or "File" have been selected.- Returns:
trueif the job report is stored only in case of Job interruption
-
setReportErrorOnly
public void setReportErrorOnly(boolean reportErrorOnly) Sets whether the Job report should be stored only in case of Job interruption. This function is only available when "Database" and/or "File" have been selected.- Parameters:
reportErrorOnly-trueif the job report should be stored only in case of Job interruption
-
isReportFile
public boolean isReportFile()Returnstrueif the Job report is stored in the file system on the target system.- Returns:
trueif the job report is stored in the file system.
-
setReportFile
public void setReportFile(boolean reportFile) Sets whether the Job report should be stored in the file system on the target system.- Parameters:
reportFile-trueif the job report should be stored in the file system
-
getConnection
Returns the name of the connection object.- Returns:
- Name of the connection object
-
setConnection
Sets the connection object.- Parameters:
connection- Name of the connection object
-