public class JsonQuery extends ExternalQuery<Object>
Query
specially used to address external query requests in JSON.
In JSON the generic type is of MorphDynaBean
type.
ENTITY_NAME_ATTRIBUTE
), is mentioned in the DynaBean
then it will onvert it
automatically to it.Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_NAME_ATTRIBUTE
Should be used inside "entity" attribute/object within JSON string
|
Constructor and Description |
---|
JsonQuery() |
JsonQuery(Object o) |
JsonQuery(String json) |
JsonQuery(String json,
Class entityClass) |
JsonQuery(String json,
Class entityClass,
Map<String,?> paramsTypeMap) |
JsonQuery(String json,
String entityClassName,
Map<String,?> paramsTypeMap) |
Modifier and Type | Method and Description |
---|---|
protected Class |
getEntityClass(org.apache.commons.beanutils.DynaBean dynaBean) |
protected void |
resolveDynaBeans(org.apache.commons.beanutils.DynaBean entity,
Class rootEntityClass)
Resolve any
DynaBean that maybe within the main DynaBean |
void |
setEntity(Object entity) |
appendWhereExtension, getEntity, getExcludedFields, getFromExtension, getIncludedFields, getNullSet, getOrderString, getPageInfo, getParams, getRelatedAttribute, getRelatedAttributes, getSelectOverride, getWhereExtension, isIgnoreEntityFieldsInWhere, setExcludedFields, setFromExtension, setIgnoreEntityFieldsInWhere, setIncludedFields, setNullSet, setOrderString, setPageInfo, setParam, setParams, setRelatedAttribute, setRelatedAttributes, setSelectOverride, setWhereExtension, toString
public static final String ENTITY_NAME_ATTRIBUTE
public JsonQuery()
public JsonQuery(String json)
public JsonQuery(Object o)
protected void resolveDynaBeans(org.apache.commons.beanutils.DynaBean entity, Class rootEntityClass)
DynaBean
that maybe within the main DynaBean
entity
- rootEntityClass
- protected Class getEntityClass(org.apache.commons.beanutils.DynaBean dynaBean) throws Exception
Exception
Copyright © 2018. All rights reserved.