public final class CrudHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CrudHelper.Key |
static class |
CrudHelper.Split |
| Modifier and Type | Method and Description |
|---|---|
static EntityHelper.Builder |
builder(EntityInfo entityInfo,
CrudRequest crudRequest,
boolean forSelect) |
static Map<String,Object> |
byteArrayToValue(byte[] data) |
static Map<String,Object> |
filterToMap(List<EntityFilter> filters) |
static CrudRequest |
getCrudRequest(CrudHandler crudHandler) |
static CrudRequest |
getCrudRequest(CrudHandler crudHandler,
byte[] data) |
static CrudRequest |
getCrudRequest(CrudHandler crudHandler,
byte[] data,
Class<?> entityClass) |
static CrudRequest |
getCrudRequest(CrudHandler crudHandler,
Class<?> entityClass) |
static Object |
getIdObject(EntityInfo entityInfo,
com.fasterxml.jackson.databind.JsonNode node) |
static Object |
getIdObject(EntityInfo entityInfo,
String value) |
static <T> T |
invokeObject(EntityInfo entityInfo,
T entity,
Map<String,Object> value) |
static <T> T |
invokeObject(EntityInfo entityInfo,
T entity,
Map<String,Object> value,
boolean isRefreshObject) |
static <T> T |
invokeObject(EntityInfo entityInfo,
T entity,
Map<String,Object> value,
boolean isRefreshObject,
org.hibernate.Session session) |
static void |
mapNameValue(Map<String,Object> map,
String name,
Object value) |
static <T> T |
mapToObject(Map<String,Object> map,
Class<?> type) |
static List<EntityFilter> |
nodeToFilter(com.fasterxml.jackson.databind.JsonNode node) |
static Map<String,Object> |
nodeToMap(com.fasterxml.jackson.core.TreeNode node) |
static Map<String,Object> |
nodeToValue(com.fasterxml.jackson.core.TreeNode node) |
static List<EntityFilter> |
stringToFilter(String string) |
static List<String> |
stringToList(String string) |
static Map<String,Object> |
stringToMap(String string) |
static Map<String,Object> |
stringToMap(String string,
Set<String> idFields) |
static <T> T |
stringToObject(String value,
Class<?> type) |
public static CrudRequest getCrudRequest(CrudHandler crudHandler, byte[] data)
public static CrudRequest getCrudRequest(CrudHandler crudHandler, byte[] data, Class<?> entityClass)
public static CrudRequest getCrudRequest(CrudHandler crudHandler)
public static CrudRequest getCrudRequest(CrudHandler crudHandler, Class<?> entityClass)
public static <T> T invokeObject(EntityInfo entityInfo, T entity, Map<String,Object> value) throws CommonException
CommonExceptionpublic static <T> T invokeObject(EntityInfo entityInfo, T entity, Map<String,Object> value, boolean isRefreshObject) throws CommonException
CommonExceptionpublic static <T> T invokeObject(EntityInfo entityInfo, T entity, Map<String,Object> value, boolean isRefreshObject, org.hibernate.Session session) throws CommonException
CommonExceptionpublic static EntityHelper.Builder builder(EntityInfo entityInfo, CrudRequest crudRequest, boolean forSelect)
public static List<EntityFilter> stringToFilter(String string)
public static List<EntityFilter> nodeToFilter(com.fasterxml.jackson.databind.JsonNode node)
public static Map<String,Object> filterToMap(List<EntityFilter> filters)
public static Object getIdObject(EntityInfo entityInfo, com.fasterxml.jackson.databind.JsonNode node)
public static Object getIdObject(EntityInfo entityInfo, String value)
Copyright © 2023. All rights reserved.