public abstract class AbstractUpdateExecutor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
| Constructor and Description |
|---|
AbstractUpdateExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildInClauseTemplate(int length)
Quickly build up the sql IN clause template
|
protected List<Long[]> |
buildRuns(List<Long> ids)
This breaks up our IN clause into multiple runs of 800 or less in order
to guarantee compatibility across platforms (i.e.
|
protected int |
executeUpdateQuery(String template,
Object[] params,
org.hibernate.type.Type[] types,
List<Long> ids)
Perform an update query using a String template and params.
|
protected int executeUpdateQuery(String template, Object[] params, org.hibernate.type.Type[] types, List<Long> ids)
template - the overall update sql template. The IN clause parameter should be written using 'IN (%s)'.params - any other params that are present in the sql template, other than the IN clause. Should be written using '?'. Should be in order. Can be null.types - the Type instances that identify the types for the params. Should be in order and match the length of params. Can be null.ids - the ids to include in the IN clause.protected String buildInClauseTemplate(int length)
length - protected List<Long[]> buildRuns(List<Long> ids)
ids - Copyright © 2015. All Rights Reserved.