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

apache - Cloudflare bug random 302 redirections -

java - Sql binding in Spring throws org.skife.jdbi.v2.exceptions.UnableToExecuteStatementException -