public class UpgradeUtilityDAOHibernate extends Object
Constructor and Description |
---|
UpgradeUtilityDAOHibernate() |
Modifier and Type | Method and Description |
---|---|
int |
executeBulkUpdate(String query,
Map<String,Object> parameters)
Executes an update operation affecting multiple entities.
|
<T> List<T> |
executeList(String query,
Map<String,Object> parameters)
Executes the supplied query and returns the result.
|
int |
executeUpdate(String query) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public int executeUpdate(String query)
public int executeBulkUpdate(String query, Map<String,Object> parameters)
query
- a HQL query with exactly one JPA-style parameter placeholder, that is, ?1parameters
- parameter to the query (required)public <T> List<T> executeList(String query, Map<String,Object> parameters)
query
- a HQL query with the same amount of JPA-style parameter placeholder as the supplied parametersparameters
- the parameters to pass to the query (required)Copyright © 2021 Atlassian. All rights reserved.