public abstract class FastExtEntity<E extends com.fastchar.core.FastEntity<?>>
extends com.fastchar.core.FastEntity<E>
ConcurrentHashMap.KeySetView<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 限定符和类型 | 字段和说明 |
|---|---|
private boolean |
autoUpdateLayerValue |
static String |
EXTRA_PARENT_LAYER_CODE |
private static long |
serialVersionUID |
| 构造器和说明 |
|---|
FastExtEntity() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
autoUpdateLayerCode(String... checks) |
String |
buildLayerCode(String parentLayerCode)
构建新的权限编号
|
boolean |
delete() |
boolean |
delete(String... checks) |
List<String> |
getAllParentLayerValue()
获取所有上级的层级编号,不包含自身层级编号
|
List<String> |
getAllParentLayerValue(String selfLayerCode)
获取所有上级的层级编号,不包含自身层级编号
|
String |
getEntityCode()
获得实体唯一编号
|
FastExtColumnInfo |
getLayerColumn() |
FastExtColumnInfo |
getLayerLinkColumn() |
FastExtLayerHelper.LayerMap |
getLayerMap()
获取表格的权限层级拓扑图
|
String |
getLayerValue()
获得层级编号
|
String |
getLayerValue(int upLevel)
获得层级编号值
|
String |
getParentLayerCode()
获得父类的权限编号
|
FastExtColumnInfo |
getSameLinkColumn() |
abstract String |
getTableName()
获得关联的表格名称
|
boolean |
isAutoUpdateLayerValue() |
boolean |
isLink(String attr)
是否是关联字段
|
private boolean |
isModifyLayerColumn() |
boolean |
isRecycle()
是否有回收站表格
|
void |
pullLayer(ExtManagerEntity managerEntity)
填充权限检测的条件
|
E |
selectFirstValue(String[] columns,
String... checks) |
String |
selectLayerValue(Object... idValues) |
String |
selectLayerValue(String... checks) |
FastExtEntity<E> |
setAutoUpdateLayerValue(boolean autoUpdateLayerValue) |
abstract void |
setDefaultValue()
设置字段默认值
|
FastExtEntity<?> |
setLayerValue(String layerValue)
设置权限编号
|
void |
setParentLayerCode(String layerCode)
设置父类的权限编号
|
abstract com.fastchar.database.FastPage<E> |
showList(int page,
int pageSize)
获得数据列表
|
com.fastchar.database.info.FastSqlInfo |
toSelectSql(String sqlStr) |
boolean |
update() |
boolean |
update(String... checks) |
void |
updateLayerValue(String newLayerValue)
更新权限编号
|
void |
updateLayerValue(String oldLayerValue,
String newLayerValue)
更新权限编号
|
allKeys, buildCache, clearEmpty, convertValue, copySave, count, deleteById, deleteById, deleteCache, deleteCache, formatDate, get, getBigDecimal, getBigDecimal, getBlob, getBoolean, getBoolean, getColumn, getColumns, getDatabase, getDatabaseType, getDate, getDateString, getDateString, getDouble, getDouble, getDouble, getDouble, getDouble, getDouble, getEnum, getEnum, getError, getExistsColumn, getFastData, getFloat, getFloat, getFloat, getFloat, getFloat, getFloat, getId, getIds, getInt, getInt, getLong, getLong, getModified, getObject, getPrimaries, getShort, getShort, getSql, getString, getString, getTable, getTableDetails, getTimestamp, getTimestamp, isAutoincrement, isBigDecimal, isBlank, isColumn, isEmpty, isEmptyColumn, isIgnoreCase, isModified, isMySql, isNotBlank, isNotEmpty, isNotNull, isNull, isOracle, isPrimary, isSqlServer, isTimestamp, markSetDefaultValue, push, push, put, remove, save, save, select, select, selectById, selectById, selectById, selectById, selectBySql, selectBySql, selectBySql, selectBySql, selectBySql, selectBySql, selectBySql, selectFirst, selectFirstBySql, selectFirstBySql, selectFirstBySql, selectFirstBySql, selectLast, selectLastBySql, selectLastBySql, selectLastBySql, selectLastBySql, set, set, setAll, setDatabase, setError, setIgnoreCase, setNull, toDeleteSql, toDeleteSql, toDeleteSqlByIds, toEntity, toEntity, toEntity, toEntity, toInsertSql, toJson, toSelectColumns, toSelectColumns, toSelectSql, toSelectSql, toUpdateSql, toUpdateSql, toUpdateSqlByIds, unmarkSetDefaultValue, updateById, updateBySqlclear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, valuescloneprivate static final long serialVersionUID
private boolean autoUpdateLayerValue
public abstract String getTableName()
getTableName 在类中 com.fastchar.core.FastEntity<E extends com.fastchar.core.FastEntity<?>>public abstract com.fastchar.database.FastPage<E> showList(int page, int pageSize)
public void pullLayer(ExtManagerEntity managerEntity)
managerEntity - 管理员对象public String getEntityCode()
public abstract void setDefaultValue()
setDefaultValue 在类中 com.fastchar.core.FastEntity<E extends com.fastchar.core.FastEntity<?>>public com.fastchar.database.info.FastSqlInfo toSelectSql(String sqlStr)
toSelectSql 在类中 com.fastchar.core.FastEntity<E extends com.fastchar.core.FastEntity<?>>public boolean update()
update 在类中 com.fastchar.core.FastEntity<E extends com.fastchar.core.FastEntity<?>>public boolean update(String... checks)
update 在类中 com.fastchar.core.FastEntity<E extends com.fastchar.core.FastEntity<?>>public boolean delete()
delete 在类中 com.fastchar.core.FastEntity<E extends com.fastchar.core.FastEntity<?>>public boolean delete(String... checks)
delete 在类中 com.fastchar.core.FastEntity<E extends com.fastchar.core.FastEntity<?>>private boolean isModifyLayerColumn()
public void autoUpdateLayerCode(String... checks)
public String getLayerValue()
public FastExtLayerHelper.LayerMap getLayerMap()
public List<String> getAllParentLayerValue(String selfLayerCode)
public FastExtEntity<?> setLayerValue(String layerValue)
layerValue - 值public String getParentLayerCode()
public String buildLayerCode(String parentLayerCode)
parentLayerCode - 父级编号public void setParentLayerCode(String layerCode)
layerCode - 权限编号public boolean isLink(String attr)
attr - 属性名称public String getLayerValue(int upLevel)
upLevel - 向上等级 例如:1 代表获取上一级的层级编号public boolean isRecycle()
public FastExtColumnInfo getLayerColumn()
public FastExtColumnInfo getLayerLinkColumn()
public FastExtColumnInfo getSameLinkColumn()
public void updateLayerValue(String newLayerValue) throws Exception
newLayerValue - 新的权限编号Exceptionpublic void updateLayerValue(String oldLayerValue, String newLayerValue) throws Exception
oldLayerValue - 当前权限编号newLayerValue - 新的权限编号Exceptionpublic boolean isAutoUpdateLayerValue()
public FastExtEntity<E> setAutoUpdateLayerValue(boolean autoUpdateLayerValue)
Copyright © 2021. All rights reserved.