public class AttributesSQL extends java.lang.Object implements IHostAttributes
Constructor and Description |
---|
AttributesSQL() |
Modifier and Type | Method and Description |
---|---|
int |
fieldCount()
Returns the number of fields in the host attributes.
|
java.lang.String |
getAccessFileName()
Returns the file name of the Microsoft Access database.
|
java.lang.Character |
getColumnSeparator()
Returns the character which is used to separate column values in the
Job report.
|
UC4ObjectName |
getConnection()
Returns the name of the connection object.
|
java.lang.String |
getDatabaseName()
Returns the name of the database on the specified database server.
|
java.lang.String |
getDatabaseServer()
Returns the name and port of the database server.
|
int |
getMaxCharacters()
Returns the max.
|
int |
getMaxRows()
Returns the max.
|
java.lang.Character |
getSeparatorSubstitute()
Returns the substitute character that will be used to replace
characters in the field value which are the same as the
separator character.
|
boolean |
isAgentLog() |
boolean |
isRemoveCRLF()
Returns
true if Carriage Return and Line Feed characters should
be removed in the result set in the Job report. |
boolean |
isReportDatabase()
Returns whether the Job report transfered to the database.
|
boolean |
isReportErrorOnly()
Returns
true if the Job report will be stored only in case of Job interruption. |
boolean |
isReportFile()
Returns
true if the Job report is stored in the file system
on the target system. |
boolean |
isShowHeadLines()
Returns
true if the column names of result sets should be
displayed in the Automation Engine Job report. |
boolean |
isShowNULLasEmptyString()
Returns
true if NULL in result sets should be
displays as an empty string in the UC4 Job Report. |
void |
load(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element hostAttr)
Loads the host attributes.
|
java.lang.String |
name()
Returns the host attributes name.
|
void |
setAccessFileName(java.lang.String accessFileName)
Sets the file name of the Microsoft Access database.
|
void |
setAgentLog(boolean agentLog)
Sets the Agent Process Log for this SAP Job.
|
void |
setColumnSeparator(java.lang.Character columnSeparator)
Sets the character which is used to separate column values in the
Job report.
|
void |
setConnection(UC4ObjectName connection)
Sets the connection object.
|
void |
setDatabaseName(java.lang.String databaseName)
Sets the name of the database.
|
void |
setDatabaseServer(java.lang.String databaseServer)
Sets the name of the database server.
|
void |
setMaxCharacters(int maxCharacters)
Sets the max.
|
void |
setMaxRows(int maxLines)
Sets the max.
|
void |
setRemoveCRLF(boolean removeCRLF)
Enables or disables the display of Carriage Return and Line Feed characters
in result sets in the Job report.
|
void |
setReportDatabase(boolean reportDatabase)
Sets whether the Job report should be transfered to the database.
|
void |
setReportErrorOnly(boolean reportErrorOnly)
Sets whether the Job report should be stored only in case of Job interruption.
|
void |
setReportFile(boolean reportFile)
Sets whether the Job report should be stored in the file system on the target system.
|
void |
setSeparatorSubstitute(java.lang.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.
|
void |
setShowHeadLines(boolean showHeadLines)
Enables or disables the display of column namens of result sets in
the Automation Engine Job Report.
|
void |
setShowNULLasEmptyString(boolean showNULLasEmptyString)
Enables or disables the display of
NULL -values in
result sets in the Automation Engine Job report. |
void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element objectElement)
Writes the host attributes back to the
XMLDocument . |
public int fieldCount()
IHostAttributes
fieldCount
in interface IHostAttributes
public void load(com.uc4.util.XMLDocument doc, org.w3c.dom.Element hostAttr)
IHostAttributes
load
in interface IHostAttributes
doc
- XML Document containing the JobhostAttr
- Element which contains host attributespublic java.lang.String getDatabaseServer()
public void setDatabaseServer(java.lang.String databaseServer)
databaseServer
- String containing the name and port of the database serverpublic java.lang.String getDatabaseName()
public void setDatabaseName(java.lang.String databaseName)
databaseName
- String containing the name of the databasepublic java.lang.String getAccessFileName()
public void setAccessFileName(java.lang.String accessFileName)
accessFileName
- Full path to the MDBpublic boolean isShowHeadLines()
true
if the column names of result sets should be
displayed in the Automation Engine Job report.public void setShowHeadLines(boolean showHeadLines)
showHeadLines
- True if column names will be displayed in the Job Report,
false otherwisepublic boolean isShowNULLasEmptyString()
true
if NULL
in result sets should be
displays as an empty string in the UC4 Job Report.public void setShowNULLasEmptyString(boolean showNULLasEmptyString)
NULL
-values in
result sets in the Automation Engine Job report.showNULLasEmptyString
- True if NULL should not be shown in the Job report, false otherwisepublic int getMaxRows()
public void setMaxRows(int maxLines)
if a result set has more than maxLines
rows
only the first maxLines
rows are shown in the Job report.
To disable the row-limit set the parameter maxLines
to 0.
Valid number range: 0-9999
maxLines
- Max number of rowspublic int getMaxCharacters()
public void setMaxCharacters(int maxCharacters)
If a column in a result set has more than maxCharacters
characters
only the first maxCharacters
are shown in the Job report. *
Valid number range: 0-9999
maxCharacters
- max. Number of characters per columnpublic boolean isRemoveCRLF()
true
if Carriage Return and Line Feed characters should
be removed in the result set in the Job report.public void setRemoveCRLF(boolean removeCRLF)
removeCRLF
- true if CR and LR characters should removed from result setspublic java.lang.Character getSeparatorSubstitute()
public void setSeparatorSubstitute(java.lang.Character separatorSubstitute)
separatorSubstitute
- substitute characterpublic java.lang.Character getColumnSeparator()
public void setColumnSeparator(java.lang.Character columnSeparator)
columnSeparator
- Separator characterpublic java.lang.String name()
IHostAttributes
name
in interface IHostAttributes
public void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
IHostAttributes
XMLDocument
.store
in interface IHostAttributes
doc
- DocumentobjectElement
- ObjectElementpublic boolean isAgentLog()
public void setAgentLog(boolean agentLog)
agentLog
- true if the Log should be transferedpublic boolean isReportDatabase()
true
if the Job report is transfered to the database false
otherwisepublic void setReportDatabase(boolean reportDatabase)
reportDatabase
- true
if the job report should be transfered
to the database false
otherwisepublic boolean isReportErrorOnly()
true
if 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.true
if the job report is stored only in case of Job interruptionpublic void setReportErrorOnly(boolean reportErrorOnly)
reportErrorOnly
- true
if the job report should be stored
only in case of Job interruptionpublic boolean isReportFile()
true
if the Job report is stored in the file system
on the target system.true
if the job report is stored in the file system.public void setReportFile(boolean reportFile)
reportFile
- true
if the job report should be stored in the file systempublic UC4ObjectName getConnection()
public void setConnection(UC4ObjectName connection)
connection
- Name of the connection object