|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.sitools.util.SQLUtils
public final class SQLUtils
Mysql Utilities
| Method Summary | |
|---|---|
static java.lang.String |
escapeString(java.lang.String str)
Escape data to protected against SQL Injection |
static java.lang.String |
mysqlRealEscapeString(java.lang.String str)
Escape string to protected against SQL Injection You must add a single quote ' around the result of this function for data, or a backtick ` around table and row identifiers. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String mysqlRealEscapeString(java.lang.String str)
throws java.lang.Exception
str - the string to excape
java.lang.Exception - if there is an error
public static java.lang.String escapeString(java.lang.String str)
throws java.lang.Exception
str - the string to escape
java.lang.Exception - if something is wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||