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 void
addParametersToStatment(Map<Integer,Object> parameters, PreparedStatement stmt)
abstract PreparedStatement
createPreparedStatement(Connection con)
abstract void
execute(Connection connection)
List<Integer>
getPrimaryKeys()
void
setDatabase(SqlRepositoryConfiguration.Database database)
void
setPrimaryKeys(List<Integer> primaryKeys)
protected Object
toRepoType(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)
-
-