| Constructor and Description |
|---|
GridJdbcUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
marshalArgument(Map<String,Object> args)
Marshals task argument to byte array.
|
static boolean |
nullable(String name,
String cls)
Determines whether type is nullable.
|
static Map<String,Object> |
taskArgument(UUID nodeId,
String cacheName,
String sql,
long timeout,
Object[] args,
int pageSize,
int maxRows)
Creates task argument for first execution.
|
static Map<String,Object> |
taskArgument(UUID nodeId,
UUID futId,
int pageSize,
int maxRows)
Creates task argument.
|
static int |
type(String cls)
Converts Java class name to type from
Types. |
static String |
typeName(String cls)
Converts Java class name to SQL type name.
|
static <T> T |
unmarshal(byte[] bytes)
Unmarshals object from byte array.
|
static SQLException |
unmarshalError(byte[] bytes)
Unmarshals exception from byte array.
|
public static byte[] marshalArgument(Map<String,Object> args) throws SQLException
args - Task argument.SQLException - In marshalling failed.public static SQLException unmarshalError(byte[] bytes) throws SQLException
bytes - Byte array.SQLException - If unmarshalling failed.public static <T> T unmarshal(byte[] bytes)
throws SQLException
bytes - Byte array.SQLException - If unmarshalling failed.public static Map<String,Object> taskArgument(UUID nodeId, String cacheName, String sql, long timeout, Object[] args, int pageSize, int maxRows)
nodeId - Node ID.cacheName - Cache name.sql - SQL query.timeout - Query timeout.args - Query arguments.pageSize - Page size.maxRows - Maximum number of rows.public static Map<String,Object> taskArgument(UUID nodeId, UUID futId, int pageSize, int maxRows)
nodeId - Node ID.futId - Future ID.pageSize - Page size.maxRows - Maximum number of rows.public static int type(String cls)
Types.cls - Java class name.Types.public static String typeName(String cls)
cls - Java class name.Copyright © 2014. All rights reserved.