static public String safeSqlQueryIntegerValue ( String in ) throws Exception { int intValue = Integer . parseInt ( in ) ; return "" + intValue ; }
This method converts a string into a new one that is safe for a SQL query . It deals with strings that are expected to be integer values .