There is DeliveryReceiptState enumaration in Jsmpp for the all delivery status codes.
Try deliveryReceipt.getFinalStatus().value()
which will you give you integer value to update in database.
You will get following integer values for status codes.
/**
* DELIVERED
*/
DELIVRD(1),
/**
* EXPIRED
*/
EXPIRED(2),
/**
* DELETED
*/
DELETED(3),
/**
* UNDELIVERABLE
*/
UNDELIV(4),
/**
* ACCEPTED
*/
ACCEPTD(5),
/**
* UNKNOWN
*/
UNKNOWN(6),
/**
* REJECTED
*/
REJECTD(7);