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
Post a Comment