public class QueryDAO extends Object
| Constructor and Description |
|---|
QueryDAO() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeStatement(Statement statement)
Manage the close of a Statement object
|
static List<ResultSetRow> |
convertResultSetToResultSetRowList(ResultSet resultSet)
Convert a ResultSet to a List
|
List<ResultSetRow> |
getParameterizedQueryResults(String strSQL,
fr.paris.lutece.portal.service.database.PluginConnectionService connectionService,
Map<String,String> mapKeyValueParameters)
Returns query results
|
List<ResultSetRow> |
getQueryResults(String strSQL,
fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Returns query results
|
public List<ResultSetRow> getQueryResults(String strSQL, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService) throws SQLQueryException
strSQL - The queryconnectionService - the connection serviceSQLQueryException - If an error occurspublic List<ResultSetRow> getParameterizedQueryResults(String strSQL, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService, Map<String,String> mapKeyValueParameters) throws SQLQueryException
strSQL - The parameterized query to executeconnectionService - The connection servicemapKeyValueParameters - The map which associated to each parameter key its valueSQLQueryException - If an error occuredpublic static List<ResultSetRow> convertResultSetToResultSetRowList(ResultSet resultSet) throws SQLException
resultSet - The resultSet to convertSQLExceptionpublic static void closeStatement(Statement statement) throws fr.paris.lutece.portal.service.util.AppException
statement - The statement to closefr.paris.lutece.portal.service.util.AppException - If an error occuredCopyright © 2017 City of Paris. All rights reserved.