Class SqlQuery
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.data.SqlQuery
-
- Direct Known Subclasses:
BatchSqlQuery,SingleSqlQuery
public abstract class SqlQuery extends Object
- Author:
- skublik
-
-
Constructor Summary
Constructors Constructor Description SqlQuery()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddParametersToStatment(Map<Integer,Object> parameters, PreparedStatement stmt)abstract PreparedStatementcreatePreparedStatement(Connection con)abstract voidexecute(Connection connection)List<Integer>getPrimaryKeys()voidsetDatabase(SqlRepositoryConfiguration.Database database)voidsetPrimaryKeys(List<Integer> primaryKeys)protected ObjecttoRepoType(Object value)
-
-
-
Method Detail
-
createPreparedStatement
public abstract PreparedStatement createPreparedStatement(Connection con) throws SQLException
- Throws:
SQLException
-
execute
public abstract void execute(Connection connection) throws SQLException
- Throws:
SQLException
-
addParametersToStatment
protected void addParametersToStatment(Map<Integer,Object> parameters, PreparedStatement stmt) throws SQLException
- Throws:
SQLException
-
setDatabase
public void setDatabase(SqlRepositoryConfiguration.Database database)
-
-