public class DmlUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static SQLException |
chainException(SQLException main,
SQLException add)
Adds exception to the chain.
|
static Object |
convert(Object val,
GridH2RowDescriptor desc,
Class<?> expCls,
int type,
String columnName)
Convert value to column's expected type by means of H2.
|
static boolean |
isBatched(SqlFieldsQuery qry)
Check whether query is batched.
|
static UpdateResult |
processSelectResult(UpdatePlan plan,
Iterable<List<?>> cursor,
int pageSize) |
static List<UpdateResult> |
processSelectResultBatched(UpdatePlan plan,
List<List<List<?>>> rows,
int pageSize)
Performs the planned update.
|
static void |
restoreKeepBinaryContext(GridCacheContext<?,?> cctx,
CacheOperationContext oldOpCtx)
Restore previous binary context.
|
static CacheOperationContext |
setKeepBinaryContext(GridCacheContext<?,?> cctx)
Makes current operation context as keepBinary.
|
public static Object convert(Object val, GridH2RowDescriptor desc, Class<?> expCls, int type, String columnName)
val - Source value.desc - Row descriptor.expCls - Expected value class.type - Expected column type to convert to.public static boolean isBatched(SqlFieldsQuery qry)
qry - Query.True if batched.public static UpdateResult processSelectResult(UpdatePlan plan, Iterable<List<?>> cursor, int pageSize) throws IgniteCheckedException
plan - Update plan.cursor - Cursor over select results.pageSize - Page size.IgniteCheckedException - if failed.public static List<UpdateResult> processSelectResultBatched(UpdatePlan plan, List<List<List<?>>> rows, int pageSize) throws IgniteCheckedException
plan - Update plan.rows - Rows to update.pageSize - Page size.List of update results.IgniteCheckedException - If failed.public static SQLException chainException(SQLException main, SQLException add)
main - Exception to add another exception to.add - Exception which should be added to chain.public static CacheOperationContext setKeepBinaryContext(GridCacheContext<?,?> cctx)
cctx - Cache context.public static void restoreKeepBinaryContext(GridCacheContext<?,?> cctx, CacheOperationContext oldOpCtx)
cctx - Cache context.oldOpCtx - Old operation context.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.17-p1 Release Date : November 27 2025