public class EscapeString
extends java.lang.Object
Mysql util.
| Constructor and Description | 
|---|
| EscapeString() | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.lang.String | mysqlRealEscapeString(java.lang.String str)Escape string to protected against SQL Injection | 
| static java.lang.String | nameQuote(java.lang.String str)Escape identifier to protected against SQL Injection. | 
| static java.lang.String | quote(java.lang.String str)Escape data to protected against SQL Injection. | 
public static java.lang.String mysqlRealEscapeString(java.lang.String str)
You must add a single quote ' around the result of this function for data, or a backtick ` around table and row identifiers. If this function returns null than the result should be changed to "NULL" without any quote or backtick.
str - Waiting to protect against SQL Injection`s Stringpublic static java.lang.String quote(java.lang.String str)
                              throws java.lang.Exception
str - Waiting to protect against SQL Injection`s Stringjava.lang.Exception - Exceptionpublic static java.lang.String nameQuote(java.lang.String str)
                                  throws java.lang.Exception
str - Waiting to protect against SQL Injection`s Stringjava.lang.Exception - .