|
Oracle Fusion Middleware extensions for Logging and Diagnostics 11g Release 1 (11.1.2) E22565-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.appltest.diagfwk.common.DiagBaseFactory oracle.apps.fnd.appltest.diagfwk.api.report.ReportElementFactory
public abstract class ReportElementFactory
A factory that provides APIs for creating instances of various report element objects during execution of a test.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.common.DiagConstants |
---|
DiagConstants.ExecutionMode, DiagConstants.Format, DiagConstants.LinkType, DiagConstants.Status |
Field Summary | |
---|---|
static int |
BREAK_HEADER_LENGTH
Break column headers greater than this length |
Fields inherited from interface oracle.apps.fnd.appltest.diagfwk.api.report.ReportConstants |
---|
ERROR_TYPE_DIAG, ERROR_TYPE_EXEC, MSG_ATTENTION, MSG_NORMAL, SEVERITY_CRITICAL, SEVERITY_WARNING |
Constructor Summary | |
---|---|
ReportElementFactory()
|
Method Summary | |
---|---|
static Message |
createAttentionMessage(java.lang.String pNlsKey,
java.lang.String pDefault)
Create a new Attention Message object with the given NLS Key and default value |
static Message |
createAttentionMessage(java.lang.String pNlsKey,
java.lang.String pDefault,
java.lang.String pMetaLinkNoteId)
Creates a new Attention Message with the given parameters |
static Message |
createAttentionMessage(java.lang.String pNlsKey,
java.lang.String pDefault,
java.lang.String[][] pMsgTokens)
Creates a new Messsage with the given parameters |
static Message |
createAttentionMessage(java.lang.String pNlsKey,
java.lang.String pDefault,
java.lang.String[][] pMsgTokens,
java.lang.String pMetaLinkNoteId)
Creates a new Messsage with the given parameters |
static DescriptiveHeader |
createDescriptiveHeader()
Creates an empty descriptive header instance |
static DescriptiveHeader |
createDescriptiveHeader(Label pHeader,
Label pHeaderDescription)
Creates an descriptive header instance with the given header and description labels |
static DescriptiveHeader |
createDescriptiveHeader(java.lang.String pNlsKey,
java.lang.String pDefault,
java.lang.String[][] pNameValuePairs,
java.lang.String pNlsDescKey,
java.lang.String pDescription,
java.lang.String[][] pDescNameValuePairs)
Creates an descriptive header instance with the given parameters |
static DescriptiveHeader |
createDescriptiveHeader(java.lang.String pNlsKey,
java.lang.String pDefault,
java.lang.String pNlsDescKey,
java.lang.String pDescription)
Creates an descriptive header instance with the given parameters |
static ErrorInfo |
createError(java.lang.String pErrorNlsKey,
java.lang.String pErrorDefault,
java.lang.String[][] pErrorMsgTokens,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createError(java.lang.String pErrorNlsKey,
java.lang.String pErrorDefault,
java.lang.String[][] pErrorMsgTokens,
java.lang.String pErrorMetalinkId,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createError(java.lang.String pErrorNlsKey,
java.lang.String pErrorDefault,
java.lang.String[][] pErrorMsgTokens,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault,
java.lang.String[][] pFixMsgTokens)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createError(java.lang.String pErrorNlsKey,
java.lang.String pErrorDefault,
java.lang.String[][] pErrorMsgTokens,
java.lang.String pErrorMetalinkId,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault,
java.lang.String[][] pFixMsgTokens,
java.lang.String pFixMetalinkId)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createError(java.lang.String pErrorNlsKey,
java.lang.String pErrorDefault,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createError(java.lang.String pErrorNlsKey,
java.lang.String pErrorDefault,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault,
java.lang.String[][] pFixMsgTokens)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createError(java.lang.String pErrorNlsKey,
java.lang.String pErrorDefault,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault,
java.lang.String[][] pFixMsgTokens,
java.lang.String pFixMetalinkId)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createErrorInfo()
Creates a new instance of an ErrorInfo object |
static ErrorInfo |
createErrorInfo(ErrorInfo.Severity pSeverity,
Message pErrMsg,
FixInfo pFixInfo)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createException(java.lang.Throwable pTrace,
java.lang.String pErrorNlsKey,
java.lang.String pErrorDefault,
java.lang.String[][] pErrorMsgTokens,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createException(java.lang.Throwable pTrace,
java.lang.String pErrorNlsKey,
java.lang.String pErrorDefault,
java.lang.String[][] pErrorMsgTokens,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault,
java.lang.String[][] pFixMsgTokens)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createException(java.lang.Throwable pTrace,
java.lang.String pErrorNlsKey,
java.lang.String pErrorDefault,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createException(java.lang.Throwable pTrace,
java.lang.String pErrorNlsKey,
java.lang.String pErrorDefault,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault,
java.lang.String[][] pFixMsgTokens)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static FixInfo |
createFixInfo()
Creates a new instance of FixInfo |
static FixInfo |
createFixInfo(Message pFixMsg)
Creates a new instance of a FixInfo object |
static Header |
createHeader()
Returns a new instance of a Header |
static Header |
createHeader(java.lang.String pNlsKey,
java.lang.String pDefault)
Returns a new Header with the given NLS key and the given default value. |
static Header |
createHeader(java.lang.String pNlsKey,
java.lang.String pDefault,
java.lang.String[][] pNameValuePairs)
Returns a new Header with the given NLS key and the given default value. |
static Label |
createLabel()
Returns a new instance of a Label |
static Label |
createLabel(java.lang.String pNlsKey,
java.lang.String pDefault)
Returns a new Label |
static Label |
createLabel(java.lang.String pNlsKey,
java.lang.String pDefault,
java.util.List<NameValue> pTokens)
Returns a new label |
static Label |
createLabel(java.lang.String pNlsKey,
java.lang.String pDefault,
java.lang.String[][] pNameValuePairs)
Returns a new label |
static LinkToken |
createLinkToken()
Create a new LinkToken object |
static LinkToken |
createLinkToken(java.lang.String pTokenName,
Message pMessage)
Create a LinkToken with given name and Message (link) |
static LinkToken |
createLinkTokenForMetalinkNote(java.lang.String pTokenName,
java.lang.String pMetalinkNoteId)
Deprecated. please use createLinkTokenForSupportNote(String pTokenName, String pSupportNoteId) |
static LinkToken |
createLinkTokenForSupportNote(java.lang.String pTokenName,
java.lang.String pSupportNoteId)
A convenience API that will internally create a Message with the Note ID with the link to Support defined |
static Message |
createMessage()
Create a new Message object |
static Message |
createMessage(java.lang.String pNlsKey,
java.lang.String pDefault)
Create a new Message object with the given NLS Key and default value |
static Message |
createMessage(java.lang.String pNlsKey,
java.lang.String pDefault,
java.lang.String pMetaLinkNoteId)
Creates a new Message with the given parameters |
static Message |
createMessage(java.lang.String pNlsKey,
java.lang.String pDefault,
java.lang.String[][] pMsgTokens)
Creates a new Messsage with the given parameters |
static Message |
createMessage(java.lang.String pNlsKey,
java.lang.String pDefault,
java.lang.String[][] pMsgTokens,
java.lang.String pMetaLinkNoteId)
Creates a new Messsage with the given parameters |
static MsgList |
createMsgList()
Creates a new empty list of messages |
static MsgList |
createMsgList(java.util.List<Message> pListElems)
Creates a new MsgList with the given list of elements |
static NameValue |
createNameValue()
Returns a new instance of a NameValue |
static NameValue |
createNameValue(java.lang.String pName,
java.lang.String pValue)
Returns a new instance of a NameValue with the given name and value |
static RowCell |
createRowCell()
Creates an empty row cell |
static RowCell |
createRowCell(Message pData)
Creates a row cell with the given data |
static Section |
createSection()
Creates a new Section |
static Section |
createSection(DescriptiveHeader pHeader)
Creates a new Section with the given header |
static Section |
createSection(java.lang.String pSectionNlsKey,
java.lang.String pSectionDefault)
Creates a new Section with the given parameters |
static Section |
createSection(java.lang.String pSectionNlsKey,
java.lang.String pSectionDefault,
java.lang.String[][] pSectionTokens)
Creates a new Section with the given parameters |
static Section |
createSection(java.lang.String pSectionNlsKey,
java.lang.String pSectionDefault,
java.lang.String[][] pSectionTokens,
java.lang.String pDescrNlsKey,
java.lang.String pDescrDefault,
java.lang.String[][] pDescrTokens)
Creates a new Section with the given parameters |
static Section |
createSection(java.lang.String pSectionNlsKey,
java.lang.String pSectionDefault,
java.lang.String pDescrNlsKey,
java.lang.String pDescrDefault)
Creates a new Section with the given parameters |
static SummaryInfo |
createSummaryInfo()
Creates a new SummaryInfo object |
static SummaryInfo |
CreateSummaryInfo(Message pSummaryText)
Creates a new instnace of summary info with the given label and error list |
static Table |
createTable()
Creates a new empty table. |
static Table |
createTable(Header pHeader,
java.util.List<Header> pColumnHeaders,
java.util.List<TableRow> pTableRows)
Creates a new table with the specified table header, column headers and table rows. |
static Table |
createTableFromResultSet(java.lang.String tableHeaderNlsKey,
java.lang.String defaultTableHeader,
java.sql.ResultSet resultSet,
java.lang.String sql,
java.math.BigInteger maxDisplayRows,
boolean showFooter,
boolean showSQL)
Displays the data in a result set formatted either in a tabular or portrait form. |
static Table |
createTableFromResultSet(java.lang.String tableHeaderNlsKey,
java.lang.String defaultTableHeader,
java.sql.ResultSet resultSet,
java.lang.String sql,
java.lang.String[][] sqlBindVariables,
java.math.BigInteger maxDisplayRows,
boolean showFooter,
boolean showSQL)
Displays the data in a result set formatted either in a tabular or portrait form. |
static Table |
createTableFromResultSetWithRowCountThreshold(java.lang.String tableHeaderNlsKey,
java.lang.String defaultTableHeader,
java.sql.ResultSet resultSet,
java.lang.String sql,
java.lang.String[][] sqlBindVariables,
java.math.BigInteger maxDisplayRows,
boolean showFooter,
boolean showSQL,
int nRowsThreshold)
Displays the data in a result set formatted either in a tabular or portrait form. |
static TableRow |
createTableRow()
Creates a new TableRow |
static TableRow |
createTableRow(java.util.List<RowCell> pRowElems)
Creates a new TableRow with the given row elements |
static ErrorInfo |
createWarning(java.lang.String pWarningNlsKey,
java.lang.String pWarningDefault,
java.lang.String[][] pWarningMsgTokens,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createWarning(java.lang.String pWarningNlsKey,
java.lang.String pWarningDefault,
java.lang.String[][] pWarningMsgTokens,
java.lang.String pWarningMetalinkId,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createWarning(java.lang.String pWarningNlsKey,
java.lang.String pWarningDefault,
java.lang.String[][] pWarningMsgTokens,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault,
java.lang.String[][] pFixMsgTokens)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createWarning(java.lang.String pWarningNlsKey,
java.lang.String pWarningDefault,
java.lang.String[][] pWarningMsgTokens,
java.lang.String pWarningMetalinkId,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault,
java.lang.String[][] pFixMsgTokens,
java.lang.String pFixMetalinkId)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createWarning(java.lang.String pWarningNlsKey,
java.lang.String pWarningDefault,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createWarning(java.lang.String pWarningNlsKey,
java.lang.String pWarningDefault,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault,
java.lang.String[][] pFixMsgTokens)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static ErrorInfo |
createWarning(java.lang.String pWarningNlsKey,
java.lang.String pWarningDefault,
java.lang.String pFixNlsKey,
java.lang.String pFixDefault,
java.lang.String[][] pFixMsgTokens,
java.lang.String pFixMetalinkId)
Creates a new instance of an ErrorInfo object with the specified attribuets |
static Table |
getResultSetAsTable(java.lang.String tableHeaderNlsKey,
java.lang.String defaultTableHeader,
java.sql.ResultSet resultSet,
java.lang.String sql,
java.math.BigInteger maxDisplayRows,
boolean showFooter,
boolean showSQL)
Deprecated. Please use createTableFromResultSet() APIs instead. |
static java.lang.String |
resolveSqlStatement(java.lang.String sqlStatement,
java.lang.String[][] bindValues)
Resolve sql statement. |
static NameValueList |
toNameValueList(java.lang.String[][] pNameValuePairs)
|
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.common.DiagBaseFactory |
---|
createClassLoader, loadClassFor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BREAK_HEADER_LENGTH
Constructor Detail |
---|
public ReportElementFactory()
Method Detail |
---|
public static NameValue createNameValue()
public static NameValue createNameValue(java.lang.String pName, java.lang.String pValue)
public static Label createLabel()
public static Label createLabel(java.lang.String pNlsKey, java.lang.String pDefault)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the label
public static Header createHeader()
public static Header createHeader(java.lang.String pNlsKey, java.lang.String pDefault)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the label
public static Label createLabel(java.lang.String pNlsKey, java.lang.String pDefault, java.util.List<NameValue> pTokens)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the labelpTokens
- - list of tokens to go with the NLS key for getting the
translated message
public static DescriptiveHeader createDescriptiveHeader()
public static DescriptiveHeader createDescriptiveHeader(Label pHeader, Label pHeaderDescription)
pHeader
- header textpHeaderDescription
- header description text
public static SummaryInfo createSummaryInfo()
public static SummaryInfo CreateSummaryInfo(Message pSummaryText)
pSummaryText
- - summary text for the summary info
public static Message createMessage()
public static Message createMessage(java.lang.String pNlsKey, java.lang.String pDefault)
pNlsKey
- - NLS Key for the messagepDefault
- - Default text for the message
public static FixInfo createFixInfo()
public static FixInfo createFixInfo(Message pFixMsg)
pFixMsg
- - label for the fix message
public static ErrorInfo createErrorInfo()
public static ErrorInfo createErrorInfo(ErrorInfo.Severity pSeverity, Message pErrMsg, FixInfo pFixInfo)
pSeverity
- - severity of the errorpErrMsg
- - the error messagepFixInfo
- - a fix info object with a list of fix messages
public static Section createSection()
public static Section createSection(DescriptiveHeader pHeader)
pHeader
- label for the header
public static MsgList createMsgList()
public static MsgList createMsgList(java.util.List<Message> pListElems)
pListElems
- - the list of elements for the MsgList
public static TableRow createTableRow()
public static TableRow createTableRow(java.util.List<RowCell> pRowElems)
pRowElems
- list of row elements for the row
public static Table createTable()
public static Table createTable(Header pHeader, java.util.List<Header> pColumnHeaders, java.util.List<TableRow> pTableRows)
pHeader
- - a table header for the tablepColumnHeaders
- - headers for the columns of the tablepTableRows
- - rows for the table
public static RowCell createRowCell()
public static RowCell createRowCell(Message pData)
public static Section createSection(java.lang.String pSectionNlsKey, java.lang.String pSectionDefault)
pSectionNlsKey
- - the NLS key for the labelpSectionDefault
- - the default text for the label
public static Section createSection(java.lang.String pSectionNlsKey, java.lang.String pSectionDefault, java.lang.String pDescrNlsKey, java.lang.String pDescrDefault)
pSectionNlsKey
- - the NLS key for the labelpSectionDefault
- - the default text for the labelpDescrNlsKey
- - the NLS key for the descriptionpDescrDefault
- - the default text for the description
public static Section createSection(java.lang.String pSectionNlsKey, java.lang.String pSectionDefault, java.lang.String[][] pSectionTokens)
pSectionNlsKey
- - the NLS key for the labelpSectionDefault
- - the default text for the labelpSectionTokens
- - the tokens to apply to the nlsKey
public static Section createSection(java.lang.String pSectionNlsKey, java.lang.String pSectionDefault, java.lang.String[][] pSectionTokens, java.lang.String pDescrNlsKey, java.lang.String pDescrDefault, java.lang.String[][] pDescrTokens)
pSectionNlsKey
- - the NLS key for the labelpSectionDefault
- - the default text for the labelpSectionTokens
- - the tokens to apply to the nlsKeypDescrNlsKey
- - the NLS key for the descriptionpDescrDefault
- - the default text for the descriptionpDescrTokens
- - the tokens to apply to the nlsKey
public static Message createMessage(java.lang.String pNlsKey, java.lang.String pDefault, java.lang.String[][] pMsgTokens)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the labelpMsgTokens
- - the tokens to apply to the nlsKey
public static Message createMessage(java.lang.String pNlsKey, java.lang.String pDefault, java.lang.String[][] pMsgTokens, java.lang.String pMetaLinkNoteId)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the labelpMetaLinkNoteId
- - MetaLink Note IdpMsgTokens
- - the tokens to apply to the nlsKey
public static Message createMessage(java.lang.String pNlsKey, java.lang.String pDefault, java.lang.String pMetaLinkNoteId)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the labelpMetaLinkNoteId
- - MetaLink Note Id
public static Message createAttentionMessage(java.lang.String pNlsKey, java.lang.String pDefault)
pNlsKey
- - NLS Key for the messagepDefault
- - Default text for the message
public static Message createAttentionMessage(java.lang.String pNlsKey, java.lang.String pDefault, java.lang.String pMetaLinkNoteId)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the labelpMetaLinkNoteId
- - MetaLink Note Id
public static Message createAttentionMessage(java.lang.String pNlsKey, java.lang.String pDefault, java.lang.String[][] pMsgTokens)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the labelpMsgTokens
- - the tokens to apply to the nlsKey
public static Message createAttentionMessage(java.lang.String pNlsKey, java.lang.String pDefault, java.lang.String[][] pMsgTokens, java.lang.String pMetaLinkNoteId)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the labelpMetaLinkNoteId
- - MetaLink Note IdpMsgTokens
- - the tokens to apply to the nlsKey
public static Table getResultSetAsTable(java.lang.String tableHeaderNlsKey, java.lang.String defaultTableHeader, java.sql.ResultSet resultSet, java.lang.String sql, java.math.BigInteger maxDisplayRows, boolean showFooter, boolean showSQL) throws java.sql.SQLException
summary
is required only for
printing in tabular form, and is ignored if printing portait.
This method has the possibility to chec kfor leading and trailing spaces.
tableHeaderNlsKey
- NLS Key for Table HeaderdefaultTableHeader
- Title above table (blue bar, null means no bar)resultSet
- ResultSet with data to be displayedsql
- SQL statement executedmaxDisplayRows
- Maximum number of rows to display null means display allshowFooter
- Show the 'xx rows retrieved' ?showSQL
- showSQL - which shows the SQL used to create the table, the default is FALSE, don't show.
java.sql.SQLException
- When something bad happens fetching datacreateTableFromResultSet(String,String,ResultSet,String,String[][],BigInteger,boolean,boolean)
public static Table createTableFromResultSet(java.lang.String tableHeaderNlsKey, java.lang.String defaultTableHeader, java.sql.ResultSet resultSet, java.lang.String sql, java.lang.String[][] sqlBindVariables, java.math.BigInteger maxDisplayRows, boolean showFooter, boolean showSQL) throws java.sql.SQLException
summary
is required only for
printing in tabular form, and is ignored if printing portait.
This method has the possibility to chec kfor leading and trailing spaces.
tableHeaderNlsKey
- NLS Key for Table HeaderdefaultTableHeader
- Title above table (blue bar, null means no bar)resultSet
- ResultSet with data to be displayedsql
- SQL statement executedsqlBindVariables
- SQL bind variablesmaxDisplayRows
- Maximum number of rows to display null means display allshowFooter
- Show the 'xx rows retrieved' ?showSQL
- showSQL - which shows the SQL used to create the table, the default is FALSE, don't show.
java.sql.SQLException
- When something bad happens fetching datapublic static Table createTableFromResultSetWithRowCountThreshold(java.lang.String tableHeaderNlsKey, java.lang.String defaultTableHeader, java.sql.ResultSet resultSet, java.lang.String sql, java.lang.String[][] sqlBindVariables, java.math.BigInteger maxDisplayRows, boolean showFooter, boolean showSQL, int nRowsThreshold) throws java.sql.SQLException
summary
is required only for
printing in tabular form, and is ignored if printing portait.
This method has the possibility to chec kfor leading and trailing spaces.
tableHeaderNlsKey
- NLS Key for Table HeaderdefaultTableHeader
- Title above table (blue bar, null means no bar)resultSet
- ResultSet with data to be displayedsql
- SQL statement executedmaxDisplayRows
- Maximum number of rows to display null means display allshowFooter
- Show the 'xx rows retrieved' ?showSQL
- showSQL - which shows the SQL used to create the table, the default is FALSE, don't show.nRowsThreshold
- -1=always show table, 0=don't show table, n = show table if there are n+1 or more rows
java.sql.SQLException
- When something bad happens fetching datapublic static Table createTableFromResultSet(java.lang.String tableHeaderNlsKey, java.lang.String defaultTableHeader, java.sql.ResultSet resultSet, java.lang.String sql, java.math.BigInteger maxDisplayRows, boolean showFooter, boolean showSQL) throws java.sql.SQLException
summary
is required only for
printing in tabular form, and is ignored if printing portait.
This method has the possibility to chec kfor leading and trailing spaces.
tableHeaderNlsKey
- NLS Key for Table HeaderdefaultTableHeader
- Title above table (blue bar, null means no bar)resultSet
- ResultSet with data to be displayedsql
- SQL statement executedmaxDisplayRows
- Maximum number of rows to display null means display allshowFooter
- Show the 'xx rows retrieved' ?showSQL
- showSQL - which shows the SQL used to create the table, the default is FALSE, don't show.
java.sql.SQLException
- When something bad happens fetching datapublic static java.lang.String resolveSqlStatement(java.lang.String sqlStatement, java.lang.String[][] bindValues)
sqlStatement
- SQL StatementbindValues
- Dynamic Values
public static NameValueList toNameValueList(java.lang.String[][] pNameValuePairs)
pNameValuePairs
- a double String Array of name value pairs
public static Label createLabel(java.lang.String pNlsKey, java.lang.String pDefault, java.lang.String[][] pNameValuePairs)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the labelpNameValuePairs
- - String array of name value pairs to go with the NLS key for getting the
translated message
public static Header createHeader(java.lang.String pNlsKey, java.lang.String pDefault, java.lang.String[][] pNameValuePairs)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the labelpNameValuePairs
- The name value pairs for NLS
public static DescriptiveHeader createDescriptiveHeader(java.lang.String pNlsKey, java.lang.String pDefault, java.lang.String pNlsDescKey, java.lang.String pDescription)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the labelpNlsDescKey
- - the NLS key for the descriptionpDescription
- - the default text for the description
public static DescriptiveHeader createDescriptiveHeader(java.lang.String pNlsKey, java.lang.String pDefault, java.lang.String[][] pNameValuePairs, java.lang.String pNlsDescKey, java.lang.String pDescription, java.lang.String[][] pDescNameValuePairs)
pNlsKey
- - the NLS key for the labelpDefault
- - the default text for the labelpNameValuePairs
- - String array of name value pairs to go with the NLS key for getting the
translated messagepDescription
- - the default text for the descriptionpNlsDescKey
- - the NLS key for the descriptionpDescNameValuePairs
- - String array of name value pairs to go with the DescNLS key for getting the
translated message
public static ErrorInfo createException(java.lang.Throwable pTrace, java.lang.String pErrorNlsKey, java.lang.String pErrorDefault, java.lang.String pFixNlsKey, java.lang.String pFixDefault)
pErrorNlsKey
- - NLS Key for Error MessagepErrorDefault
- - The default error messagepFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix message
public static ErrorInfo createException(java.lang.Throwable pTrace, java.lang.String pErrorNlsKey, java.lang.String pErrorDefault, java.lang.String[][] pErrorMsgTokens, java.lang.String pFixNlsKey, java.lang.String pFixDefault)
pErrorNlsKey
- - NLS Key for Error MessagepErrorDefault
- - The default error messagepErrorMsgTokens
- - NLS TokenspFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix message
public static ErrorInfo createException(java.lang.Throwable pTrace, java.lang.String pErrorNlsKey, java.lang.String pErrorDefault, java.lang.String pFixNlsKey, java.lang.String pFixDefault, java.lang.String[][] pFixMsgTokens)
pErrorNlsKey
- - NLS Key for Error MessagepErrorDefault
- - The default error messagepFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix messagepFixMsgTokens
- - NLS Tokens
public static ErrorInfo createException(java.lang.Throwable pTrace, java.lang.String pErrorNlsKey, java.lang.String pErrorDefault, java.lang.String[][] pErrorMsgTokens, java.lang.String pFixNlsKey, java.lang.String pFixDefault, java.lang.String[][] pFixMsgTokens)
pErrorNlsKey
- - NLS Key for Error MessagepErrorDefault
- - The default error messagepErrorMsgTokens
- - NLS TokenspFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix messagepFixMsgTokens
- - NLS Tokens
public static ErrorInfo createError(java.lang.String pErrorNlsKey, java.lang.String pErrorDefault, java.lang.String pFixNlsKey, java.lang.String pFixDefault)
pErrorNlsKey
- - NLS Key for Error MessagepErrorDefault
- - The default error messagepFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix message
public static ErrorInfo createError(java.lang.String pErrorNlsKey, java.lang.String pErrorDefault, java.lang.String[][] pErrorMsgTokens, java.lang.String pFixNlsKey, java.lang.String pFixDefault)
pErrorNlsKey
- - NLS Key for Error MessagepErrorDefault
- - The default error messagepErrorMsgTokens
- - Error message tokens for NLS messagepFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix message
public static ErrorInfo createError(java.lang.String pErrorNlsKey, java.lang.String pErrorDefault, java.lang.String[][] pErrorMsgTokens, java.lang.String pErrorMetalinkId, java.lang.String pFixNlsKey, java.lang.String pFixDefault)
pErrorNlsKey
- - NLS Key for Error MessagepErrorDefault
- - The default error messagepErrorMsgTokens
- - Error message tokens for NLS messagepErrorMetalinkId
- - MetaLink Note IdpFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix message
public static ErrorInfo createError(java.lang.String pErrorNlsKey, java.lang.String pErrorDefault, java.lang.String pFixNlsKey, java.lang.String pFixDefault, java.lang.String[][] pFixMsgTokens)
pErrorNlsKey
- - NLS Key for Error MessagepErrorDefault
- - The default error messagepFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix messagepFixMsgTokens
- - Fix message tokens for NLS message
public static ErrorInfo createError(java.lang.String pErrorNlsKey, java.lang.String pErrorDefault, java.lang.String pFixNlsKey, java.lang.String pFixDefault, java.lang.String[][] pFixMsgTokens, java.lang.String pFixMetalinkId)
pErrorNlsKey
- - NLS Key for Error MessagepErrorDefault
- - The default error messagepFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix messagepFixMsgTokens
- - Fix message tokens for NLS messagepFixMetalinkId
- - Fix MetaLink Note Id
public static ErrorInfo createError(java.lang.String pErrorNlsKey, java.lang.String pErrorDefault, java.lang.String[][] pErrorMsgTokens, java.lang.String pFixNlsKey, java.lang.String pFixDefault, java.lang.String[][] pFixMsgTokens)
pErrorNlsKey
- - NLS Key for Error MessagepErrorDefault
- - The default error messagepErrorMsgTokens
- - Error message tokens for NLS messagepFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix messagepFixMsgTokens
- - Fix message tokens for NLS message
public static ErrorInfo createError(java.lang.String pErrorNlsKey, java.lang.String pErrorDefault, java.lang.String[][] pErrorMsgTokens, java.lang.String pErrorMetalinkId, java.lang.String pFixNlsKey, java.lang.String pFixDefault, java.lang.String[][] pFixMsgTokens, java.lang.String pFixMetalinkId)
pErrorNlsKey
- - NLS Key for Error MessagepErrorDefault
- - The default error messagepErrorMsgTokens
- - Error message tokens for NLS messagepErrorMetalinkId
- - MetaLink Note IdpFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix messagepFixMsgTokens
- - Fix message tokens for NLS messagepFixMetalinkId
- - Fix MetaLink Note Id
public static ErrorInfo createWarning(java.lang.String pWarningNlsKey, java.lang.String pWarningDefault, java.lang.String pFixNlsKey, java.lang.String pFixDefault)
pWarningNlsKey
- - NLS Key for Warning MessagepWarningDefault
- - The default Warning messagepFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix message
public static ErrorInfo createWarning(java.lang.String pWarningNlsKey, java.lang.String pWarningDefault, java.lang.String[][] pWarningMsgTokens, java.lang.String pFixNlsKey, java.lang.String pFixDefault)
pWarningNlsKey
- - NLS Key for Warning MessagepWarningDefault
- - The default Warning messagepWarningMsgTokens
- - Warning message tokens for NLS messagepFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix message
public static ErrorInfo createWarning(java.lang.String pWarningNlsKey, java.lang.String pWarningDefault, java.lang.String[][] pWarningMsgTokens, java.lang.String pWarningMetalinkId, java.lang.String pFixNlsKey, java.lang.String pFixDefault)
pWarningNlsKey
- - NLS Key for Warning MessagepWarningDefault
- - The default Warning messagepWarningMsgTokens
- - Warning message tokens for NLS messagepWarningMetalinkId
- - MetaLink Note IdpFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix message
public static ErrorInfo createWarning(java.lang.String pWarningNlsKey, java.lang.String pWarningDefault, java.lang.String pFixNlsKey, java.lang.String pFixDefault, java.lang.String[][] pFixMsgTokens)
pWarningNlsKey
- - NLS Key for Warning MessagepWarningDefault
- - The default Warning messagepFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix messagepFixMsgTokens
- - Fix message tokens for NLS message
public static ErrorInfo createWarning(java.lang.String pWarningNlsKey, java.lang.String pWarningDefault, java.lang.String pFixNlsKey, java.lang.String pFixDefault, java.lang.String[][] pFixMsgTokens, java.lang.String pFixMetalinkId)
pWarningNlsKey
- - NLS Key for Warning MessagepWarningDefault
- - The default Warning messagepFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix messagepFixMsgTokens
- - Fix message tokens for NLS messagepFixMetalinkId
- - Fix MetaLink Note Id
public static ErrorInfo createWarning(java.lang.String pWarningNlsKey, java.lang.String pWarningDefault, java.lang.String[][] pWarningMsgTokens, java.lang.String pFixNlsKey, java.lang.String pFixDefault, java.lang.String[][] pFixMsgTokens)
pWarningNlsKey
- - NLS Key for Warning MessagepWarningDefault
- - The default Warning messagepWarningMsgTokens
- - Warning message tokens for NLS messagepFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix messagepFixMsgTokens
- - Fix message tokens for NLS message
public static ErrorInfo createWarning(java.lang.String pWarningNlsKey, java.lang.String pWarningDefault, java.lang.String[][] pWarningMsgTokens, java.lang.String pWarningMetalinkId, java.lang.String pFixNlsKey, java.lang.String pFixDefault, java.lang.String[][] pFixMsgTokens, java.lang.String pFixMetalinkId)
pWarningNlsKey
- - NLS Key for Warning MessagepWarningDefault
- - The default Warning messagepWarningMsgTokens
- - Warning message tokens for NLS messagepWarningMetalinkId
- - MetaLink Note IdpFixNlsKey
- - NLS Key for fix MessagepFixDefault
- - The default fix messagepFixMsgTokens
- - Fix message tokens for NLS messagepFixMetalinkId
- - Fix MetaLink Note Id
public static LinkToken createLinkToken()
public static LinkToken createLinkToken(java.lang.String pTokenName, Message pMessage)
pTokenName
- Name for the LinkTokenpMessage
- Message that contains the link
public static LinkToken createLinkTokenForSupportNote(java.lang.String pTokenName, java.lang.String pSupportNoteId)
pTokenName
- Name for the LinkTokenpSupportNoteId
- Message that contains the link
@Deprecated public static LinkToken createLinkTokenForMetalinkNote(java.lang.String pTokenName, java.lang.String pMetalinkNoteId)
|
Oracle Fusion Middleware extensions for Logging and Diagnostics 11g Release 1 (11.1.2) E22565-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |