|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xbus.admin.html.ReadJournal
public class ReadJournal
ReadJournal
reads information about the activities of the
middleware from the database and handles the information which is stored in
the database-table journal
. An instance of
DBConnection
is used for handling the
database-connection.
Constructor Summary | |
---|---|
ReadJournal()
|
Method Summary | |
---|---|
int |
getErrorcode()
Gets the error code from the journal |
java.lang.String |
getErrormessage()
Gets the error message from the journal |
java.lang.String |
getFunction()
Gets the function from the journal |
java.lang.String |
getMessageId()
Gets the message id from the journal |
int |
getNumber()
Gets the number from the journal |
java.lang.String |
getRequestMessage()
Gets the request message from the journal |
java.lang.String |
getRequestTimestamp()
Gets the request timestamp from the journal |
java.lang.String |
getResponseMessage()
Gets the response message from the journal |
java.lang.String |
getResponseTimestamp()
Gets the response timestamp from the journal |
java.lang.String |
getReturncode()
Gets the return code from the journal |
java.lang.String |
getSystem()
Gets the system from the journal |
char |
getType()
Gets the type of the message from the journal |
static java.util.List |
readSelected(java.util.HashMap selectionMap,
java.lang.String orderBy,
java.lang.String sorting)
readSelected(HashMap, String, String) builds the SQL
statement, connects to the database and executes it. |
void |
setErrorcode(int errorcode)
Allows you to set the error code |
void |
setErrormessage(java.lang.String errormessage)
Allows you to set the error message |
void |
setFunction(java.lang.String function)
Allows you to set the function |
void |
setMessageId(java.lang.String messageId)
Allows you to set the message id |
void |
setNumber(int number)
Allows you to set the number in the journal |
void |
setRequestMessage(java.lang.String requestMessage)
Allows you to set the request message |
void |
setRequestTimestamp(java.lang.String requestTimestamp)
Allows you to set the request timestamp |
void |
setResponseMessage(java.lang.String responseMessage)
|
void |
setResponseTimestamp(java.lang.String responseTimestamp)
Allows you to set the response timestamp |
void |
setReturncode(java.lang.String returncode)
Allows you to set the returncode |
void |
setSystem(java.lang.String system)
Allows you to set the system |
void |
setType(char type)
Allows you to set the type of the message |
java.lang.String |
toString()
Gets all necessary information from the journal as one String in the following format: number | messageId | function | type | system | requestTimestamp | ResponseTimestamp | Returncode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReadJournal()
Method Detail |
---|
public int getNumber()
public void setNumber(int number)
public char getType()
public void setType(char type)
public java.lang.String getSystem()
public void setSystem(java.lang.String system)
public java.lang.String getFunction()
public void setFunction(java.lang.String function)
public java.lang.String getMessageId()
public void setMessageId(java.lang.String messageId)
public java.lang.String getRequestMessage()
public void setRequestMessage(java.lang.String requestMessage)
public java.lang.String getRequestTimestamp()
public void setRequestTimestamp(java.lang.String requestTimestamp)
public java.lang.String getResponseMessage()
public void setResponseMessage(java.lang.String responseMessage)
public java.lang.String getResponseTimestamp()
public void setResponseTimestamp(java.lang.String responseTimestamp)
public java.lang.String getReturncode()
public void setReturncode(java.lang.String returncode)
public int getErrorcode()
public void setErrorcode(int errorcode)
public java.lang.String getErrormessage()
public void setErrormessage(java.lang.String errormessage)
public static java.util.List readSelected(java.util.HashMap selectionMap, java.lang.String orderBy, java.lang.String sorting) throws XException
readSelected(HashMap, String, String)
builds the SQL
statement, connects to the database and executes it. All data from the
ResultSet
strore erst in the ReadJournal
object and then in the List.
selectionMap
- - HashMap with items should be selectedorderBy
- - String (by wich data should be ordered)sorting
- -String (descending or not)
XException
public java.lang.String toString()
number | messageId | function | type | system | requestTimestamp | ResponseTimestamp | Returncode
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |