Browse Source

添加注释

James 1 year ago
parent
commit
db5c9e944f
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/main/java/com/jfinal/plugin/activerecord/IContainerFactory.java

+ 13 - 0
src/main/java/com/jfinal/plugin/activerecord/IContainerFactory.java

@@ -25,8 +25,21 @@ import java.util.Set;
 @SuppressWarnings("rawtypes")
 public interface IContainerFactory extends Serializable {
 
+	/**
+	 * 用于存放 Model 属性的 Map
+	 * 警告:不能使用 ConcurrentHashMap,其无法存入 null 值,无法将 null 写入数据库
+	 */
 	Map getAttrsMap();
+
+	/**
+	 * 用于存放 Record 字段的 Map
+	 * 警告:不能使用 ConcurrentHashMap,其无法存入 null 值,无法将 null 写入数据库
+	 */
 	Map getColumnsMap();
+
+	/**
+	 * 用于存放 Model/Record 字段的修改标记
+	 */
 	Set getModifyFlagSet();
 
 	static final IContainerFactory defaultContainerFactory = new IContainerFactory() {