public class SqlString extends Object
A SqlString just contains a regular Java string, but the SqlString wrapper indicates that the string has been created carefully guarding against all SQL dialect and injection issues.
The easiest way to do build a SqlString is to use a SqlBuilder.
| Constructor and Description |
|---|
SqlString(SqlDialect dialect,
String s)
Creates a SqlString.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
SqlDialect |
getDialect()
Returns the dialect.
|
String |
getSql()
Returns the SQL string.
|
int |
hashCode() |
String |
toString() |
public SqlString(SqlDialect dialect, String s)
s - Contents of stringpublic String toString()
Returns the SQL string.
public String getSql()
public SqlDialect getDialect()
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.