| 构造器和说明 |
|---|
HaloCore() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
analyzeAliasMap(ConcurrentHashMap<String,Boolean> aliasMap,
HHashMap<Integer,String> joinSqlMap)
分析aliasMap
|
protected ColumnCondition |
analyzeKey(ColumnCondition columnCondition,
String key,
Object value)
分析key值
|
protected String |
CheckSpace(String value)
检查是否含空格:值不允许空格
|
protected Date |
convertToDate(Object value)
转换成Date类型
|
protected Object |
convertValue(Object value,
String type,
String valueType)
值转换成字段对应的类型
|
protected String |
filterKey(String key)
处理key值
|
protected Map<String,String> |
getColumnMappingAlias(Map<String,Boolean> aliasMapInColumn)
获取字段sql中的alias
|
protected String |
getCUDSql(String cudSql)
替换HaloView
|
protected String |
getEntityName() |
abstract Class<T> |
getEntityType() |
protected String |
getFieldType(String filedName)
获取字段的类型
|
protected T |
getInstanceEntity()
实例化该实体
|
protected String |
getJoinSql(HHashMap<Integer,String> joinSqlMap)
获得joinSql
|
protected List<String> |
getOrder(List<String> orderSqlList,
Object value)
获取排序sql的List
|
protected String |
getOrderSql(String value)
获得排序sql
|
protected TableSql |
getTableSql(String orgTableSql,
Map<String,Object> viewParams)
获取表的sql
|
protected HXmlUtils |
getXml()
获取该实体的xmlUtils对象
|
protected HXmlUtils |
getXmlByStrClassPath(String classpath)
根据classpath获取xmlUtils对象
|
protected void |
initEntityInfo(Class<?> clazz)
初始化实体信息
|
protected String getEntityName()
protected T getInstanceEntity()
protected void initEntityInfo(Class<?> clazz)
clazz - 实体类protected String getFieldType(String filedName)
filedName - 字段名xmlUtils - protected Object convertValue(Object value, String type, String valueType)
value - type - valueType - protected HXmlUtils getXml()
protected HXmlUtils getXmlByStrClassPath(String classpath)
classpath - protected ColumnCondition analyzeKey(ColumnCondition columnCondition, String key, Object value)
columnCondition - key - value - protected Map<String,String> getColumnMappingAlias(Map<String,Boolean> aliasMapInColumn)
aliasMapInColumn - xmlUtils - protected String getJoinSql(HHashMap<Integer,String> joinSqlMap)
joinSqlMap - protected void analyzeAliasMap(ConcurrentHashMap<String,Boolean> aliasMap, HHashMap<Integer,String> joinSqlMap)
aliasMap - xmlUtils - joinSqlMap - protected List<String> getOrder(List<String> orderSqlList, Object value)
orderSqlList - value - xmlUtils - protected TableSql getTableSql(String orgTableSql, Map<String,Object> viewParams)
orgTableSql - viewParams - Copyright © 2016. All rights reserved.