Class SingleSqlQuery
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.data.SqlQuery
-
- com.evolveum.midpoint.repo.sql.data.SingleSqlQuery
-
public class SingleSqlQuery extends SqlQuery
- Author:
- skublik
-
-
Constructor Summary
Constructors Constructor Description SingleSqlQuery(String query, Map<Integer,Object> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreparedStatement
createPreparedStatement(Connection con)
PreparedStatement
createPreparedStatement(Connection con, String[] keyColumn)
void
execute(Connection connection)
Map<Integer,Object>
getParameters()
String
getQuery()
-
Methods inherited from class com.evolveum.midpoint.repo.sql.data.SqlQuery
addParametersToStatment, getPrimaryKeys, setDatabase, setPrimaryKeys, toRepoType
-
-
-
-
Method Detail
-
createPreparedStatement
public PreparedStatement createPreparedStatement(Connection con) throws SQLException
- Specified by:
createPreparedStatement
in classSqlQuery
- Throws:
SQLException
-
createPreparedStatement
public PreparedStatement createPreparedStatement(Connection con, String[] keyColumn) throws SQLException
- Throws:
SQLException
-
getQuery
public String getQuery()
-
execute
public void execute(Connection connection) throws SQLException
- Specified by:
execute
in classSqlQuery
- Throws:
SQLException
-
-