java - Converting timestamp String in a unique Primary Key -


i'd transform string (from xml file) db primary key using java 7.

in particular, make sure values unique, positive , respect db primary key specification is: number(20).

the string try transform have characterization:

pdr_20140909150001

obviously can ignore first part of string (because same file), have transform timestamp string 20140909150001 in int value must unique , have maximum 20 digit of lenght.

any idea? how can do?

you can convert string int using integer.parseint(), assume 20140909150001 unique enough. hope :)


Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -