Package org.miaixz.bus.core.basic.entity
Class Entity
java.lang.Object
org.miaixz.bus.core.basic.entity.Entity
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OAuth2
Entity 实体
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
数据主键
-
-
Constructor Details
-
Entity
public Entity()
-
-
Method Details
-
isPKNotNull
根据主键属性,判断主键是否值为空- Type Parameters:
T- 对象- Parameters:
entity- 反射对象field- 属性- Returns:
- 主键为空, 则返回false;主键有值,返回true
-
getValue
依据对象的属性获取对象值- Type Parameters:
T- 对象- Parameters:
entity- 反射对象field- 属性数组- Returns:
- 返回对象属性值
-
setValue
依据对象的属性数组和值数组对进行赋值- Type Parameters:
T- 对象- Parameters:
entity- 反射对象fields- 属性数组value- 值数组
-