Custom id logic

nativescriptrocks
nativescriptcore
plugins
android

#1

does any one give logic of how to create custom ‘id’ like EST_0000_0001 which increments each time i store data in database(Kinvey DB or any cloud store).