Package com.tietoenator.trip.jxp
Class TdbMessageProvider
- java.lang.Object
-
- com.tietoenator.trip.jxp.session.TdbSessionObject
-
- com.tietoenator.trip.jxp.TdbMessageProvider
-
- Direct Known Subclasses:
TdbBackgroundTaskSink
,TdbCategory
,TdbCclCommand
,TdbClassificationScheme
,TdbDatabaseAccess
,TdbFacetSet
,TdbGraph
,TdbGridCluster
,TdbGridHost
,TdbGridReplicaSet
,TdbGridSysProps
,TdbKernelWindow
,TdbLocations
,TdbMessageProvidingList
,TdbNotificationSink
,TdbRecord
,TdbRecordSet
,TdbSearch
,TdbSerializableObject
,TdbSession
public class TdbMessageProvider extends TdbSessionObject
Base class of anything that can feasibly create success or error messages
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Integer>
codeList()
Retrieve the list of available error codes, if anyint
getLastCode()
Retrieve the most recent error codejava.lang.String
getLastMessage()
Retrieve the most recent error messageboolean
hasMessages()
Check if the message provider has any messagesjava.util.List<java.lang.String>
messageList()
Retrieve the list of available messages, if anyvoid
resetMessages()
Clear any existing state from the message provider-
Methods inherited from class com.tietoenator.trip.jxp.session.TdbSessionObject
cancel, getSession, isCancelable, setCancelable
-
-
-
-
Method Detail
-
messageList
public java.util.List<java.lang.String> messageList()
Retrieve the list of available messages, if any- Returns:
- A collection of messages, could be empty
-
codeList
public java.util.List<java.lang.Integer> codeList()
Retrieve the list of available error codes, if any- Returns:
- A collection of error codes, could be empty
-
getLastCode
public int getLastCode()
Retrieve the most recent error code- Returns:
- The most recent error code
-
getLastMessage
public java.lang.String getLastMessage()
Retrieve the most recent error message- Returns:
- The most recent error message
-
hasMessages
public boolean hasMessages()
Check if the message provider has any messages- Returns:
- true if the provider is in receipt of messages
-
resetMessages
public void resetMessages()
Clear any existing state from the message provider
-
-