public class SqlQueryTransformer
extends java.lang.Object
@ColumnTransformer annotations in WHERE clauses.| Constructor and Description |
|---|
SqlQueryTransformer()
Convenience constructor for unit testing so that it need not mock a data source.
|
SqlQueryTransformer(javax.sql.DataSource dataSource)
Construct a SQL query transformer that parses the SQL dialect appropriate for the given data source.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
transformQuery(java.lang.String sql)
Reverse the effects of
@ColumnTransformer annotations in WHERE clauses. |
public SqlQueryTransformer()
public SqlQueryTransformer(javax.sql.DataSource dataSource)
throws org.springframework.jdbc.support.MetaDataAccessException
dataSource - a data sourceorg.springframework.jdbc.support.MetaDataAccessException - if the metadata about the database could not be accessed from the data source