Java Get String Length Sql Function And Procedure