public class ImportMessage extends Object
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_ERROR
Status that indicates that an error occurred during the importation of
the item
|
static int |
STATUS_OK
Status that indicates that the item was successfully imported
|
static int |
STATUS_SKIPPED
Status that indicates that the item was skipped
|
Constructor and Description |
---|
ImportMessage(String strMessage,
int nStatus,
int nItemNumber)
Creates a new import message
|
Modifier and Type | Method and Description |
---|---|
int |
getItemNumber()
Get the number of the imported item in the data source
|
String |
getMessage()
Get the message
|
int |
getStatus()
Get the status of the importation of the item described by this
ImportMessage . |
void |
setItemNumber(int nItemNumber)
Set the number of the imported item in the data source.
|
void |
setMessage(String strMessage)
Set the message
|
void |
setStatus(int nStatus)
Set the status of importation of the item described by this
ImportMessage . |
String |
toString() |
public static final int STATUS_SKIPPED
public static final int STATUS_ERROR
public static final int STATUS_OK
public String getMessage()
public void setMessage(String strMessage)
strMessage
- the messagepublic int getStatus()
ImportMessage
. Status are :
STATUS_SKIPPED
if the item was skippedSTATUS_ERROR
if an error occurred during the importation of
the itemSTATUS_OK
if the item was successfully importedpublic void setStatus(int nStatus)
ImportMessage
.nStatus
- STATUS_SKIPPED
if the item was skippedSTATUS_ERROR
if an error occurred during the
importation of the itemSTATUS_OK
if the item was successfully importedpublic int getItemNumber()
public void setItemNumber(int nItemNumber)
nItemNumber
- The imported item numberCopyright © 2018 City of Paris. All rights reserved.