| 程序包 | 说明 |
|---|---|
| com.sprite.framework.entity | |
| com.sprite.framework.entity.condition | |
| com.sprite.framework.entity.model | |
| com.sprite.framework.entity.script | |
| com.sprite.framework.entity.util |
| 限定符和类型 | 方法和说明 |
|---|---|
static EntityException |
EntityException.getInstance(Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
Delegator.count(EntityScript script) |
long |
GenericDelegator.count(EntityScript script) |
long |
Delegator.count(String entityName,
EntityCondition entityCondition)
Count the entities by EntityCondition
|
long |
GenericDelegator.count(String entityName,
EntityCondition whereCondition) |
List<EntityObject> |
Delegator.findList(EntityScript script) |
List<EntityObject> |
GenericDelegator.findList(EntityScript script) |
<T> List<T> |
Delegator.findList(EntityScript script,
Class<T> clazz)
查询多条记录的指定属性列, 并转为对象
|
<T> List<T> |
GenericDelegator.findList(EntityScript script,
Class<T> clazz) |
List<EntityObject> |
Delegator.findList(String entityName,
EntityCondition whereCondition) |
List<EntityObject> |
GenericDelegator.findList(String entityName,
EntityCondition whereCondition) |
<T> List<T> |
Delegator.findList(String entityName,
EntityCondition whereCondition,
Class<T> clazz) |
<T> List<T> |
GenericDelegator.findList(String entityName,
EntityCondition whereCondition,
Class<T> clazz) |
List<EntityObject> |
Delegator.findList(String entityName,
QueryArgs queryArgs) |
List<EntityObject> |
GenericDelegator.findList(String entityName,
QueryArgs queryArgs) |
<T> List<T> |
Delegator.findList(String entityName,
QueryArgs queryArgs,
Class<T> clazz) |
<T> List<T> |
GenericDelegator.findList(String entityName,
QueryArgs queryArgs,
Class<T> clazz) |
EntityObject |
Delegator.findOne(EntityScript script) |
EntityObject |
GenericDelegator.findOne(EntityScript script) |
<T> T |
Delegator.findOne(EntityScript script,
Class<T> clazz)
查询记录的指定属性列, 并转为对象
|
<T> T |
GenericDelegator.findOne(EntityScript script,
Class<T> clazz) |
EntityObject |
Delegator.findOne(String entityName,
EntityCondition entityCondition)
获取唯一记录值
|
EntityObject |
GenericDelegator.findOne(String entityName,
EntityCondition entityCondition) |
<T> T |
Delegator.findOne(String entityName,
EntityCondition entityCondition,
Class<T> clazz)
获取唯一记录值
|
<T> T |
GenericDelegator.findOne(String entityName,
EntityCondition EntityCondition,
Class<T> clazz) |
EntityObject |
Delegator.findOne(String entityName,
QueryArgs queryArgs) |
EntityObject |
GenericDelegator.findOne(String entityName,
QueryArgs queryArgs) |
<T> T |
Delegator.findOne(String entityName,
QueryArgs queryArgs,
Class<T> clazz) |
<T> T |
GenericDelegator.findOne(String entityName,
QueryArgs queryArgs,
Class<T> clazz) |
void |
EntityCondition.makeScript(DataScriptStatement script,
ModelEntityView modelViewEntity) |
void |
EntityConditionBuilder.makeScript(DataScriptStatement script,
ModelEntityView modelViewEntity) |
void |
Delegator.remove(String entityName)
清空所有实体数据
如果实体类实现接口
LogiclyDeletable则逻辑删除 |
void |
GenericDelegator.remove(String entityName) |
void |
Delegator.remove(String entityName,
EntityCondition EntityCondition)
移除
如果实体类实现接口
LogiclyDeletable则逻辑删除 |
void |
GenericDelegator.remove(String entityName,
EntityCondition EntityCondition) |
<T> void |
Delegator.store(String entityName,
T entity)
保存数据
如果实体类继承了
SequencedEntity,那么当实体没有设置主键时,会自动从序列中获取一个新的值作为主键。 |
<T> void |
GenericDelegator.store(String entityName,
T entity) |
<T> void |
Delegator.storeAll(String entityName,
List<T> entities)
批量保存数据
如果实体类继承了
SequencedEntity,那么当实体没有设置主键时,会自动从序列中获取一个新的值作为主键。 |
<T> void |
GenericDelegator.storeAll(String entityName,
List<T> entities) |
void |
Delegator.update(String entityName,
Map<String,Object> fieldsToUpdate,
EntityCondition condition)
更新
|
void |
GenericDelegator.update(String entityName,
Map<String,Object> fieldsToSet,
EntityCondition condition) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
EntityJoinOperator.makeScript(DataScriptStatement script,
Collection<? extends EntityCondition> conditions,
ModelEntityView modelViewEntity) |
void |
EntityComparisonOperator.makeScript(DataScriptStatement script,
L l,
R r,
ModelEntityView modelViewEntity) |
abstract void |
EntityOperator.makeScript(DataScriptStatement script,
L l,
R r,
ModelEntityView modelViewEntity) |
void |
EmptyCondition.makeScript(DataScriptStatement script,
ModelEntityView modelViewEntity) |
void |
EntityConditionList.makeScript(DataScriptStatement script,
ModelEntityView modelViewEntity) |
void |
EntityExpr.makeScript(DataScriptStatement script,
ModelEntityView modelViewEntity) |
void |
CollectionOperateValue.makeStatement(DataScriptStatement statement,
ModelEntityView modelViewEntity) |
void |
MultiOperateValue.makeStatement(DataScriptStatement statement,
ModelEntityView modelViewEntity) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ModelEntity |
ModelEntityUtil.getModelEntity(String entityName) |
ModelField |
ModelEntity.getModelField(String fieldName) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
EntityView.makeStatement(DataScriptStatement statement) |
void |
EntityAlias.makeStatement(DataScriptStatement statement,
ModelEntityView modelViewEntity) |
void |
EntityDeleteScript.makeStatement(DataScriptStatement statement,
ModelEntityView modelViewEntity) |
void |
EntityInsertScript.makeStatement(DataScriptStatement statement,
ModelEntityView modelViewEntity) |
void |
EntityUpdateScript.makeStatement(DataScriptStatement statement,
ModelEntityView modelViewEntity) |
void |
EntityView.makeStatement(DataScriptStatement statement,
ModelEntityView modelViewEntity) |
void |
EntityViewLink.makeStatement(DataScriptStatement statement,
ModelEntityView modelViewEntity) |
String |
EntityView.resolveFieldPath(String path) |
| 限定符和类型 | 方法和说明 |
|---|---|
EntityObject |
EntityDataReader.toEntity(Element element)
将节点转成对象
|
Copyright © 2019. All rights reserved.