public final class AdminHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AdminHelper.Builder |
static class |
AdminHelper.Where |
| Modifier and Type | Field and Description |
|---|---|
static String |
FILTER_SPLITTER |
static ThreadLocal<Boolean> |
IGNORE_SOFT_DELETE |
static String |
ITEM_SPLITTER |
static String |
KEYVAL_SPLITTER |
static String |
NAME_SPLITTER |
static String |
STRING_ARRAY_SPLITTER |
| Modifier and Type | Method and Description |
|---|---|
static AdminHelper.Builder |
builder(ModelManager modelManager,
ModelInfo modelInfo,
com.github.ideahut.qms.shared.client.object.AdminRequest adminRequest,
boolean isSelect) |
static Map<String,Object> |
byteArrayToValue(DataMapper dataMapper,
byte[] data) |
static Map<String,Object> |
filterToMap(List<com.github.ideahut.qms.shared.client.object.AdminRequest.Filter> filter) |
static com.github.ideahut.qms.shared.client.object.AdminRequest |
getAdminRequest(DataMapper dataMapper,
ModelManager modelManager) |
static com.github.ideahut.qms.shared.client.object.AdminRequest |
getAdminRequest(DataMapper dataMapper,
ModelManager modelManager,
byte[] data) |
static FieldInfo |
getFieldInfo(ModelManager modelManager,
ModelInfo modelInfo,
String anyField) |
static Object |
getFieldValue(ModelManager modelManager,
ModelInfo modelInfo,
String anyField,
String value) |
static Object |
getIdObject(DataMapper dataMapper,
ModelInfo modelInfo,
com.fasterxml.jackson.databind.JsonNode node) |
static Object |
getIdObject(DataMapper dataMapper,
ModelInfo modelInfo,
String value) |
static <T> T |
invokeObject(DataMapper dataMapper,
ModelInfo modelInfo,
T model,
Map<String,Object> value) |
static <T> T |
invokeObject(DataMapper dataMapper,
ModelInfo modelInfo,
T model,
Map<String,Object> value,
boolean isRefreshObject) |
static <T> T |
invokeObject(DataMapper dataMapper,
ModelInfo modelInfo,
T model,
Map<String,Object> value,
boolean isRefreshObject,
org.hibernate.Session session) |
static Map<String,Object> |
mapNameValue(Map<String,Object> map,
String name,
Object value) |
static <T> T |
mapToObject(DataMapper dataMapper,
Map<String,Object> map,
Class<?> type) |
static List<com.github.ideahut.qms.shared.client.object.AdminRequest.Filter> |
nodeToFilter(com.fasterxml.jackson.databind.JsonNode node) |
static Map<String,Object> |
nodeToMap(com.fasterxml.jackson.databind.JsonNode node) |
static Map<String,Object> |
nodeToValue(com.fasterxml.jackson.databind.JsonNode node) |
static List<com.github.ideahut.qms.shared.client.object.AdminRequest.Filter> |
stringToFilter(String string) |
static List<String> |
stringToList(String string) |
static Map<String,Object> |
stringToMap(String string) |
static <T> T |
stringToObject(DataMapper dataMapper,
String value,
Class<T> type) |
static AdminHelper.Where |
where(ModelManager modelManager,
ModelInfo modelInfo,
com.github.ideahut.qms.shared.client.object.AdminRequest adminRequest,
boolean isSelect) |
public static final String ITEM_SPLITTER
public static final String KEYVAL_SPLITTER
public static final String NAME_SPLITTER
public static final String FILTER_SPLITTER
public static final String STRING_ARRAY_SPLITTER
public static final ThreadLocal<Boolean> IGNORE_SOFT_DELETE
public static com.github.ideahut.qms.shared.client.object.AdminRequest getAdminRequest(DataMapper dataMapper, ModelManager modelManager, byte[] data)
public static com.github.ideahut.qms.shared.client.object.AdminRequest getAdminRequest(DataMapper dataMapper, ModelManager modelManager)
public static <T> T invokeObject(DataMapper dataMapper, ModelInfo modelInfo, T model, Map<String,Object> value) throws Exception
Exceptionpublic static <T> T invokeObject(DataMapper dataMapper, ModelInfo modelInfo, T model, Map<String,Object> value, boolean isRefreshObject) throws Exception
Exceptionpublic static <T> T invokeObject(DataMapper dataMapper, ModelInfo modelInfo, T model, Map<String,Object> value, boolean isRefreshObject, org.hibernate.Session session) throws Exception
Exceptionpublic static Map<String,Object> nodeToValue(com.fasterxml.jackson.databind.JsonNode node)
public static Map<String,Object> mapNameValue(Map<String,Object> map, String name, Object value)
public static <T> T mapToObject(DataMapper dataMapper, Map<String,Object> map, Class<?> type)
public static Map<String,Object> byteArrayToValue(DataMapper dataMapper, byte[] data)
public static <T> T stringToObject(DataMapper dataMapper, String value, Class<T> type)
public static List<com.github.ideahut.qms.shared.client.object.AdminRequest.Filter> stringToFilter(String string)
public static List<com.github.ideahut.qms.shared.client.object.AdminRequest.Filter> nodeToFilter(com.fasterxml.jackson.databind.JsonNode node)
public static Map<String,Object> filterToMap(List<com.github.ideahut.qms.shared.client.object.AdminRequest.Filter> filter)
public static AdminHelper.Builder builder(ModelManager modelManager, ModelInfo modelInfo, com.github.ideahut.qms.shared.client.object.AdminRequest adminRequest, boolean isSelect)
public static AdminHelper.Where where(ModelManager modelManager, ModelInfo modelInfo, com.github.ideahut.qms.shared.client.object.AdminRequest adminRequest, boolean isSelect)
public static FieldInfo getFieldInfo(ModelManager modelManager, ModelInfo modelInfo, String anyField)
public static Object getFieldValue(ModelManager modelManager, ModelInfo modelInfo, String anyField, String value)
public static Object getIdObject(DataMapper dataMapper, ModelInfo modelInfo, com.fasterxml.jackson.databind.JsonNode node)
public static Object getIdObject(DataMapper dataMapper, ModelInfo modelInfo, String value)
Copyright © 2020. All rights reserved.