Subversion Repositories Integrator Subversion

Rev

Rev 216 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 216 Rev 234
Line 59... Line 59...
59
       
59
       
60
        protected static String sqlConsultarSemAcento(String coluna) {
60
        protected static String sqlConsultarSemAcento(String coluna) {
61
                StringBuilder texto = new StringBuilder();
61
                StringBuilder texto = new StringBuilder();
62
                texto = texto.append("UPPER(TRANSLATE(");
62
                texto = texto.append("UPPER(TRANSLATE(");
63
                texto = texto.append(coluna);
63
                texto = texto.append(coluna);
64
                texto = texto.append(", 'Ã?ÀÃÂÄÉÈÊËÃ?ÌÎÃ?ÓÒÕÔÖÚÙÛÜÇáàãâäéèêëíìîïóòõôöúùûüç', 'AAAAAEEEEIIIIOOOOOUUUUCaaaaaeeeeiiiiooooouuuuc'))");
-
 
-
 
64
                texto = texto.append(", 'ÁÀÃÂÄÉÈÊËÍÌÎÏÓÒÕÔÖÚÙÛÜÇáàãâäéèêëíìîïóòõôöúùûüç', 'AAAAAEEEEIIIIOOOOOUUUUCaaaaaeeeeiiiiooooouuuuc'))");
65
                return texto.toString();
65
                return texto.toString();
66
        }
66
        }
67
       
67
       
68
        protected static String removerAcentuacaoParaBuscaGenerica(String texto) {
68
        protected static String removerAcentuacaoParaBuscaGenerica(String texto) {
69
                return "%" + removerAcentuacao(texto) + "%";
69
                return "%" + removerAcentuacao(texto) + "%";