public final class SQLService extends Object
| Modifier and Type | Method and Description |
|---|---|
static fr.paris.lutece.portal.service.database.PluginConnectionService |
getConnectionService(String strPoolName)
Get a connection service corresponding to the given poolname.
|
static List<ResultSetRow> |
getMokeResults()
Returns moke results
|
static List<ResultSetRow> |
getQueryResults(String strSQL,
String strPool,
Map<String,String[]> mapParameters)
Build the model that contains data results
|
static void |
validateSQL(String strSQL,
String strPool)
Checks if the SQL query is valid
|
public static List<ResultSetRow> getQueryResults(String strSQL, String strPool, Map<String,String[]> mapParameters)
strSQL - The querystrPool - The connection poolmapParameters - Parameters of the request that can be variables of the querypublic static void validateSQL(String strSQL, String strPool) throws SQLQueryException
strSQL - The SQL querystrPool - The connection poolSQLQueryException - if the query is not validpublic static List<ResultSetRow> getMokeResults()
public static fr.paris.lutece.portal.service.database.PluginConnectionService getConnectionService(String strPoolName)
strPoolName - The PoolnameCopyright © 2015 City of Paris. All rights reserved.